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

Result of matching a tile against animation keyframes. More...

#include <anim_tile_matcher.hpp>

Collaboration diagram for porytiles::AnimTileMatch:
[legend]

Public Attributes

std::string anim_name
 Name of the animation this keyframe belongs to.
 
std::size_t tile_index
 Absolute tile index in tiles.png.
 
std::size_t keyframe_tile_idx
 Index within the keyframe (0, 1, 2, ...)
 
bool h_flip
 Horizontal flip required to match.
 
bool v_flip
 Vertical flip required to match.
 
bool is_cross_tileset {false}
 True if this match is against a primary animation (cross-tileset linking)
 

Detailed Description

Result of matching a tile against animation keyframes.

Contains all the information needed to reference an animation keyframe tile in a metatile entry: the tile index in tiles.png, the flip bits to apply, and metadata about which animation the match came from.

Definition at line 21 of file anim_tile_matcher.hpp.

Member Data Documentation

◆ anim_name

std::string porytiles::AnimTileMatch::anim_name

Name of the animation this keyframe belongs to.

Definition at line 22 of file anim_tile_matcher.hpp.

◆ h_flip

bool porytiles::AnimTileMatch::h_flip

Horizontal flip required to match.

Definition at line 25 of file anim_tile_matcher.hpp.

◆ is_cross_tileset

bool porytiles::AnimTileMatch::is_cross_tileset {false}

True if this match is against a primary animation (cross-tileset linking)

Definition at line 27 of file anim_tile_matcher.hpp.

◆ keyframe_tile_idx

std::size_t porytiles::AnimTileMatch::keyframe_tile_idx

Index within the keyframe (0, 1, 2, ...)

Definition at line 24 of file anim_tile_matcher.hpp.

◆ tile_index

std::size_t porytiles::AnimTileMatch::tile_index

Absolute tile index in tiles.png.

Definition at line 23 of file anim_tile_matcher.hpp.

◆ v_flip

bool porytiles::AnimTileMatch::v_flip

Vertical flip required to match.

Definition at line 26 of file anim_tile_matcher.hpp.


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