QtCraft API C++ classes QML types Handbook

QcTextureAtlas::TileSource Struct

struct QcTextureAtlas::TileSource

Where the tile at an index of the layout came from (decision E-908): the index of its definition in the content's textures (-1 for the placeholder and the tiles the game draws itself) and the id of the pack that gave it ("" for the content). More...

Public Variables

qsizetype definition
QString pack

Detailed Description

Later frames of an animation name their texture's definition too.

Member Variable Documentation

qsizetype TileSource::definition

Index of the tile's definition in the content's textures; -1 for the placeholder and tiles the game draws itself.

QString TileSource::pack

Id of the pack that gave the tile; "" for the content.