Support arbitrary per-player palettes. Will crash if I missed any cases that don't explicitly set the Renderable palette.

This commit is contained in:
Paul Chote
2011-05-03 22:21:31 +12:00
parent b937489f2d
commit 8f962853f9
12 changed files with 36 additions and 32 deletions

View File

@@ -27,7 +27,6 @@ namespace OpenRA
public int Deaths;
public WinState WinState = WinState.Undefined;
public readonly string Palette;
public readonly ColorRamp ColorRamp;
public readonly string PlayerName;
@@ -46,7 +45,6 @@ namespace OpenRA
{
World = world;
Index = index;
Palette = "player" + index;
InternalName = pr.Name;
PlayerRef = pr;