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