Esempio 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());
     }
 }
Esempio n. 2
0
 public static Object Create(string name, cfg.DataStream fs)
 {
     try
     {
         return(Type.GetType(name).GetConstructor(new [] { typeof(cfg.DataStream) }).Invoke(new object[] { fs }));
     }
     catch (Exception e)
     {
         System.Console.WriteLine(e);
         return(null);
     }
 }
Esempio n. 3
0
 public Name(cfg.DataStream fs)
 {
     this.firstnames = new System.Collections.Generic.List <cfg.role.Names>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.firstnames.Add(new cfg.role.Names(fs));
     }
     this.lastnames = new cfg.role.Names(fs);
     this.deconames = new System.Collections.Generic.List <cfg.role.DecorateName>(); for (int n = fs.GetInt(); n > 0; n--)
     {
         this.deconames.Add(new cfg.role.DecorateName(fs));
     }
 }
Esempio n. 4
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();
 }
Esempio n. 5
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();
 }
Esempio n. 6
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());
     }
 }
Esempio n. 7
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()));
 }
Esempio n. 8
0
 public Index(cfg.DataStream fs)
 {
     this.id  = fs.GetInt();
     this.id2 = fs.GetInt();
 }
Esempio n. 9
0
 public Roletable(cfg.DataStream fs)
 {
     this.bornmap           = fs.GetInt();
     this.viewportminradius = fs.GetFloat();
 }
Esempio n. 10
0
 public Vector2(cfg.DataStream fs)
 {
     this.x = fs.GetFloat();
     this.y = fs.GetFloat();
 }
Esempio n. 11
0
 public RoleTable3(cfg.DataStream fs) : base(fs)
 {
     this.a = fs.GetInt();
 }
Esempio n. 12
0
 public RoleTable4(cfg.DataStream fs) : base(fs)
 {
     this.a1 = fs.GetString();
 }
Esempio n. 13
0
 public DecorateName(cfg.DataStream fs)
 {
     this.name     = fs.GetString();
     this.position = (cfg.role.NamePosition)fs.GetInt();
     this.weight   = fs.GetInt();
 }