public ResourceAmount(XmlElement node, GameDataManager manager) { Type = manager.Resources[node.GetAttribute("ID")]; Amount = float.Parse(node.GetAttribute("Amount"), CultureInfo.InvariantCulture); }
public ResourceAmount(ResourceData type, float amount) { Type = type; Amount = amount; }