示例#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 TestBean(cfg.DataStream fs)
 {
     this.a1 = fs.GetBool();
     this.a2 = fs.GetInt();
     this.a3 = fs.GetLong();
     this.a4 = fs.GetFloat();
     this.a5 = fs.GetDouble();
     this.a6 = fs.GetString();
     this.a7 = new System.Collections.Generic.List <int>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.a7.Add(fs.GetInt());
     }
     this.a8 = new System.Collections.Generic.List <float>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.a8.Add(fs.GetFloat());
     }
     this.a11 = new System.Collections.Generic.HashSet <int>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.a11.Add(fs.GetInt());
     }
     this.a12 = new System.Collections.Generic.HashSet <double>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.a12.Add(fs.GetDouble());
     }
     this.a13 = new System.Collections.Generic.Dictionary <int, int>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.a13.Add(fs.GetInt(), fs.GetInt());
     }
     this.a14 = new System.Collections.Generic.Dictionary <int, string>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.a14.Add(fs.GetInt(), fs.GetString());
     }
     this.a15 = new System.Collections.Generic.Dictionary <int, cfg.role.Vector2>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.a15.Add(fs.GetInt(), new cfg.role.Vector2(fs));
     }
     this.a16 = new cfg.role.Vector2(fs);
     this.a17 = (cfg.role.task.Roletable)(fs.GetObject("cfg.role.task." + fs.GetString()));
 }