adds custom-palette/shadow support for rendering everything

This commit is contained in:
Chris Forbes
2009-11-10 21:03:47 +13:00
parent a40ce7d088
commit 14910762c8
13 changed files with 32 additions and 50 deletions

View File

@@ -29,10 +29,11 @@ namespace OpenRa.Game.Traits
}, self);
}
public IEnumerable<Pair<Sprite, float2>> RenderRoof(Actor self)
public IEnumerable<Tuple<Sprite, float2, int>> RenderRoof(Actor self)
{
if (doneBuilding)
yield return Pair.New(roof.Image, 24f * (float2)self.Location);
yield return Tuple.New(roof.Image,
24f * (float2)self.Location, self.Owner.Palette);
}
public override void Tick(Actor self)