Simplify PaletteReference interface.

This commit is contained in:
Paul Chote
2013-02-25 18:03:44 +13:00
parent f2fe30a7bb
commit 72a9954491
4 changed files with 11 additions and 27 deletions

View File

@@ -99,7 +99,7 @@ namespace OpenRA.Mods.RA.Orders
foreach (var r in preview)
r.Sprite.DrawAt(topLeft.ToPPos().ToFloat2() + r.Pos,
r.Palette.RowIndex(wr),
r.Palette.Index,
r.Scale*r.Sprite.size);
var res = world.WorldActor.Trait<ResourceLayer>();