Use the new INotifyBurstComplete interface instead of INotifyAttack
This commit is contained in:
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.TS.Traits
|
|||||||
public override object Create(ActorInitializer init) { return new AttackOrderPower(init.Self, this); }
|
public override object Create(ActorInitializer init) { return new AttackOrderPower(init.Self, this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
class AttackOrderPower : SupportPower, INotifyAddedToWorld, INotifyAttack
|
class AttackOrderPower : SupportPower, INotifyAddedToWorld, INotifyBurstComplete
|
||||||
{
|
{
|
||||||
readonly AttackOrderPowerInfo info;
|
readonly AttackOrderPowerInfo info;
|
||||||
AttackBase attack;
|
AttackBase attack;
|
||||||
@@ -52,7 +52,7 @@ namespace OpenRA.Mods.TS.Traits
|
|||||||
attack = self.Trait<AttackBase>();
|
attack = self.Trait<AttackBase>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void INotifyAttack.Attacking(Actor self, Target target, Armament a, Barrel barrel)
|
void INotifyBurstComplete.FiredBurst(Actor self, Target target, Armament a)
|
||||||
{
|
{
|
||||||
self.World.IssueOrder(new Order("Stop", self, false));
|
self.World.IssueOrder(new Order("Stop", self, false));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user