Example #1
0
        public XmlNode asXML(XmlNode parentNode)
        {
            XmlElement itemElement = parentNode.OwnerDocument.CreateElement("item");

            itemElement.SetAttribute("type", type.ToString());
            itemElement.SetAttribute("class", itemClass.ToString());
            itemElement.SetAttribute("name", name);
            itemElement.SetAttribute("textureName", textureName);
            itemElement.AppendChild(stats.asXML(itemElement));
            return(itemElement);
        }
Example #2
0
        public XmlElement asXML(XmlNode parentNode)
        {
            XmlElement beingElement = parentNode.OwnerDocument.CreateElement("being");

            beingElement.SetAttribute("name", name);
            beingElement.SetAttribute("xp", xp.ToString());
            beingElement.SetAttribute("level", level.ToString());
            beingElement.SetAttribute("unusedAttr", unusedAttr.ToString());
            beingElement.SetAttribute("xpOfNextLevel", xpOfNextLevel.ToString());
            beingElement.SetAttribute("animationControllerName", controller.name);
            beingElement.SetAttribute("guid", guid.ToString());
            beingElement.AppendChild(stats.asXML(beingElement));
            beingElement.AppendChild(itemManager.asXML(beingElement));
            beingElement.AppendChild(unlocked.asXML(beingElement));
            return(beingElement);
        }