Add MapGrid class
MapGrid is a mod Manifest field which includes (and thus makes redundant) TileSize, TileShape, SubCells info and MaximumTerrainHeight.
This commit is contained in:
@@ -71,7 +71,7 @@ namespace OpenRA.Graphics
|
||||
{
|
||||
var pos = sprite == null ? float2.Zero :
|
||||
worldRenderer.ScreenPosition(map.CenterOfCell(cell)) + sprite.Offset - 0.5f * sprite.Size;
|
||||
Update(cell.ToMPos(map.TileShape), sprite, pos);
|
||||
Update(cell.ToMPos(map.Grid.Type), sprite, pos);
|
||||
}
|
||||
|
||||
public void Update(MPos uv, Sprite sprite, float2 pos)
|
||||
|
||||
Reference in New Issue
Block a user