Locations Definition¶
Where a region’s objects stand: their id, their tile, and the shape and rotation they are placed at.
This is only the placement. What is being placed is a TObjectDefinition.
LocationsDefinition.Create¶
function TLocationsDefinition.Create(regionX, regionY: Integer; const data: TByteArray): TLocationsDefinition; static;
Decodes a region’s object placements.
Locations are stored as a run of deltas, so their number is only known once the whole buffer has been read; the array is grown in doublings while decoding and trimmed to size at the end, rather than resized once per location.