Move TileSize definition to terrain info.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
0f7b24a8c0
commit
25188e849e
@@ -12,7 +12,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA
|
||||
@@ -106,7 +105,6 @@ namespace OpenRA
|
||||
public class MapGrid : IGlobalModData
|
||||
{
|
||||
public readonly MapGridType Type = MapGridType.Rectangular;
|
||||
public readonly Size TileSize = new(24, 24);
|
||||
public readonly byte MaximumTerrainHeight = 0;
|
||||
public readonly SubCell DefaultSubCell = (SubCell)byte.MaxValue;
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace OpenRA
|
||||
public interface ITerrainInfo
|
||||
{
|
||||
string Id { get; }
|
||||
Size TileSize { get; }
|
||||
TerrainTypeInfo[] TerrainTypes { get; }
|
||||
TerrainTileInfo GetTerrainInfo(TerrainTile r);
|
||||
bool TryGetTerrainInfo(TerrainTile r, out TerrainTileInfo info);
|
||||
|
||||
Reference in New Issue
Block a user