public void SetTileThingLit(Vec position, bool lit) { IDungeonTile tile = (IDungeonTile)Tiles[position]; if (tile.SetTileThingLit(lit)) { TileChanged.Raise(this, new TileEventArgs((Tile)tile, position)); } }
public void SetTileVisible(Vec position, bool isVisible) { IDungeonTile tile = (IDungeonTile)Tiles[position]; if (tile.SetIsVisible(isVisible)) { TileChanged.Raise(this, new TileEventArgs((Tile)tile, position)); } }
public void SetTileExplored(Vec position) { IDungeonTile tile = (IDungeonTile)Tiles[position]; if (tile.SetExplored()) { TileChanged.Raise(this, new TileEventArgs((Tile)tile, position)); } }
public void SetTileType(Vec position, TileType type) { IDungeonTile tile = (IDungeonTile)Tiles[position]; if (tile.SetTileType(type)) { TileChanged.Raise(this, new TileEventArgs((Tile)tile, position)); } }
public void SetTilePermanentLit(Vec position, bool lit) { IDungeonTile tile = (IDungeonTile)Tiles[position]; if (tile.SetTilePermanentLit(lit)) { DirtyLighting(); TileChanged.Raise(this, new TileEventArgs((Tile)tile, position)); } }