Remove lazy loading of binary map data.

This commit is contained in:
Paul Chote
2016-03-12 21:23:32 +00:00
parent 51bfe4accc
commit 65df25b1a4
22 changed files with 141 additions and 183 deletions

View File

@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
{
var type = ms.ReadUInt8();
var index = ms.ReadUInt8();
Map.MapTiles.Value[new CPos(i, j)] = new TerrainTile(type, index);
Map.Tiles[new CPos(i, j)] = new TerrainTile(type, index);
}
}
}
@@ -96,7 +96,7 @@ namespace OpenRA.Mods.Cnc.UtilityCommands
if (overlayResourceMapping.ContainsKey(type))
res = overlayResourceMapping[type];
Map.MapResources.Value[cell] = new ResourceTile(res.First, res.Second);
Map.Resources[cell] = new ResourceTile(res.First, res.Second);
if (overlayActors.Contains(type))
{
var ar = new ActorReference(type)