crude map change support; quite a few things aren't right
This commit is contained in:
@@ -8,13 +8,14 @@ namespace OpenRa.Game.Graphics
|
||||
{
|
||||
static class SequenceProvider
|
||||
{
|
||||
static Dictionary<string, Dictionary<string, Sequence>> units =
|
||||
new Dictionary<string, Dictionary<string, Sequence>>();
|
||||
|
||||
static Dictionary<string, CursorSequence> cursors = new Dictionary<string, CursorSequence>();
|
||||
static Dictionary<string, Dictionary<string, Sequence>> units;
|
||||
static Dictionary<string, CursorSequence> cursors;
|
||||
|
||||
public static void Initialize( bool useAftermath )
|
||||
{
|
||||
units = new Dictionary<string, Dictionary<string, Sequence>>();
|
||||
cursors = new Dictionary<string, CursorSequence>();
|
||||
|
||||
LoadSequenceSource("sequences.xml");
|
||||
if (useAftermath)
|
||||
LoadSequenceSource("sequences-aftermath.xml");
|
||||
|
||||
@@ -7,6 +7,9 @@ namespace OpenRa.Game.Graphics
|
||||
public static void Initialize(Renderer r)
|
||||
{
|
||||
renderer = r;
|
||||
current = null;
|
||||
rowHeight = 0;
|
||||
channel = null;
|
||||
}
|
||||
|
||||
public static Sprite Add(byte[] src, Size size)
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace OpenRa.Game.Graphics
|
||||
public readonly SpriteRenderer spriteRenderer;
|
||||
public readonly LineRenderer lineRenderer;
|
||||
public readonly UiOverlay uiOverlay;
|
||||
readonly Renderer renderer;
|
||||
public readonly Renderer renderer;
|
||||
|
||||
public static bool ShowUnitPaths = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user