Ejemplo n.º 1
0
 public Names(cfg.DataStream fs)
 {
     this.names = new System.Collections.Generic.List <string>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.names.Add(fs.GetString());
     }
 }
Ejemplo n.º 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()));
 }
Ejemplo n.º 3
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();
 }
Ejemplo n.º 4
0
 public RoleTable5(cfg.DataStream fs) : base(fs)
 {
     this.a2 = fs.GetInt();
     this.a3 = fs.GetString();
     this.a4 = fs.GetInt();
     this.a5 = new System.Collections.Generic.List <int>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.a5.Add(fs.GetInt());
     }
     this.a6 = new System.Collections.Generic.HashSet <int>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.a6.Add(fs.GetInt());
     }
     this.a7 = new System.Collections.Generic.Dictionary <int, int>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.a7.Add(fs.GetInt(), fs.GetInt());
     }
 }
Ejemplo n.º 5
0
 public RoleTable4(cfg.DataStream fs) : base(fs)
 {
     this.a1 = fs.GetString();
 }
Ejemplo n.º 6
0
 public DecorateName(cfg.DataStream fs)
 {
     this.name     = fs.GetString();
     this.position = (cfg.role.NamePosition)fs.GetInt();
     this.weight   = fs.GetInt();
 }