use TickRender() for RenderSprites and PaletteModifier

This commit is contained in:
Matthias Mailänder
2014-07-03 20:42:37 +02:00
parent 58cb603803
commit 87fd576b26
23 changed files with 48 additions and 43 deletions

View File

@@ -40,7 +40,7 @@ namespace OpenRA.Mods.RA
public override object Create(ActorInitializer init) { return new AttackGarrisoned(init.self, this); }
}
public class AttackGarrisoned : AttackFollow, INotifyPassengerEntered, INotifyPassengerExited, IRender
public class AttackGarrisoned : AttackFollow, INotifyPassengerEntered, INotifyPassengerExited, IRender, ITickRender
{
public readonly FirePort[] Ports;
@@ -183,10 +183,8 @@ namespace OpenRA.Mods.RA
yield return r;
}
public override void Tick(Actor self)
public void TickRender(WorldRenderer wr, Actor self)
{
base.Tick(self);
// Take a copy so that Tick() can remove animations
foreach (var m in muzzles.ToList())
m.Animation.Tick();