Changed: Made it possible for maps to contain custom sequences (allowing 100% custom map-specific units to be 'build')

This commit is contained in:
geckosoft
2010-11-15 02:08:27 +01:00
committed by Chris Forbes
parent 414b3a03c3
commit b31a35d34b
3 changed files with 16 additions and 8 deletions

View File

@@ -53,6 +53,7 @@ namespace OpenRA
}
string cachedTheatre = null;
public Map PrepareMap(string uid)
{
LoadScreen.Display();
@@ -63,13 +64,15 @@ namespace OpenRA
var map = new Map(AvailableMaps[uid]);
Rules.LoadRules(Manifest, map);
if (map.Theater != cachedTheatre)
{
SpriteSheetBuilder.Initialize( Rules.TileSets[map.Tileset] );
SequenceProvider.Initialize(Manifest.Sequences);
CursorProvider.Initialize(Manifest.Cursors);
SequenceProvider.Initialize(Manifest.Sequences, map.Sequences);
cachedTheatre = map.Theater;
}
return map;
}
}