Introduce initial PPos plumbing.
PPos is best thought of as a cell grid applied in screen space. Multiple cells with different terrain heights may be projected to the same PPos, or to multiple PPos if they do not align with the screen grid. PPos coordinates are used primarily for map edge checks and shroud / visibility queries.
This commit is contained in:
@@ -315,8 +315,8 @@ namespace OpenRA.Mods.D2k.UtilityCommands
|
||||
Author = "Westwood Studios"
|
||||
};
|
||||
|
||||
var tl = new MPos(MapCordonWidth, MapCordonWidth);
|
||||
var br = new MPos(MapCordonWidth + mapSize.Width - 1, MapCordonWidth + mapSize.Height - 1);
|
||||
var tl = new PPos(MapCordonWidth, MapCordonWidth);
|
||||
var br = new PPos(MapCordonWidth + mapSize.Width - 1, MapCordonWidth + mapSize.Height - 1);
|
||||
map.SetBounds(tl, br);
|
||||
|
||||
// Get all templates from the tileset YAML file that have at least one frame and an Image property corresponding to the requested tileset
|
||||
|
||||
Reference in New Issue
Block a user