|
Porytiles
|
A manual override that maps a specific metatile entry to an animation subtile. More...
#include <anim_override_entry.hpp>
Public Attributes | |
| std::size_t | metatile_id |
| The metatile ID this override applies to (corresponds to JSON "id" field). | |
| metatile::Layer | layer |
| The layer within the metatile (bottom, middle, or top). | |
| metatile::Subtile | subtile |
| The subtile position within the layer (northwest, northeast, southwest, southeast). | |
| std::size_t | frame_subtile |
| Zero-based index into the animation's tile range (tile_offset + frame_subtile = actual tile index). | |
| std::size_t | pal_index |
| The palette index to use for this tile. | |
| bool | h_flip |
| Whether the tile is horizontally flipped. | |
| bool | v_flip |
| Whether the tile is vertically flipped. | |
A manual override that maps a specific metatile entry to an animation subtile.
When using manual frame linking, users explicitly declare which metatile entries reference which animation subtiles. Each override entry specifies the metatile position (id, layer, subtile), flip flags, palette index, and which subtile within the animation frame to use.
All fields are required when specifying overrides in anim.json.
Definition at line 19 of file anim_override_entry.hpp.
| std::size_t porytiles::AnimOverrideEntry::frame_subtile |
Zero-based index into the animation's tile range (tile_offset + frame_subtile = actual tile index).
Definition at line 27 of file anim_override_entry.hpp.
| bool porytiles::AnimOverrideEntry::h_flip |
Whether the tile is horizontally flipped.
Definition at line 31 of file anim_override_entry.hpp.
| metatile::Layer porytiles::AnimOverrideEntry::layer |
The layer within the metatile (bottom, middle, or top).
Definition at line 23 of file anim_override_entry.hpp.
| std::size_t porytiles::AnimOverrideEntry::metatile_id |
The metatile ID this override applies to (corresponds to JSON "id" field).
Definition at line 21 of file anim_override_entry.hpp.
| std::size_t porytiles::AnimOverrideEntry::pal_index |
The palette index to use for this tile.
Definition at line 29 of file anim_override_entry.hpp.
| metatile::Subtile porytiles::AnimOverrideEntry::subtile |
The subtile position within the layer (northwest, northeast, southwest, southeast).
Definition at line 25 of file anim_override_entry.hpp.
| bool porytiles::AnimOverrideEntry::v_flip |
Whether the tile is vertically flipped.
Definition at line 33 of file anim_override_entry.hpp.