private void readActive(XmlReader inReader, ValueGroup inValues) { while (inReader.Read()) { if (inReader.NodeType == XmlNodeType.Element) { if (inReader.Name.ToLower() == "item") { try { inValues.addActive(inReader.GetAttribute("type"), Convert.ToDouble(inReader.GetAttribute("value"))); } catch (FormatException) { Console.WriteLine("Value has invalid type."); } } } } }
public Upgrade() { Values = new ValueGroup(); }
public Building() { Type = BuildingTypes.None; Values = new ValueGroup(); Upgrades = new List<Upgrade>(); }