new support power impl

This commit is contained in:
Chris Forbes
2010-01-23 21:07:27 +13:00
parent bbf94fef79
commit d7a2691db3
56 changed files with 409 additions and 489 deletions

View File

@@ -8,7 +8,7 @@ namespace OpenRa.Traits
public override object Create(Actor self) { return new RenderBuilding(self); }
}
class RenderBuilding : RenderSimple, INotifyDamage, INotifySold
class RenderBuilding : RenderSimple, INotifyDamage, INotifySold, IResolveOrder
{
const int SmallBibStart = 1;
const int LargeBibStart = 5;
@@ -99,5 +99,11 @@ namespace OpenRa.Traits
}
public void Sold(Actor self) { DoBib(self, true); }
public void ResolveOrder(Actor self, Order order)
{
if (order.OrderString == "PlayAnimation")
PlayCustomAnim(self, order.TargetString);
}
}
}