moving another filelist out to where we want it
This commit is contained in:
@@ -75,7 +75,11 @@ namespace OpenRa
|
||||
players[i] = new Player(i, LobbyInfo.Clients.FirstOrDefault(a => a.Index == i));
|
||||
}
|
||||
|
||||
SequenceProvider.Initialize(usingAftermath);
|
||||
var sequenceFiles = usingAftermath
|
||||
? new[] { "sequences.xml", "sequences-aftermath.xml" }
|
||||
: new[] { "sequences.xml" };
|
||||
|
||||
SequenceProvider.Initialize(sequenceFiles);
|
||||
viewport = new Viewport(clientSize, Game.world.Map.Offset, Game.world.Map.Offset + Game.world.Map.Size, renderer);
|
||||
|
||||
skipMakeAnims = true;
|
||||
|
||||
@@ -11,14 +11,13 @@ namespace OpenRa.Graphics
|
||||
static Dictionary<string, Dictionary<string, Sequence>> units;
|
||||
static Dictionary<string, CursorSequence> cursors;
|
||||
|
||||
public static void Initialize(bool useAftermath)
|
||||
public static void Initialize(params string[] sequenceFiles)
|
||||
{
|
||||
units = new Dictionary<string, Dictionary<string, Sequence>>();
|
||||
cursors = new Dictionary<string, CursorSequence>();
|
||||
|
||||
LoadSequenceSource("sequences.xml");
|
||||
if (useAftermath)
|
||||
LoadSequenceSource("sequences-aftermath.xml");
|
||||
foreach (var f in sequenceFiles)
|
||||
LoadSequenceSource(f);
|
||||
}
|
||||
|
||||
static void LoadSequenceSource(string filename)
|
||||
|
||||
Reference in New Issue
Block a user