Rename MapGridType.Rectangle to MapGridType.Rectangular

This commit is contained in:
Pavel Penev
2015-10-01 00:52:20 +03:00
parent bb3aea338a
commit 0e417a3cf3
9 changed files with 13 additions and 13 deletions

View File

@@ -786,7 +786,7 @@ namespace OpenRA
public WPos CenterOfCell(CPos cell)
{
if (Grid.Type == MapGridType.Rectangle)
if (Grid.Type == MapGridType.Rectangular)
return new WPos(1024 * cell.X + 512, 1024 * cell.Y + 512, 0);
// Convert from diamond cell position (x, y) to world position (u, v):
@@ -818,7 +818,7 @@ namespace OpenRA
public CPos CellContaining(WPos pos)
{
if (Grid.Type == MapGridType.Rectangle)
if (Grid.Type == MapGridType.Rectangular)
return new CPos(pos.X / 1024, pos.Y / 1024);
// Convert from world position to diamond cell position:

View File

@@ -13,11 +13,11 @@ using System.IO;
namespace OpenRA
{
public enum MapGridType { Rectangle, Diamond }
public enum MapGridType { Rectangular, Diamond }
public class MapGrid : IGlobalModData
{
public readonly MapGridType Type = MapGridType.Rectangle;
public readonly MapGridType Type = MapGridType.Rectangular;
public readonly Size TileSize = new Size(24, 24);
public readonly byte MaximumTerrainHeight = 0;
public readonly byte SubCellDefaultIndex = byte.MaxValue;