fixed #42 -- show harvester fullness in sprites

This commit is contained in:
Chris Forbes
2011-07-17 14:39:53 +12:00
parent 9dd0ad980b
commit fe6a99c993
7 changed files with 84 additions and 1 deletions

View File

@@ -88,6 +88,7 @@ namespace OpenRA.Mods.RA
public bool IsFull { get { return contents.Values.Sum() == Info.Capacity; } }
public bool IsEmpty { get { return contents.Values.Sum() == 0; } }
public float Fullness { get { return (float)contents.Values.Sum() / Info.Capacity; } }
public void AcceptResource(ResourceType type)
{