Porytiles
Loading...
Searching...
No Matches
porytiles::AnimOverrideEntry Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ frame_subtile

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.

◆ h_flip

bool porytiles::AnimOverrideEntry::h_flip

Whether the tile is horizontally flipped.

Definition at line 31 of file anim_override_entry.hpp.

◆ layer

metatile::Layer porytiles::AnimOverrideEntry::layer

The layer within the metatile (bottom, middle, or top).

Definition at line 23 of file anim_override_entry.hpp.

◆ metatile_id

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.

◆ pal_index

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.

◆ subtile

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.

◆ v_flip

bool porytiles::AnimOverrideEntry::v_flip

Whether the tile is vertically flipped.

Definition at line 33 of file anim_override_entry.hpp.


The documentation for this struct was generated from the following file: