fixed #42 -- show harvester fullness in sprites
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user