Exemplo n.º 1
0
 public override void Read(XmlElement os)
 {
     base.Read(os);
     this.Cmd      = os.GetString("Cmd");
     this.AnimName = os.GetString("AnimName");
     foreach (var current in GetChilds(os))
     {
         switch (current.Name)
         {
         case "Npc":
             this.Npc = ReadObj <TaskNpc>(current);
             break;
         }
     }
 }
Exemplo n.º 2
0
        public override void Read(XmlElement os)
        {
            base.Read(os);
            foreach (var current in GetChilds(os))
            {
                switch (current.Name)
                {
                case "Npc":
                    this.Npc = ReadObj <TaskNpc>(current);
                    break;

                case "Dialogs":
                    this.Dialogs = ReadList <TaskDialog>(current);
                    break;
                }
            }
        }