Start thinking about how the harv<->proc interaction is going to work

This commit is contained in:
Paul Chote
2010-02-01 00:58:57 +13:00
parent 4fcb655e2c
commit 249c56d82f
9 changed files with 56 additions and 11 deletions

View File

@@ -65,6 +65,12 @@ namespace OpenRa.Traits
() => anim.PlayRepeating(GetPrefix(self) + "idle"));
}
public void PlayCustomAnim(Actor self, string name, Action a)
{
anim.PlayThen(GetPrefix(self) + name,
() => { anim.PlayRepeating(GetPrefix(self) + "idle"); a(); });
}
public void PlayCustomAnimBackwards(Actor self, string name, Action a)
{
anim.PlayBackwardsThen(GetPrefix(self) + name,