public override void SetTileType(RLTileType type) { TileType = type; if (TileDisplayRefresh != null) { TileDisplayRefresh(this); } }
public DungeonFloor(int width, int height, RLTileType defaultType) { Tags = new List <string>(); DungeonRegion mainRegion = new DungeonRegion(new Vector2Int(0, 0), new Vector2Int(width, height)); Regions = new List <DungeonRegion> { mainRegion }; Tiles = new RLBaseTile[width, height]; ForTilesInRegion(mainRegion, (x, y, tile) => new RLSimpleTile(new Vector3Int(x, y, 0), defaultType, this)); }
public abstract void SetTileType(RLTileType type);
public RLSimpleTile(Vector3Int position, RLTileType type, DungeonFloor floor) { Position = position; TileType = type; Floor = floor; }