z offsets

This commit is contained in:
Chris Forbes
2009-12-22 19:13:30 +13:00
parent 3c1ead59fd
commit 3bc97ac0b9
21 changed files with 134 additions and 83 deletions

View File

@@ -12,9 +12,9 @@ namespace OpenRa.Game.Traits
Image = treeImage;
}
public IEnumerable<Tuple<Sprite, float2, int>> Render(Actor self)
public IEnumerable<Renderable> Render(Actor self)
{
yield return Tuple.New(Image, Game.CellSize * (float2)self.Location, 0);
yield return new Renderable(Image, Game.CellSize * (float2)self.Location, 0);
}
}
}