tmxlite 1.0.0
lightweight parse for Tiled maps
tmx::Tileset::Tile::Animation::Frame Struct Referencefinal

A frame within an animation. More...

#include <Tileset.hpp>

Public Member Functions

bool operator== (const Frame &other) const
bool operator!= (const Frame &other) const

Public Attributes

std::uint32_t tileID = 0
 ID of the tile to be displayed during this frame.
std::uint32_t duration = 0
 Duration of the animation frame, in milliseconds.

Detailed Description

A frame within an animation.

Member Data Documentation

◆ tileID

std::uint32_t tmx::Tileset::Tile::Animation::Frame::tileID = 0

ID of the tile to be displayed during this frame.

Note
For convenience, this is global tile ID - you do not need to add the firstGID of the tileset to it

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