Пример #1
0
        public void SetTileThingLit(Vec position, bool lit)
        {
            IDungeonTile tile = (IDungeonTile)Tiles[position];

            if (tile.SetTileThingLit(lit))
            {
                TileChanged.Raise(this, new TileEventArgs((Tile)tile, position));
            }
        }
Пример #2
0
        public void SetTileVisible(Vec position, bool isVisible)
        {
            IDungeonTile tile = (IDungeonTile)Tiles[position];

            if (tile.SetIsVisible(isVisible))
            {
                TileChanged.Raise(this, new TileEventArgs((Tile)tile, position));
            }
        }
Пример #3
0
        public void SetTileExplored(Vec position)
        {
            IDungeonTile tile = (IDungeonTile)Tiles[position];

            if (tile.SetExplored())
            {
                TileChanged.Raise(this, new TileEventArgs((Tile)tile, position));
            }
        }
Пример #4
0
        public void SetTileType(Vec position, TileType type)
        {
            IDungeonTile tile = (IDungeonTile)Tiles[position];

            if (tile.SetTileType(type))
            {
                TileChanged.Raise(this, new TileEventArgs((Tile)tile, position));
            }
        }
Пример #5
0
        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));
            }
        }