The Cursed Labyrinth
Loading...
Searching...
No Matches
TilemapVisualizer Class Referencesealed
Inheritance diagram for TilemapVisualizer:
Collaboration diagram for TilemapVisualizer:

Public Member Functions

void SetPrefabSkipMask (bool[,] mask)
bool TryGetTileForKind (string kind, out TileBase tile)
void SetPrefabBounds (RectInt boundsGrid)
void Clear ()
void Render (DungeonGrid grid)
Vector3 CellCenterLocal (int x, int y)
Vector3 CellCenterWorld (int x, int y)
void SetCellOffset (Vector2Int off)
Vector2Int TileToGridCell (Vector3Int tileCell)
void InvalidateCarpetMask ()
 Force the next Render() to rebuild the carpet mask.
void SetCarpetMask (bool[,] mask)
 Supply an external carpet mask (must match grid size).

Properties

Transform GridTransform [get]
bool[,] CarpetMask [get]
float CellSize [get]

Member Function Documentation

◆ CellCenterLocal()

Vector3 TilemapVisualizer.CellCenterLocal ( int x,
int y )

◆ CellCenterWorld()

Vector3 TilemapVisualizer.CellCenterWorld ( int x,
int y )

◆ Clear()

void TilemapVisualizer.Clear ( )

◆ InvalidateCarpetMask()

void TilemapVisualizer.InvalidateCarpetMask ( )

Force the next Render() to rebuild the carpet mask.

◆ Render()

void TilemapVisualizer.Render ( DungeonGrid grid)

◆ SetCarpetMask()

void TilemapVisualizer.SetCarpetMask ( bool mask[,])

Supply an external carpet mask (must match grid size).

◆ SetCellOffset()

void TilemapVisualizer.SetCellOffset ( Vector2Int off)

◆ SetPrefabBounds()

void TilemapVisualizer.SetPrefabBounds ( RectInt boundsGrid)

◆ SetPrefabSkipMask()

void TilemapVisualizer.SetPrefabSkipMask ( bool mask[,])

◆ TileToGridCell()

Vector2Int TilemapVisualizer.TileToGridCell ( Vector3Int tileCell)

◆ TryGetTileForKind()

bool TilemapVisualizer.TryGetTileForKind ( string kind,
out TileBase tile )

Property Documentation

◆ CarpetMask

bool [,] TilemapVisualizer.CarpetMask
get

◆ CellSize

float TilemapVisualizer.CellSize
get

◆ GridTransform

Transform TilemapVisualizer.GridTransform
get

The documentation for this class was generated from the following file: