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