Sync superweapon activate animation

This commit is contained in:
Paul Chote
2010-01-09 12:28:39 +13:00
parent 51baf1f11d
commit ef8becb5de
5 changed files with 34 additions and 8 deletions

View File

@@ -5,8 +5,18 @@ using System.Text;
namespace OpenRa.Game.Traits
{
class Chronosphere
class Chronosphere : IResolveOrder
{
public Chronosphere(Actor self) { }
public void ResolveOrder(Actor self, Order order)
{
if (order.OrderString == "PlayAnimation")
{
var rb = self.traits.Get<RenderBuilding>();
if (rb != null)
rb.PlayCustomAnim(self, order.TargetString);
}
}
}
}