Forgot a file

This commit is contained in:
Paul Chote
2010-02-03 23:33:02 +13:00
parent 6821238710
commit 302af4edce

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using OpenRa.FileFormats;
namespace OpenRa.Traits
{
class ShroudPaletteInfo : ITraitInfo
{
public object Create(Actor self) { return new ShroudPalette(self); }
}
class ShroudPalette
{
public ShroudPalette(Actor self)
{
// TODO: This shouldn't rely on a base palette
var wr = self.World.WorldRenderer;
var pal = wr.GetPalette("terrain");
wr.AddPalette("shroud", new Palette(pal, new ShroudPaletteRemap()));
}
}
}