public DefenseGridAlien(XmlElement data)
        {
            Name = data.Name;

            Encountered = int.Parse(data.GetValueText("encountered"));
            Killed      = int.Parse(data.GetValueText("killed"));
        }
        public DefenseGridCommand(XmlElement data)
        {
            Level = int.Parse(data.GetAttribute("level"));

            Built     =   int.Parse(data.GetValueText("built"));
            Resources = float.Parse(data.GetValueText("resource"));
        }
        public DefenseGridTower(XmlElement data)
        {
            Class = data.Name;
            Level = int.Parse(data.GetAttribute("level"));

            Built  =   int.Parse(data.GetValueText("built"));
            if (data.GetXmlElement("damage") != null) {
                HasDamage = true;
                Damage = float.Parse(data.GetValueText("damage"));
            }
        }