Module ifp_parser

Module ifp_parser 

Source
Expand description

§IFP Parser

A parser for RenderWare IFP (Animation Package) files, used for character animations in Grand Theft Auto 3, Vice City, and San Andreas. This module supports both ANP3 (GTA3/VC) and ANPK (SA) formats.

§Features

  • Parses animation names, bone keyframes, and hierarchy.
  • Automatically detects and handles ANP3 and ANPK versions.
  • Deserializes animation data into a structured RwIfp format.

§Example

use rw_parser_rs::renderware::ifp::ifp_parser::IfpParser;
use std::fs;

let file_data = fs::read("path/to/your/animation.ifp").unwrap();
let mut parser = IfpParser::new(&file_data);
let ifp_data = parser.parse().unwrap();

println!("Animation package name: {}", ifp_data.name);

Structs§

IfpParser
The main parser for IFP files.
RwIfp
Represents the top-level structure of a parsed IFP file.
RwIfpAnimation
RwIfpBone
RwIfpKeyframe

Enums§

IfpVersion
Represents the version of the IFP file.