|
Porytiles
|
Represents raw parsed metadata from a tileset struct in headers.h. More...
#include <project_tileset_metadata.hpp>
Public Member Functions | |
| ProjectTilesetMetadata (std::string name, bool is_secondary, std::string tiles_var, std::string palettes_var, std::string metatiles_var, std::string metatile_attributes_var, std::optional< std::string > callback_func) | |
| Constructs a TilesetMetadata from parsed struct fields. | |
| const std::string & | name () const |
| Returns the tileset name. | |
| bool | is_secondary () const |
| Returns whether this is a secondary tileset. | |
| const std::string & | tiles_var () const |
| Returns the tiles variable name. | |
| const std::string & | palettes_var () const |
| Returns the palettes variable name. | |
| const std::string & | metatiles_var () const |
| Returns the metatiles variable name. | |
| const std::string & | metatile_attributes_var () const |
| Returns the metatile attributes variable name. | |
| const std::optional< std::string > & | callback_func () const |
| Returns the animation callback function name, if present. | |
| bool | has_animations () const |
| Checks if this tileset has animations. | |
Represents raw parsed metadata from a tileset struct in headers.h.
ProjectTilesetMetadata captures the key fields from a pokeemerald tileset struct definition:
This model contains only the raw field values from the struct:
The variable names can then be used by ProjectTilesetArtifactKeyProvider to look up INCBIN declarations and resolve actual file paths.
Definition at line 37 of file project_tileset_metadata.hpp.
|
inline |
Constructs a TilesetMetadata from parsed struct fields.
| name | The tileset name (e.g., gTileset_General) |
| is_secondary | True if this is a secondary tileset, false for primary |
| tiles_var | The variable name for tiles (e.g., gTilesetTiles_General) |
| palettes_var | The variable name for palettes (e.g., gTilesetPalettes_General) |
| metatiles_var | The variable name for metatiles (e.g., gMetatiles_General) |
| metatile_attributes_var | The variable name for attributes (e.g., gMetatileAttributes_General) |
| callback_func | The callback function name if animations exist, or nullopt if none |
Definition at line 50 of file project_tileset_metadata.hpp.
|
inline |
Returns the animation callback function name, if present.
Definition at line 129 of file project_tileset_metadata.hpp.
|
inline |
Checks if this tileset has animations.
A tileset has animations if its callback field is set to a non-NULL function name.
Definition at line 142 of file project_tileset_metadata.hpp.
|
inline |
Returns whether this is a secondary tileset.
Definition at line 79 of file project_tileset_metadata.hpp.
|
inline |
Returns the metatile attributes variable name.
Definition at line 119 of file project_tileset_metadata.hpp.
|
inline |
Returns the metatiles variable name.
Definition at line 109 of file project_tileset_metadata.hpp.
|
inline |
Returns the tileset name.
Definition at line 69 of file project_tileset_metadata.hpp.
|
inline |
Returns the palettes variable name.
Definition at line 99 of file project_tileset_metadata.hpp.
|
inline |
Returns the tiles variable name.
Definition at line 89 of file project_tileset_metadata.hpp.