backend support for selling

This commit is contained in:
Chris Forbes
2010-01-02 12:00:37 +13:00
parent 5a7b572cfd
commit acacd99a71
3 changed files with 48 additions and 0 deletions

View File

@@ -62,6 +62,12 @@ namespace OpenRa.Game.Traits
() => anim.PlayRepeating(GetPrefix(self) + "idle"));
}
public void PlayCustomAnimBackwards(Actor self, string name, Action a)
{
anim.PlayBackwardsThen(GetPrefix(self) + name,
() => { anim.PlayRepeating(GetPrefix(self) + "idle"); a(); });
}
public virtual void Damaged(Actor self, AttackInfo e)
{
if (!e.DamageStateChanged)