Dimension
| Property | Type | Writable | Description |
|---|---|---|---|
Map | Writable | Map layer tree for this dimension.null |
| Function |
|---|
HasTile(coordinate: Coordinate, tileDef: TileDefinition): booleanHasTile(coordinate: Coordinate, tileDef: TileDefinition, viewer: Viewer): boolean |
Checks if a specific tile exists at the given coordinate. |
PlaceTile(coordinate: Coordinate, tileDef: TileDefinition): TransientTilePlaceTile(coordinate: Coordinate, tileDef: TileDefinition, layerName: string): TransientTile |
Places a tile at the specified coordinate and returns a TransientTile reference. |
AnnotateTile(coordinate: Coordinate, key: string, data: table)AnnotateTile(coordinate: Coordinate, key: string, data: table, layerName: string) |
Adds annotation data to a tile at the specified coordinate. |
GetTilesAt(coordinate: Coordinate): table<TransientTile>GetTilesAt(coordinate: Coordinate, viewer: Viewer): table<TransientTile> |
Gets all tiles at the specified coordinate as TransientTile objects. |
GetAnnotationAt(coordinate: Coordinate, key: string): table | nilGetAnnotationAt(coordinate: Coordinate, key: string, viewer: Viewer): table | nil |
Gets annotation data for a tile at the specified coordinate. |
HasCollisionAt(coordinate: Coordinate): booleanHasCollisionAt(coordinate: Coordinate, viewer: Viewer): boolean |
Checks if there is a collision at the specified coordinate for the given viewer. |
GetEntitiesAt(coordinate: Coordinate): table<Entity> |
Gets all entities at the specified coordinate. |
GetEntitiesInRange(coordinate: Coordinate, range: number): table<Entity> |
Gets all entities within the specified range of a coordinate. |