Esempio n. 1
0
 public override void Read(XmlElement os)
 {
     this.NpcID    = os.GetInt32("NpcID");
     this.LifeTime = os.GetInt32("LifeTime");
     foreach (var current in GetChilds(os))
     {
         switch (current.Name)
         {
         case "Location":
             this.Location = ReadObj <TaskLocation>(current);
             break;
         }
     }
 }
Esempio n. 2
0
 public override void Read(XmlElement os)
 {
     base.Read(os);
     this.ID    = os.GetInt32("ID");
     this.Count = os.GetInt32("Count");
     foreach (var current in GetChilds(os))
     {
         switch (current.Name)
         {
         case "Location":
             this.Location = ReadObj <TaskLocation>(current);
             break;
         }
     }
 }
Esempio n. 3
0
        public override void Read(XmlElement os)
        {
            base.Read(os);
            foreach (var current in GetChilds(os))
            {
                switch (current.Name)
                {
                case "ConvoyNpc":
                    this.ConvoyNpc = ReadObj <TaskConvoyNpc>(current);
                    break;

                case "SrcLocation":
                    this.SrcLocation = ReadObj <TaskLocation>(current);
                    break;

                case "TarLocation":
                    this.TarLocation = ReadObj <TaskLocation>(current);
                    break;
                }
            }
        }