Struct · Ara
Tilemap
Canonical text source for a tilemap. Binary chunks are derived cache products.
public struct Tilemap : IComponent<Tilemap>Properties
TypeIndex
public static uint TypeIndex { get; }Stable engine component index.
Fields
Atlas
public string Atlas;Atlas asset reference; never a native descriptor.
Default: null.
NormalAtlas
public string NormalAtlas;Optional normal atlas matching the source regions.
Default: null.
Layout
public GridLayout Layout;Grid, pointy hex or diamond layout.
Default: "grid".
CellSize
public Vector2 CellSize;World dimensions of a cell's bounding box in metres.
Default: [1,1].
Definitions
public Dictionary<string, TileDefinition> Definitions;Tile number text to definitions; zero is reserved for empty cells.
Default: {}.
Layers
public TileLayer[] Layers;Stable layers. Their array order never determines painter order.
Default: [].
Rules
public TileRule[] Rules;Ordered auto-tiling rules.
Default: [].
Methods
Access
public static ref Tilemap Access(Entity entity, bool write);No description yet.
Insert
public static void Insert(in Commands commands, Entity entity, in Tilemap value);No description yet.
Contains
public static bool Contains(Entity entity);No description yet.