Rename enum TileShape to MapGridType

This commit is contained in:
Pavel Penev
2015-10-01 00:48:01 +03:00
parent 06ba175fde
commit bb3aea338a
17 changed files with 63 additions and 71 deletions

View File

@@ -41,9 +41,9 @@ namespace OpenRA
return ToCPos(map.Grid.Type);
}
public CPos ToCPos(TileShape shape)
public CPos ToCPos(MapGridType gridType)
{
if (shape == TileShape.Rectangle)
if (gridType == MapGridType.Rectangle)
return new CPos(U, V);
// Convert from rectangular map position to diamond cell position