crude map change support; quite a few things aren't right

This commit is contained in:
Chris Forbes
2009-12-22 21:49:04 +13:00
parent ff90bd7b21
commit f57865bd32
7 changed files with 81 additions and 35 deletions

View File

@@ -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");

View File

@@ -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)

View File

@@ -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;