public override void Read(XmlNode os)
        {
            base.Read(os);
            foreach (XmlNode current in XmlObject.GetChilds(os))
            {
                switch (current.Name)
                {
                case "Npc":
                    this.Npc = new TaskNpc();
                    this.Npc.Read(current);
                    break;

                case "Cmd":;
                    this.Cmd = XmlObject.ReadString(current);
                    break;

                case "AnimName":
                    this.AnimName = XmlObject.ReadString(current);
                    break;
                }
            }
        }
Example #2
0
        public override void Read(XmlNode os)
        {
            base.Read(os);
            foreach (XmlNode current in XmlObject.GetChilds(os))
            {
                switch (current.Name)
                {
                case "Dialogs":
                    XmlObject.GetChilds(current).ForEach(delegate(XmlNode pNode)
                    {
                        TaskDialog data = new TaskDialog();
                        data.Read(pNode);
                        Dialogs.Add(data);
                    });
                    break;

                case "Npc":
                    this.Npc = new TaskNpc();
                    this.Npc.Read(current);
                    break;
                }
            }
        }