Require explicit ISpeedModifier implementation

Plus misc "collateral" explicit interfaces.
This commit is contained in:
reaperrr
2016-10-22 20:10:49 +02:00
parent 97c2c24e8d
commit 4af7134115
4 changed files with 10 additions and 8 deletions

View File

@@ -447,9 +447,9 @@ namespace OpenRA.Mods.Common.Traits
yield return GetPipAt(i);
}
public bool ShouldExplode(Actor self) { return !IsEmpty; }
bool IExplodeModifier.ShouldExplode(Actor self) { return !IsEmpty; }
public int GetSpeedModifier()
int ISpeedModifier.GetSpeedModifier()
{
return 100 - (100 - Info.FullyLoadedSpeed) * contents.Values.Sum() / Info.Capacity;
}