Rename MapGridType.Rectangle to MapGridType.Rectangular
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user