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
@@ -78,7 +78,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
assaultMoveToken = conditionManager.RevokeCondition(self, assaultMoveToken);
|
assaultMoveToken = conditionManager.RevokeCondition(self, assaultMoveToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string VoicePhraseForOrder(Actor self, Order order)
|
string IOrderVoice.VoicePhraseForOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
if (order.OrderString == "AttackMove" || order.OrderString == "AssaultMove")
|
if (order.OrderString == "AttackMove" || order.OrderString == "AssaultMove")
|
||||||
return info.Voice;
|
return info.Voice;
|
||||||
|
|||||||
@@ -145,13 +145,13 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
ApplyStanceCondition(self);
|
ApplyStanceCondition(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ResolveOrder(Actor self, Order order)
|
void IResolveOrder.ResolveOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
if (order.OrderString == "SetUnitStance" && Info.EnableStances)
|
if (order.OrderString == "SetUnitStance" && Info.EnableStances)
|
||||||
SetStance(self, (UnitStance)order.ExtraData);
|
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)
|
if (IsTraitDisabled || !self.IsIdle || Stance < UnitStance.ReturnFire)
|
||||||
return;
|
return;
|
||||||
@@ -210,7 +210,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(Actor self)
|
void ITick.Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (IsTraitDisabled)
|
if (IsTraitDisabled)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user