Esempio n. 1
0
 private static void DEffectsXML(XmlNode xmlNode, ObjModel obj)
 {
     for (XmlNode xmlNode5 = xmlNode.FirstChild; xmlNode5 != null; xmlNode5 = xmlNode5.NextSibling)
     {
         if ("DestroyEffects".Equals(xmlNode5.Name))
         {
             for (XmlNode xmlNode6 = xmlNode5.FirstChild; xmlNode6 != null; xmlNode6 = xmlNode6.NextSibling)
             {
                 if ("Effect".Equals(xmlNode6.Name))
                 {
                     XmlNamedNodeMap xml6 = xmlNode6.Attributes;
                     DEffectModel    anim = new DEffectModel
                     {
                         Id   = int.Parse(xml6.GetNamedItem("Id").Value),
                         Life = uint.Parse(xml6.GetNamedItem("Percent").Value)
                     };
                     obj.Effects.Add(anim);
                 }
             }
         }
     }
 }