decouple that a bit more.

This commit is contained in:
Chris Forbes
2009-12-22 20:03:53 +13:00
parent b9d231d500
commit d695344a05
3 changed files with 9 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ using OpenRa.Game.Graphics;
namespace OpenRa.Game.Traits
{
class RenderWarFactory : IRender, INotifyBuildComplete, INotifyDamage, ITick
class RenderWarFactory : IRender, INotifyBuildComplete, INotifyDamage, ITick, INotifyProduction
{
public Animation roof;
bool doneBuilding;
@@ -42,11 +42,6 @@ namespace OpenRa.Game.Traits
}
}
public void EjectUnit()
{
roof.PlayThen(prefix + "build-top", () => isOpen = true);
}
public void Damaged(Actor self, AttackInfo e)
{
if (!e.DamageStateChanged) return;
@@ -62,5 +57,10 @@ namespace OpenRa.Game.Traits
break;
}
}
public void UnitProduced(Actor self, Actor other)
{
roof.PlayThen(prefix + "build-top", () => isOpen = true);
}
}
}