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