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