EPOK RUNTIME
epok::TileInfo
Struct
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Struct
One tile of a cooked TileSet.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "world2d_tiles.hpp"
epok::TileInfo& value = /* obtain a valid instance from your game */;Fields and constants
atlascolumn, row in the atlas gridFieldcollisionExposes `collision` on `epok::TileInfo` for the world2d tiles module.Fieldcolumnsframes per atlas row before wrapping; 0 = never wrapsFieldflagstile_one_wayFieldframe_secondsExposes `frame_seconds` on `epok::TileInfo` for the world2d tiles module.Fieldframesanimation frames, laid out to the right of the tileFieldrectcollision rectangle inside the tile (x, y, w, h)Fieldstridetexels between two frames (tile size plus separation)Fieldutop-left texel of the first animation frameFieldvtop-left texel of the first animation frameField