Porytiles
Loading...
Searching...
No Matches
anim_override_entry.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4
6
7namespace porytiles {
8
21 std::size_t metatile_id;
27 std::size_t frame_subtile;
29 std::size_t pal_index;
31 bool h_flip;
33 bool v_flip;
34};
35
36} // namespace porytiles
A manual override that maps a specific metatile entry to an animation subtile.
metatile::Layer layer
The layer within the metatile (bottom, middle, or top).
bool v_flip
Whether the tile is vertically flipped.
std::size_t frame_subtile
Zero-based index into the animation's tile range (tile_offset + frame_subtile = actual tile index).
bool h_flip
Whether the tile is horizontally flipped.
std::size_t metatile_id
The metatile ID this override applies to (corresponds to JSON "id" field).
std::size_t pal_index
The palette index to use for this tile.
metatile::Subtile subtile
The subtile position within the layer (northwest, northeast, southwest, southeast).