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;
         }
     }
 }
        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;
                }
            }
        }