Skip to content

Tilemaps

const Tilemaps: ResourceDef<{ advanceAnimations: void; clearTileAnimations: void; destroyLayer: void; exportChunks: string; fillRect: void; flipTile: void; getTile: number; getTileProperty: string; hasLayer: boolean; importChunks: boolean; initInfiniteLayer: void; initLayer: void; rotateTile: void; setChunkTiles: void; setGridType: void; setHexParams: void; setOriginEntity: void; setRenderProps: void; setTile: void; setTileAnimation: void; setTileProperty: void; setTiles: void; setTilesets: void; setTint: void; setVisible: void; tileToWorld: { x: number; y: number; }; worldToTile: { x: number; y: number; }; }>

Defined in: tilemap/tilemapAPI.ts:281

The canonical game-code accessor: Res(Tilemaps), same shape as every other subsystem resource. Wraps the TilemapAPI singleton — see its doc for when direct use is appropriate.