Merge pull request #10143 from Phrohdoh/interface-reflection

Implement a utility command to check for explicit interface implementation violations.
This commit is contained in:
Oliver Brakmann
2016-01-18 20:23:43 +01:00
14 changed files with 150 additions and 19 deletions

View File

@@ -114,7 +114,7 @@ namespace OpenRA.Mods.RA.Traits
}
// Show the remaining time as a bar
public float GetValue()
float ISelectionBar.GetValue()
{
if (!info.ReturnToOrigin)
return 0f;
@@ -126,7 +126,7 @@ namespace OpenRA.Mods.RA.Traits
return (float)ReturnTicks / duration;
}
public Color GetColor() { return info.TimeBarColor; }
Color ISelectionBar.GetColor() { return info.TimeBarColor; }
public void ModifyDeathActorInit(Actor self, TypeDictionary init)
{

View File

@@ -105,12 +105,12 @@ namespace OpenRA.Mods.RA.Traits
get { return chargeTick <= 0; }
}
public float GetValue()
float ISelectionBar.GetValue()
{
return (float)(Info.ChargeDelay - chargeTick) / Info.ChargeDelay;
}
public Color GetColor() { return Color.Magenta; }
Color ISelectionBar.GetColor() { return Color.Magenta; }
}
class PortableChronoOrderTargeter : IOrderTargeter