Clean up custom color palette

This commit is contained in:
Paul Chote
2010-08-15 00:15:23 +12:00
parent 271be551b0
commit 694fd84188
10 changed files with 53 additions and 26 deletions

View File

@@ -52,16 +52,10 @@ namespace OpenRA.Graphics
public void AddPalette(string name, Palette p)
{
Console.WriteLine("Adding palette "+name);
palettes.Add(name, p);
indices.Add(name, allocated++);
}
public void UpdatePalette(string name, Palette p)
{
palettes[name] = p;
}
public void Update(IEnumerable<IPaletteModifier> paletteMods)
{
var copy = palettes.ToDictionary(p => p.Key, p => new Palette(p.Value));