Move effects to WorldRenderer palette lookup.

This commit is contained in:
Paul Chote
2013-02-24 11:32:32 +13:00
parent 95871e6cc1
commit 885eec7444
24 changed files with 45 additions and 43 deletions

View File

@@ -33,10 +33,10 @@ namespace OpenRA.Mods.RA.Effects
anim.Tick();
}
public IEnumerable<Renderable> Render()
public IEnumerable<Renderable> Render(WorldRenderer wr)
{
yield return new Renderable(anim.Image, pos.ToFloat2() - .5f * anim.Image.size,
PaletteReference.FromName("effect"), (int)pos.Y);
wr.Palette("effect"), (int)pos.Y);
}
}
}