Explicitly implement ISelectionBar

This commit is contained in:
Taryn Hill
2015-12-30 08:19:50 -06:00
parent e3229f4cd8
commit 25eddb9567
9 changed files with 18 additions and 19 deletions

View File

@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.Traits
value = remaining * 1f / duration;
}
public float GetValue()
float ISelectionBar.GetValue()
{
if (!self.Owner.IsAlliedWith(self.World.RenderPlayer))
return 0;
@@ -57,6 +57,6 @@ namespace OpenRA.Mods.Common.Traits
return value;
}
public Color GetColor() { return info.Color; }
Color ISelectionBar.GetColor() { return info.Color; }
}
}