예제 #1
0
 public Profession(cfg.DataStream fs)
 {
     this.id              = fs.GetInt();
     this.faction         = (cfg.role.EProfessionType)fs.GetInt();
     this.gender          = (cfg.role.GenderType)fs.GetInt();
     this.isopen          = fs.GetBool();
     this.modelname       = fs.GetString();
     this.weight          = fs.GetInt();
     this.skillactionid   = fs.GetInt();
     this.defaultweaponid = fs.GetInt();
     this.createweaponid  = fs.GetInt();
     this.createarmourid  = fs.GetInt();
 }
예제 #2
0
 public RoleTable2(cfg.DataStream fs) : base(fs)
 {
     this.a = fs.GetInt();
     this.b = new System.Collections.Generic.List <cfg.role.task.Index>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.b.Add(new cfg.role.task.Index(fs));
     }
     foreach (var _v in this.b)
     {
         this.b_id.Add(_v.id, _v);
         this.b_id2.Add(_v.id2, _v);
     }
     this.pro = (cfg.role.EProfessionType)fs.GetInt();
 }