コード例 #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;
         }
     }
 }
コード例 #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;
         }
     }
 }
コード例 #3
0
ファイル: SubConvoy.cs プロジェクト: zyb2013/GameProject3
        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;
                }
            }
        }