public void RemoveModifier(int id, ResourceModifier resourceModifier) { Resource resource = getResourceByType(resourceModifier.ResourceType); resource.RemoveModifier(id, resourceModifier); resource.ApplyModifiers(); }
private void AddModifier(int id, ResourceModifier resourceModifier) { Resource resource = getResourceByType(resourceModifier.ResourceType); resource.AddModifier(id, resourceModifier); resource.ApplyModifiers(); }