public void SetTileType(Tile <TileInfo> tile, TileInfo.Type type) { if (!tile.IsValid) { throw new System.ArgumentOutOfRangeException(); } Tilemap[tile].SetTileType(type); updatePassability(tile); }
public static IRequest Request(GameState game, Tile <TileInfo> tile, TileInfo.Type type) => new Implementation(game, tile, type);
public Implementation(GameState game, Tile <TileInfo> tile, TileInfo.Type type) { this.game = game; this.tile = tile; this.type = type; }
private void set(Tile tile, TileInfo.Type type) => tile.Info.SetTileType(type);