Beispiel #1
0
        public void SetTileType(Tile <TileInfo> tile, TileInfo.Type type)
        {
            if (!tile.IsValid)
            {
                throw new System.ArgumentOutOfRangeException();
            }

            Tilemap[tile].SetTileType(type);

            updatePassability(tile);
        }
Beispiel #2
0
 public static IRequest Request(GameState game, Tile <TileInfo> tile, TileInfo.Type type)
 => new Implementation(game, tile, type);
Beispiel #3
0
 public Implementation(GameState game, Tile <TileInfo> tile, TileInfo.Type type)
 {
     this.game = game;
     this.tile = tile;
     this.type = type;
 }
Beispiel #4
0
 private void set(Tile tile, TileInfo.Type type)
 => tile.Info.SetTileType(type);