コード例 #1
0
ファイル: LevelGeometry.cs プロジェクト: Mattias1/td
        public void SetTileType(Tile <TileInfo> tile, TileInfo.Type type)
        {
            if (!tile.IsValid)
            {
                throw new System.ArgumentOutOfRangeException();
            }

            Tilemap[tile].SetTileType(type);

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