Some misc explicit interfaces
Just a by-product from a previous commit, not meant to do anything specific other than bringing us a tiny step closer to requiring explicit implementations for these interfaces too, at some point.
This commit is contained in:
committed by
Matthias Mailänder
parent
761a4f29ab
commit
83afcc3448
@@ -145,13 +145,13 @@ namespace OpenRA.Mods.Common.Traits
|
||||
ApplyStanceCondition(self);
|
||||
}
|
||||
|
||||
public void ResolveOrder(Actor self, Order order)
|
||||
void IResolveOrder.ResolveOrder(Actor self, Order order)
|
||||
{
|
||||
if (order.OrderString == "SetUnitStance" && Info.EnableStances)
|
||||
SetStance(self, (UnitStance)order.ExtraData);
|
||||
}
|
||||
|
||||
public void Damaged(Actor self, AttackInfo e)
|
||||
void INotifyDamage.Damaged(Actor self, AttackInfo e)
|
||||
{
|
||||
if (IsTraitDisabled || !self.IsIdle || Stance < UnitStance.ReturnFire)
|
||||
return;
|
||||
@@ -210,7 +210,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Tick(Actor self)
|
||||
void ITick.Tick(Actor self)
|
||||
{
|
||||
if (IsTraitDisabled)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user