|
Porytiles
|
Imports vanilla animation metadata and frame data as IndexPixel tiles. More...
#include <project_vanilla_anim_importer.hpp>
Public Member Functions | |
| ProjectVanillaAnimImporter (std::filesystem::path project_root, gsl::not_null< const TextFormatter * > format, gsl::not_null< const UserDiagnostics * > diag) | |
| Constructs a ProjectVanillaAnimImporter. | |
| ChainableResult< std::map< std::string, Animation< IndexPixel > > > | import_animations (const std::string &tileset_name) const |
| Import animations from a vanilla tileset. | |
Imports vanilla animation metadata and frame data as IndexPixel tiles.
ProjectVanillaAnimImporter reads animation configuration and frame PNG files from a vanilla pokeemerald project.
Workflow:
This importer does NOT extract key frames from tiles.png - that responsibility belongs to AnimDecompiler, which needs to understand VRAM layout and palette assignment.
Definition at line 34 of file project_vanilla_anim_importer.hpp.
|
inline |
Constructs a ProjectVanillaAnimImporter.
| project_root | The path to the pokeemerald project root directory |
| format | Formatter for error message styling (non-owning, must outlive importer) |
| diag | UserDiagnostics for warnings and info messages (non-owning, must outlive importer) |
Definition at line 43 of file project_vanilla_anim_importer.hpp.
| ChainableResult< std::map< std::string, Animation< IndexPixel > > > porytiles::ProjectVanillaAnimImporter::import_animations | ( | const std::string & | tileset_name | ) | const |
Import animations from a vanilla tileset.
Parses tileset_anims.c to discover animation names, parameters, and frame paths. Loads frame PNG files and extracts IndexPixel tiles for each frame. Does not set key_frame.
| tileset_name | The name of the tileset (e.g., "gTileset_General") |
Definition at line 38 of file project_vanilla_anim_importer.cpp.