ReadByte() public final method

public final ReadByte ( ) : int
return int
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 4;
     Name = stream.ReadString(256);
     stream.Position = offset + 260;
     Item = stream.ReadValueS32();
     stream.Position = offset + 264;
     ItemType = stream.ReadValueS32();
     stream.Position = offset + 272;
     Field3 = stream.ReadValueS32();
     stream.Position = offset + 276;
     AttributeParam1 = stream.ReadValueS32();
     stream.Position = offset + 288;
     ptAttributes_0__serAttributeFormula = new SerializeData();
     ptAttributes_0__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 280;
     //still checking variablearrays
     ptAttributes_0__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_0__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_0__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_0__AttributeFormula;
         temp12_ptAttributes_0__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_0__AttributeFormula.Add(temp12_ptAttributes_0__AttributeFormula);
     }
     stream.Position = offset + 296;
     Field7 = stream.ReadValueS32();
     stream.Position = offset + 300;
     AttributeParam2 = stream.ReadValueS32();
     stream.Position = offset + 312;
     ptAttributes_1__serAttributeFormula = new SerializeData();
     ptAttributes_1__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 304;
     //still checking variablearrays
     ptAttributes_1__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_1__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_1__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_1__AttributeFormula;
         temp12_ptAttributes_1__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_1__AttributeFormula.Add(temp12_ptAttributes_1__AttributeFormula);
     }
     stream.Position = offset + 320;
     Field11 = stream.ReadValueS32();
     stream.Position = offset + 324;
     AttributeParam3 = stream.ReadValueS32();
     stream.Position = offset + 336;
     ptAttributes_2__serAttributeFormula = new SerializeData();
     ptAttributes_2__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 328;
     //still checking variablearrays
     ptAttributes_2__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_2__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_2__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_2__AttributeFormula;
         temp12_ptAttributes_2__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_2__AttributeFormula.Add(temp12_ptAttributes_2__AttributeFormula);
     }
     stream.Position = offset + 344;
     Field15 = stream.ReadValueS32();
     stream.Position = offset + 348;
     ReqAttribParam1 = stream.ReadValueS32();
     stream.Position = offset + 360;
     ptRequirements_0__serAttributeFormula = new SerializeData();
     ptRequirements_0__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 352;
     //still checking variablearrays
     ptRequirements_0__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptRequirements_0__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptRequirements_0__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptRequirements_0__AttributeFormula;
         temp12_ptRequirements_0__AttributeFormula = (byte)stream.ReadByte();
         _ptRequirements_0__AttributeFormula.Add(temp12_ptRequirements_0__AttributeFormula);
     }
     stream.Position = offset + 368;
     Field19 = stream.ReadValueS32();
     stream.Position = offset + 372;
     ReqAttribParam2 = stream.ReadValueS32();
     stream.Position = offset + 384;
     ptRequirements_1__serAttributeFormula = new SerializeData();
     ptRequirements_1__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 376;
     //still checking variablearrays
     ptRequirements_1__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptRequirements_1__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptRequirements_1__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptRequirements_1__AttributeFormula;
         temp12_ptRequirements_1__AttributeFormula = (byte)stream.ReadByte();
         _ptRequirements_1__AttributeFormula.Add(temp12_ptRequirements_1__AttributeFormula);
     }
     stream.Position = offset + 392;
     Field23 = stream.ReadString(1024);
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 4;
     Field1 = new byte[32];
     for(int loop12=0; loop12 < 32; loop12++ )
     {
         byte temp12_Field1;
         temp12_Field1 = (byte)stream.ReadByte();
         _Field1[loop12] = temp12_Field1;
     }
     stream.Position = offset + 36;
     m_snoSavedConv = new int[256];
     for(int loop12=0; loop12 < 256; loop12++ )
     {
         int temp12_m_snoSavedConv;
         temp12_m_snoSavedConv = stream.ReadValueS32();
         _m_snoSavedConv[loop12] = temp12_m_snoSavedConv;
     }
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 12;
     serProtoData = new SerializeData();
     serProtoData.FileRead(stream, stream.Position);
     stream.Position = offset + 24;
     //still checking variablearrays
     ProtoData = new List<byte>();
     for(int i = 0; i < (int)(serProtoData.Field1 / 1); i++)
     {
     stream.Position = serProtoData.Field0 + 16 + (1*i) ;
         byte temp12_ProtoData;
         temp12_ProtoData = (byte)stream.ReadByte();
         _ProtoData.Add(temp12_ProtoData);
     }
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 4;
     Field1 = stream.ReadValueS32();
     stream.Position = offset + 8;
     Field2 = stream.ReadValueS32();
     stream.Position = offset + 12;
     Field3 = stream.ReadValueF32();
     stream.Position = offset + 16;
     Field4 = stream.ReadValueF32();
     stream.Position = offset + 20;
     Field5 = stream.ReadValueS32();
     stream.Position = offset + 24;
     Field6 = stream.ReadValueS32();
     stream.Position = offset + 28;
     Field7 = stream.ReadValueS32();
     stream.Position = offset + 32;
     Field8 = stream.ReadValueS32();
     stream.Position = offset + 36;
     Field9 = stream.ReadValueS32();
     stream.Position = offset + 40;
     Field10 = stream.ReadValueS32();
     stream.Position = offset + 44;
     Field11 = stream.ReadValueS32();
     stream.Position = offset + 48;
     Field12 = stream.ReadValueS32();
     stream.Position = offset + 52;
     Field13 = (byte)stream.ReadByte();
     stream.Position = offset + 56;
     Field14 = stream.ReadValueS32();
     stream.Position = offset + 60;
     Field15 = stream.ReadValueS32();
     stream.Position = offset + 64;
     Field16 = stream.ReadValueS32();
     stream.Position = offset + 68;
     Field17 = stream.ReadValueS32();
     stream.Position = offset + 72;
     Field18 = stream.ReadValueS32();
     stream.Position = offset + 76;
     Field19 = stream.ReadValueS32();
     stream.Position = offset + 80;
     Field20 = stream.ReadValueS32();
     stream.Position = offset + 84;
     Field21 = stream.ReadValueS32();
     stream.Position = offset + 88;
     Field22 = new RGBAColor();
     Field22.FileRead(stream, stream.Position);
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Red = (byte)stream.ReadByte();
     stream.Position = offset + 1;
     Green = (byte)stream.ReadByte();
     stream.Position = offset + 2;
     Blue = (byte)stream.ReadByte();
     stream.Position = offset + 3;
     Alpha = (byte)stream.ReadByte();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = new RequiredMessageHeader();
     Field0.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     Field1 = (byte)stream.ReadByte();
 }
Exemplo n.º 7
0
 public TriggerConditions(MpqFileStream stream)
 {
     Percent = stream.ReadByte();
     stream.Position += 3;
     Int1 = stream.ReadValueS32();
     Int2 = stream.ReadValueS32();
     Int3 = stream.ReadValueS32();
     Int4 = stream.ReadValueS32();
     Int5 = stream.ReadValueS32();
     Int6 = stream.ReadValueS32();
     Int7 = stream.ReadValueS32();
     Int8 = stream.ReadValueS32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 4;
     Name = stream.ReadString(256);
     stream.Position = offset + 260;
     Field1 = stream.ReadValueS32();
     stream.Position = offset + 264;
     Field2 = stream.ReadValueS32();
     stream.Position = offset + 268;
     Field3 = stream.ReadValueS32();
     stream.Position = offset + 280;
     _Field4 = stream.ReadValueS32();
     stream.Position = offset + 272;
     _Field5 = stream.ReadValueS32();
     stream.Position = offset + 276;
     _Field6 = stream.ReadValueS32();
     stream.Position = offset + 284;
     Field7 = stream.ReadValueS32();
     stream.Position = offset + 288;
     Field8 = stream.ReadValueS32();
     stream.Position = offset + 292;
     Field9 = stream.ReadValueS32();
     stream.Position = offset + 780;
     On_Spawn_Power_Minion = stream.ReadValueS32();
     stream.Position = offset + 788;
     On_Spawn_Power_Rare = stream.ReadValueS32();
     stream.Position = offset + 784;
     On_Spawn_Power_Champion = stream.ReadValueS32();
     stream.Position = offset + 296;
     Field13 = stream.ReadValueS32();
     stream.Position = offset + 300;
     Param0 = stream.ReadValueS32();
     stream.Position = offset + 312;
     ptAttributes_0__serAttributeFormula = new SerializeData();
     ptAttributes_0__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 304;
     //still checking variablearrays
     ptAttributes_0__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_0__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_0__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_0__AttributeFormula;
         temp12_ptAttributes_0__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_0__AttributeFormula.Add(temp12_ptAttributes_0__AttributeFormula);
     }
     stream.Position = offset + 320;
     Field17 = stream.ReadValueS32();
     stream.Position = offset + 324;
     Param1 = stream.ReadValueS32();
     stream.Position = offset + 336;
     ptAttributes_1__serAttributeFormula = new SerializeData();
     ptAttributes_1__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 328;
     //still checking variablearrays
     ptAttributes_1__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_1__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_1__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_1__AttributeFormula;
         temp12_ptAttributes_1__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_1__AttributeFormula.Add(temp12_ptAttributes_1__AttributeFormula);
     }
     stream.Position = offset + 344;
     Field21 = stream.ReadValueS32();
     stream.Position = offset + 348;
     Param2 = stream.ReadValueS32();
     stream.Position = offset + 360;
     ptAttributes_2__serAttributeFormula = new SerializeData();
     ptAttributes_2__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 352;
     //still checking variablearrays
     ptAttributes_2__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_2__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_2__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_2__AttributeFormula;
         temp12_ptAttributes_2__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_2__AttributeFormula.Add(temp12_ptAttributes_2__AttributeFormula);
     }
     stream.Position = offset + 368;
     Field25 = stream.ReadValueS32();
     stream.Position = offset + 372;
     Param3 = stream.ReadValueS32();
     stream.Position = offset + 384;
     ptAttributes_3__serAttributeFormula = new SerializeData();
     ptAttributes_3__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 376;
     //still checking variablearrays
     ptAttributes_3__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_3__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_3__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_3__AttributeFormula;
         temp12_ptAttributes_3__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_3__AttributeFormula.Add(temp12_ptAttributes_3__AttributeFormula);
     }
     stream.Position = offset + 392;
     Field29 = stream.ReadValueS32();
     stream.Position = offset + 396;
     Param4 = stream.ReadValueS32();
     stream.Position = offset + 408;
     ptAttributes_4__serAttributeFormula = new SerializeData();
     ptAttributes_4__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 400;
     //still checking variablearrays
     ptAttributes_4__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_4__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_4__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_4__AttributeFormula;
         temp12_ptAttributes_4__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_4__AttributeFormula.Add(temp12_ptAttributes_4__AttributeFormula);
     }
     stream.Position = offset + 416;
     Field33 = stream.ReadValueS32();
     stream.Position = offset + 420;
     Param5 = stream.ReadValueS32();
     stream.Position = offset + 432;
     ptAttributes_5__serAttributeFormula = new SerializeData();
     ptAttributes_5__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 424;
     //still checking variablearrays
     ptAttributes_5__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_5__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_5__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_5__AttributeFormula;
         temp12_ptAttributes_5__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_5__AttributeFormula.Add(temp12_ptAttributes_5__AttributeFormula);
     }
     stream.Position = offset + 440;
     Field37 = stream.ReadValueS32();
     stream.Position = offset + 444;
     Param6 = stream.ReadValueS32();
     stream.Position = offset + 456;
     ptAttributes_6__serAttributeFormula = new SerializeData();
     ptAttributes_6__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 448;
     //still checking variablearrays
     ptAttributes_6__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_6__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_6__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_6__AttributeFormula;
         temp12_ptAttributes_6__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_6__AttributeFormula.Add(temp12_ptAttributes_6__AttributeFormula);
     }
     stream.Position = offset + 464;
     Field41 = stream.ReadValueS32();
     stream.Position = offset + 468;
     Param7 = stream.ReadValueS32();
     stream.Position = offset + 480;
     ptAttributes_7__serAttributeFormula = new SerializeData();
     ptAttributes_7__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 472;
     //still checking variablearrays
     ptAttributes_7__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_7__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_7__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_7__AttributeFormula;
         temp12_ptAttributes_7__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_7__AttributeFormula.Add(temp12_ptAttributes_7__AttributeFormula);
     }
     stream.Position = offset + 488;
     Field45 = stream.ReadValueS32();
     stream.Position = offset + 492;
     Param8 = stream.ReadValueS32();
     stream.Position = offset + 504;
     ptAttributes_8__serAttributeFormula = new SerializeData();
     ptAttributes_8__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 496;
     //still checking variablearrays
     ptAttributes_8__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_8__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_8__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_8__AttributeFormula;
         temp12_ptAttributes_8__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_8__AttributeFormula.Add(temp12_ptAttributes_8__AttributeFormula);
     }
     stream.Position = offset + 512;
     Field49 = stream.ReadValueS32();
     stream.Position = offset + 516;
     Param9 = stream.ReadValueS32();
     stream.Position = offset + 528;
     ptAttributes_9__serAttributeFormula = new SerializeData();
     ptAttributes_9__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 520;
     //still checking variablearrays
     ptAttributes_9__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_9__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_9__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_9__AttributeFormula;
         temp12_ptAttributes_9__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_9__AttributeFormula.Add(temp12_ptAttributes_9__AttributeFormula);
     }
     stream.Position = offset + 536;
     Field53 = stream.ReadValueS32();
     stream.Position = offset + 540;
     MinionParam0 = stream.ReadValueS32();
     stream.Position = offset + 552;
     ptMinionAttributes_0__serAttributeFormula = new SerializeData();
     ptMinionAttributes_0__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 544;
     //still checking variablearrays
     ptMinionAttributes_0__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptMinionAttributes_0__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptMinionAttributes_0__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptMinionAttributes_0__AttributeFormula;
         temp12_ptMinionAttributes_0__AttributeFormula = (byte)stream.ReadByte();
         _ptMinionAttributes_0__AttributeFormula.Add(temp12_ptMinionAttributes_0__AttributeFormula);
     }
     stream.Position = offset + 560;
     Field57 = stream.ReadValueS32();
     stream.Position = offset + 564;
     MinionParam1 = stream.ReadValueS32();
     stream.Position = offset + 576;
     ptMinionAttributes_1__serAttributeFormula = new SerializeData();
     ptMinionAttributes_1__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 568;
     //still checking variablearrays
     ptMinionAttributes_1__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptMinionAttributes_1__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptMinionAttributes_1__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptMinionAttributes_1__AttributeFormula;
         temp12_ptMinionAttributes_1__AttributeFormula = (byte)stream.ReadByte();
         _ptMinionAttributes_1__AttributeFormula.Add(temp12_ptMinionAttributes_1__AttributeFormula);
     }
     stream.Position = offset + 584;
     Field61 = stream.ReadValueS32();
     stream.Position = offset + 588;
     MinionParam2 = stream.ReadValueS32();
     stream.Position = offset + 600;
     ptMinionAttributes_2__serAttributeFormula = new SerializeData();
     ptMinionAttributes_2__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 592;
     //still checking variablearrays
     ptMinionAttributes_2__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptMinionAttributes_2__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptMinionAttributes_2__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptMinionAttributes_2__AttributeFormula;
         temp12_ptMinionAttributes_2__AttributeFormula = (byte)stream.ReadByte();
         _ptMinionAttributes_2__AttributeFormula.Add(temp12_ptMinionAttributes_2__AttributeFormula);
     }
     stream.Position = offset + 608;
     Field65 = stream.ReadValueS32();
     stream.Position = offset + 612;
     MinionParam3 = stream.ReadValueS32();
     stream.Position = offset + 624;
     ptMinionAttributes_3__serAttributeFormula = new SerializeData();
     ptMinionAttributes_3__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 616;
     //still checking variablearrays
     ptMinionAttributes_3__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptMinionAttributes_3__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptMinionAttributes_3__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptMinionAttributes_3__AttributeFormula;
         temp12_ptMinionAttributes_3__AttributeFormula = (byte)stream.ReadByte();
         _ptMinionAttributes_3__AttributeFormula.Add(temp12_ptMinionAttributes_3__AttributeFormula);
     }
     stream.Position = offset + 632;
     Field69 = stream.ReadValueS32();
     stream.Position = offset + 636;
     MinionParam4 = stream.ReadValueS32();
     stream.Position = offset + 648;
     ptMinionAttributes_4__serAttributeFormula = new SerializeData();
     ptMinionAttributes_4__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 640;
     //still checking variablearrays
     ptMinionAttributes_4__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptMinionAttributes_4__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptMinionAttributes_4__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptMinionAttributes_4__AttributeFormula;
         temp12_ptMinionAttributes_4__AttributeFormula = (byte)stream.ReadByte();
         _ptMinionAttributes_4__AttributeFormula.Add(temp12_ptMinionAttributes_4__AttributeFormula);
     }
     stream.Position = offset + 656;
     Field73 = stream.ReadValueS32();
     stream.Position = offset + 660;
     MinionParam5 = stream.ReadValueS32();
     stream.Position = offset + 672;
     ptMinionAttributes_5__serAttributeFormula = new SerializeData();
     ptMinionAttributes_5__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 664;
     //still checking variablearrays
     ptMinionAttributes_5__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptMinionAttributes_5__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptMinionAttributes_5__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptMinionAttributes_5__AttributeFormula;
         temp12_ptMinionAttributes_5__AttributeFormula = (byte)stream.ReadByte();
         _ptMinionAttributes_5__AttributeFormula.Add(temp12_ptMinionAttributes_5__AttributeFormula);
     }
     stream.Position = offset + 680;
     Field77 = stream.ReadValueS32();
     stream.Position = offset + 684;
     MinionParam6 = stream.ReadValueS32();
     stream.Position = offset + 696;
     ptMinionAttributes_6__serAttributeFormula = new SerializeData();
     ptMinionAttributes_6__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 688;
     //still checking variablearrays
     ptMinionAttributes_6__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptMinionAttributes_6__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptMinionAttributes_6__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptMinionAttributes_6__AttributeFormula;
         temp12_ptMinionAttributes_6__AttributeFormula = (byte)stream.ReadByte();
         _ptMinionAttributes_6__AttributeFormula.Add(temp12_ptMinionAttributes_6__AttributeFormula);
     }
     stream.Position = offset + 704;
     Field81 = stream.ReadValueS32();
     stream.Position = offset + 708;
     MinionParam7 = stream.ReadValueS32();
     stream.Position = offset + 720;
     ptMinionAttributes_7__serAttributeFormula = new SerializeData();
     ptMinionAttributes_7__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 712;
     //still checking variablearrays
     ptMinionAttributes_7__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptMinionAttributes_7__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptMinionAttributes_7__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptMinionAttributes_7__AttributeFormula;
         temp12_ptMinionAttributes_7__AttributeFormula = (byte)stream.ReadByte();
         _ptMinionAttributes_7__AttributeFormula.Add(temp12_ptMinionAttributes_7__AttributeFormula);
     }
     stream.Position = offset + 728;
     Field85 = stream.ReadValueS32();
     stream.Position = offset + 732;
     MinionParam8 = stream.ReadValueS32();
     stream.Position = offset + 744;
     ptMinionAttributes_8__serAttributeFormula = new SerializeData();
     ptMinionAttributes_8__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 736;
     //still checking variablearrays
     ptMinionAttributes_8__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptMinionAttributes_8__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptMinionAttributes_8__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptMinionAttributes_8__AttributeFormula;
         temp12_ptMinionAttributes_8__AttributeFormula = (byte)stream.ReadByte();
         _ptMinionAttributes_8__AttributeFormula.Add(temp12_ptMinionAttributes_8__AttributeFormula);
     }
     stream.Position = offset + 752;
     Field89 = stream.ReadValueS32();
     stream.Position = offset + 756;
     MinionParam9 = stream.ReadValueS32();
     stream.Position = offset + 768;
     ptMinionAttributes_9__serAttributeFormula = new SerializeData();
     ptMinionAttributes_9__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 760;
     //still checking variablearrays
     ptMinionAttributes_9__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptMinionAttributes_9__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptMinionAttributes_9__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptMinionAttributes_9__AttributeFormula;
         temp12_ptMinionAttributes_9__AttributeFormula = (byte)stream.ReadByte();
         _ptMinionAttributes_9__AttributeFormula.Add(temp12_ptMinionAttributes_9__AttributeFormula);
     }
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     HotBarButtons = new HotbarButtonData[6];
     for(int loop12=0; loop12 < 6; loop12++ )
     {
         HotbarButtonData temp12_HotBarButtons;
         temp12_HotBarButtons = new HotbarButtonData();
         temp12_HotBarButtons.FileRead(stream, stream.Position);
         _HotBarButtons[loop12] = temp12_HotBarButtons;
     }
     stream.Position = offset + 84;
     Field1 = (byte)stream.ReadByte();
     stream.Position = offset + 72;
     HotBarButton = new HotbarButtonData();
     HotBarButton.FileRead(stream, stream.Position);
     stream.Position = offset + 88;
     PlaytimeTotal = stream.ReadValueS32();
     stream.Position = offset + 92;
     WaypointFlags = stream.ReadValueS32();
     stream.Position = offset + 96;
     Field5 = new HirelingSavedData();
     Field5.FileRead(stream, stream.Position);
     stream.Position = offset + 248;
     Field6 = stream.ReadValueS32();
     stream.Position = offset + 252;
     LearnedLore = new LearnedLore();
     LearnedLore.FileRead(stream, stream.Position);
     stream.Position = offset + 2340;
     ActiveSkills = new ActiveSkillSavedData[6];
     for(int loop12=0; loop12 < 6; loop12++ )
     {
         ActiveSkillSavedData temp12_ActiveSkills;
         temp12_ActiveSkills = new ActiveSkillSavedData();
         temp12_ActiveSkills.FileRead(stream, stream.Position);
         _ActiveSkills[loop12] = temp12_ActiveSkills;
     }
     stream.Position = offset + 2388;
     snoTraits = new int[3];
     for(int loop12=0; loop12 < 3; loop12++ )
     {
         int temp12_snoTraits;
         temp12_snoTraits = stream.ReadValueS32();
         _snoTraits[loop12] = temp12_snoTraits;
     }
     stream.Position = offset + 2400;
     SavePointData = new SavePointData();
     SavePointData.FileRead(stream, stream.Position);
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 12;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 16;
     Field1 = stream.ReadString(64);
     stream.Position = offset + 80;
     Field2 = stream.ReadString(64);
     stream.Position = offset + 144;
     Field3 = stream.ReadValueS32();
     stream.Position = offset + 148;
     _Field4 = stream.ReadValueS32();
     stream.Position = offset + 152;
     _Field5 = stream.ReadValueS32();
     stream.Position = offset + 156;
     Field6 = stream.ReadValueS32();
     stream.Position = offset + 160;
     Field7 = stream.ReadValueF32();
     stream.Position = offset + 164;
     Field8 = stream.ReadValueF32();
     stream.Position = offset + 168;
     serTTFData = new SerializeData();
     serTTFData.FileRead(stream, stream.Position);
     stream.Position = offset + 176;
     //still checking variablearrays
     TTFData = new List<byte>();
     for(int i = 0; i < (int)(serTTFData.Field1 / 1); i++)
     {
     stream.Position = serTTFData.Field0 + 16 + (1*i) ;
         byte temp12_TTFData;
         temp12_TTFData = (byte)stream.ReadByte();
         _TTFData.Add(temp12_TTFData);
     }
     stream.Position = offset + 180;
     Field11 = stream.ReadValueS32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 4;
     Name = stream.ReadString(256);
     stream.Position = offset + 260;
     Actor = stream.ReadValueS32();
     stream.Position = offset + 264;
     ItemType1 = stream.ReadValueS32();
     stream.Position = offset + 276;
     Field3 = stream.ReadValueS32();
     stream.Position = offset + 280;
     _Field4 = stream.ReadValueS32();
     stream.Position = offset + 284;
     Field5 = stream.ReadValueS32();
     stream.Position = offset + 288;
     Field6 = stream.ReadValueS32();
     stream.Position = offset + 292;
     Field7 = stream.ReadValueS32();
     stream.Position = offset + 296;
     Field8 = stream.ReadValueS32();
     stream.Position = offset + 300;
     Field9 = stream.ReadValueS32();
     stream.Position = offset + 316;
     Field10 = stream.ReadValueS32();
     stream.Position = offset + 320;
     Field11 = stream.ReadValueS32();
     stream.Position = offset + 304;
     Field12 = stream.ReadValueS32();
     stream.Position = offset + 308;
     Field13 = stream.ReadValueS32();
     stream.Position = offset + 312;
     Field14 = stream.ReadValueS32();
     stream.Position = offset + 324;
     BaseItem = stream.ReadValueS32();
     stream.Position = offset + 328;
     Set = stream.ReadValueS32();
     stream.Position = offset + 332;
     ComponentTreasureClass = stream.ReadValueS32();
     stream.Position = offset + 336;
     ComponentTreasureClassMagic = stream.ReadValueS32();
     stream.Position = offset + 340;
     ComponentTreasureClassRare = stream.ReadValueS32();
     stream.Position = offset + 344;
     RareNamePrefixStringList = stream.ReadValueS32();
     stream.Position = offset + 348;
     RareNameSuffixStringList = stream.ReadValueS32();
     stream.Position = offset + 268;
     Field22 = ((stream.ReadValueS32() >> 0) & 1) == 1;
     stream.Position = offset + 268;
     Field23 = ((stream.ReadValueS32() >> 1) & 1) == 1;
     stream.Position = offset + 268;
     Field24 = ((stream.ReadValueS32() >> 2) & 1) == 1;
     stream.Position = offset + 268;
     Field25 = ((stream.ReadValueS32() >> 3) & 1) == 1;
     stream.Position = offset + 268;
     Field26 = ((stream.ReadValueS32() >> 4) & 1) == 1;
     stream.Position = offset + 268;
     Field27 = ((stream.ReadValueS32() >> 5) & 1) == 1;
     stream.Position = offset + 268;
     Field28 = ((stream.ReadValueS32() >> 7) & 1) == 1;
     stream.Position = offset + 268;
     Field29 = ((stream.ReadValueS32() >> 6) & 1) == 1;
     stream.Position = offset + 272;
     Field30 = stream.ReadValueS32();
     stream.Position = offset + 456;
     Field31 = stream.ReadValueF32();
     stream.Position = offset + 460;
     Field32 = stream.ReadValueF32();
     stream.Position = offset + 812;
     Field33 = stream.ReadValueF32();
     stream.Position = offset + 816;
     Field34 = stream.ReadValueF32();
     stream.Position = offset + 724;
     Field35 = stream.ReadValueF32();
     stream.Position = offset + 548;
     Field36 = stream.ReadValueF32();
     stream.Position = offset + 552;
     Field37 = stream.ReadValueF32();
     stream.Position = offset + 924;
     Skill0 = stream.ReadValueS32();
     stream.Position = offset + 928;
     Field39 = stream.ReadValueS32();
     stream.Position = offset + 932;
     Skill1 = stream.ReadValueS32();
     stream.Position = offset + 936;
     Field41 = stream.ReadValueS32();
     stream.Position = offset + 940;
     Skill2 = stream.ReadValueS32();
     stream.Position = offset + 944;
     Field43 = stream.ReadValueS32();
     stream.Position = offset + 948;
     Skill3 = stream.ReadValueS32();
     stream.Position = offset + 952;
     Field45 = stream.ReadValueS32();
     stream.Position = offset + 352;
     Field46 = new int[4];
     for(int loop12=0; loop12 < 4; loop12++ )
     {
         int temp12_Field46;
         temp12_Field46 = stream.ReadValueS32();
         _Field46[loop12] = temp12_Field46;
     }
     stream.Position = offset + 1000;
     Field47 = stream.ReadValueS32();
     stream.Position = offset + 1004;
     AttributeParam1 = stream.ReadValueS32();
     stream.Position = offset + 1016;
     ptAttributes_0__serAttributeFormula = new SerializeData();
     ptAttributes_0__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1008;
     //still checking variablearrays
     ptAttributes_0__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_0__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_0__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_0__AttributeFormula;
         temp12_ptAttributes_0__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_0__AttributeFormula.Add(temp12_ptAttributes_0__AttributeFormula);
     }
     stream.Position = offset + 1024;
     Field51 = stream.ReadValueS32();
     stream.Position = offset + 1028;
     AttributeParam2 = stream.ReadValueS32();
     stream.Position = offset + 1040;
     ptAttributes_1__serAttributeFormula = new SerializeData();
     ptAttributes_1__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1032;
     //still checking variablearrays
     ptAttributes_1__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_1__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_1__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_1__AttributeFormula;
         temp12_ptAttributes_1__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_1__AttributeFormula.Add(temp12_ptAttributes_1__AttributeFormula);
     }
     stream.Position = offset + 1048;
     Field55 = stream.ReadValueS32();
     stream.Position = offset + 1052;
     AttributeParam3 = stream.ReadValueS32();
     stream.Position = offset + 1064;
     ptAttributes_2__serAttributeFormula = new SerializeData();
     ptAttributes_2__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1056;
     //still checking variablearrays
     ptAttributes_2__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_2__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_2__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_2__AttributeFormula;
         temp12_ptAttributes_2__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_2__AttributeFormula.Add(temp12_ptAttributes_2__AttributeFormula);
     }
     stream.Position = offset + 1072;
     Field59 = stream.ReadValueS32();
     stream.Position = offset + 1076;
     AttributeParam4 = stream.ReadValueS32();
     stream.Position = offset + 1088;
     ptAttributes_3__serAttributeFormula = new SerializeData();
     ptAttributes_3__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1080;
     //still checking variablearrays
     ptAttributes_3__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_3__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_3__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_3__AttributeFormula;
         temp12_ptAttributes_3__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_3__AttributeFormula.Add(temp12_ptAttributes_3__AttributeFormula);
     }
     stream.Position = offset + 1096;
     Field63 = stream.ReadValueS32();
     stream.Position = offset + 1100;
     AttributeParam5 = stream.ReadValueS32();
     stream.Position = offset + 1112;
     ptAttributes_4__serAttributeFormula = new SerializeData();
     ptAttributes_4__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1104;
     //still checking variablearrays
     ptAttributes_4__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_4__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_4__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_4__AttributeFormula;
         temp12_ptAttributes_4__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_4__AttributeFormula.Add(temp12_ptAttributes_4__AttributeFormula);
     }
     stream.Position = offset + 1120;
     Field67 = stream.ReadValueS32();
     stream.Position = offset + 1124;
     AttributeParam6 = stream.ReadValueS32();
     stream.Position = offset + 1136;
     ptAttributes_5__serAttributeFormula = new SerializeData();
     ptAttributes_5__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1128;
     //still checking variablearrays
     ptAttributes_5__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_5__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_5__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_5__AttributeFormula;
         temp12_ptAttributes_5__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_5__AttributeFormula.Add(temp12_ptAttributes_5__AttributeFormula);
     }
     stream.Position = offset + 1144;
     Field71 = stream.ReadValueS32();
     stream.Position = offset + 1148;
     AttributeParam7 = stream.ReadValueS32();
     stream.Position = offset + 1160;
     ptAttributes_6__serAttributeFormula = new SerializeData();
     ptAttributes_6__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1152;
     //still checking variablearrays
     ptAttributes_6__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_6__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_6__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_6__AttributeFormula;
         temp12_ptAttributes_6__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_6__AttributeFormula.Add(temp12_ptAttributes_6__AttributeFormula);
     }
     stream.Position = offset + 1168;
     Field75 = stream.ReadValueS32();
     stream.Position = offset + 1172;
     AttributeParam8 = stream.ReadValueS32();
     stream.Position = offset + 1184;
     ptAttributes_7__serAttributeFormula = new SerializeData();
     ptAttributes_7__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1176;
     //still checking variablearrays
     ptAttributes_7__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_7__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_7__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_7__AttributeFormula;
         temp12_ptAttributes_7__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_7__AttributeFormula.Add(temp12_ptAttributes_7__AttributeFormula);
     }
     stream.Position = offset + 1192;
     Field79 = stream.ReadValueS32();
     stream.Position = offset + 1196;
     AttributeParam9 = stream.ReadValueS32();
     stream.Position = offset + 1208;
     ptAttributes_8__serAttributeFormula = new SerializeData();
     ptAttributes_8__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1200;
     //still checking variablearrays
     ptAttributes_8__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_8__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_8__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_8__AttributeFormula;
         temp12_ptAttributes_8__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_8__AttributeFormula.Add(temp12_ptAttributes_8__AttributeFormula);
     }
     stream.Position = offset + 1216;
     Field83 = stream.ReadValueS32();
     stream.Position = offset + 1220;
     AttributeParam10 = stream.ReadValueS32();
     stream.Position = offset + 1232;
     ptAttributes_9__serAttributeFormula = new SerializeData();
     ptAttributes_9__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1224;
     //still checking variablearrays
     ptAttributes_9__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_9__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_9__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_9__AttributeFormula;
         temp12_ptAttributes_9__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_9__AttributeFormula.Add(temp12_ptAttributes_9__AttributeFormula);
     }
     stream.Position = offset + 1240;
     Field87 = stream.ReadValueS32();
     stream.Position = offset + 1244;
     AttributeParam11 = stream.ReadValueS32();
     stream.Position = offset + 1256;
     ptAttributes_10__serAttributeFormula = new SerializeData();
     ptAttributes_10__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1248;
     //still checking variablearrays
     ptAttributes_10__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_10__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_10__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_10__AttributeFormula;
         temp12_ptAttributes_10__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_10__AttributeFormula.Add(temp12_ptAttributes_10__AttributeFormula);
     }
     stream.Position = offset + 1264;
     Field91 = stream.ReadValueS32();
     stream.Position = offset + 1268;
     AttributeParam12 = stream.ReadValueS32();
     stream.Position = offset + 1280;
     ptAttributes_11__serAttributeFormula = new SerializeData();
     ptAttributes_11__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1272;
     //still checking variablearrays
     ptAttributes_11__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_11__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_11__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_11__AttributeFormula;
         temp12_ptAttributes_11__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_11__AttributeFormula.Add(temp12_ptAttributes_11__AttributeFormula);
     }
     stream.Position = offset + 1288;
     Field95 = stream.ReadValueS32();
     stream.Position = offset + 1292;
     AttributeParam13 = stream.ReadValueS32();
     stream.Position = offset + 1304;
     ptAttributes_12__serAttributeFormula = new SerializeData();
     ptAttributes_12__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1296;
     //still checking variablearrays
     ptAttributes_12__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_12__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_12__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_12__AttributeFormula;
         temp12_ptAttributes_12__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_12__AttributeFormula.Add(temp12_ptAttributes_12__AttributeFormula);
     }
     stream.Position = offset + 1312;
     Field99 = stream.ReadValueS32();
     stream.Position = offset + 1316;
     AttributeParam14 = stream.ReadValueS32();
     stream.Position = offset + 1328;
     ptAttributes_13__serAttributeFormula = new SerializeData();
     ptAttributes_13__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1320;
     //still checking variablearrays
     ptAttributes_13__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_13__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_13__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_13__AttributeFormula;
         temp12_ptAttributes_13__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_13__AttributeFormula.Add(temp12_ptAttributes_13__AttributeFormula);
     }
     stream.Position = offset + 1336;
     Field103 = stream.ReadValueS32();
     stream.Position = offset + 1340;
     AttributeParam15 = stream.ReadValueS32();
     stream.Position = offset + 1352;
     ptAttributes_14__serAttributeFormula = new SerializeData();
     ptAttributes_14__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1344;
     //still checking variablearrays
     ptAttributes_14__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_14__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_14__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_14__AttributeFormula;
         temp12_ptAttributes_14__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_14__AttributeFormula.Add(temp12_ptAttributes_14__AttributeFormula);
     }
     stream.Position = offset + 1360;
     Field107 = stream.ReadValueS32();
     stream.Position = offset + 1364;
     AttributeParam16 = stream.ReadValueS32();
     stream.Position = offset + 1376;
     ptAttributes_15__serAttributeFormula = new SerializeData();
     ptAttributes_15__serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 1368;
     //still checking variablearrays
     ptAttributes_15__AttributeFormula = new List<byte>();
     for(int i = 0; i < (int)(ptAttributes_15__serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = ptAttributes_15__serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_ptAttributes_15__AttributeFormula;
         temp12_ptAttributes_15__AttributeFormula = (byte)stream.ReadByte();
         _ptAttributes_15__AttributeFormula.Add(temp12_ptAttributes_15__AttributeFormula);
     }
     stream.Position = offset + 1384;
     _Field111 = stream.ReadValueS32();
     stream.Position = offset + 1388;
     RecipeToGrant = new int[10];
     for(int loop12=0; loop12 < 10; loop12++ )
     {
         int temp12_RecipeToGrant;
         temp12_RecipeToGrant = stream.ReadValueS32();
         _RecipeToGrant[loop12] = temp12_RecipeToGrant;
     }
     stream.Position = offset + 1428;
     EnhancementToGrant = stream.ReadValueS32();
     stream.Position = offset + 1432;
     LegendaryAffixFamily1 = stream.ReadValueS32();
     stream.Position = offset + 1436;
     LegendaryAffixFamily2 = stream.ReadValueS32();
     stream.Position = offset + 1440;
     LegendaryAffixFamily3 = stream.ReadValueS32();
     stream.Position = offset + 1444;
     LegendaryAffixFamily4 = stream.ReadValueS32();
     stream.Position = offset + 1448;
     LegendaryAffixFamily5 = stream.ReadValueS32();
     stream.Position = offset + 1452;
     LegendaryAffixFamily6 = stream.ReadValueS32();
     stream.Position = offset + 1456;
     Field120 = stream.ReadValueS32();
     stream.Position = offset + 1460;
     Field121 = stream.ReadValueS32();
     stream.Position = offset + 1464;
     Field122 = stream.ReadValueS32();
     stream.Position = offset + 1468;
     Field123 = stream.ReadValueS32();
     stream.Position = offset + 1472;
     Field124 = stream.ReadValueS32();
     stream.Position = offset + 1476;
     Field125 = stream.ReadValueS32();
     stream.Position = offset + 1480;
     Field126 = stream.ReadValueS32();
     stream.Position = offset + 1484;
     Field127 = stream.ReadValueS32();
     stream.Position = offset + 1488;
     Field128 = stream.ReadValueS32();
     stream.Position = offset + 1492;
     Field129 = stream.ReadValueS32();
     stream.Position = offset + 1496;
     Field130 = stream.ReadValueS32();
     stream.Position = offset + 1500;
     Field131 = stream.ReadValueS32();
     stream.Position = offset + 1504;
     _Field132 = stream.ReadValueS32();
     stream.Position = offset + 1508;
     Field133 = stream.ReadValueS32();
     stream.Position = offset + 1512;
     _Field134 = stream.ReadValueS32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = (byte)stream.ReadByte();
     stream.Position = offset + 1;
     Field1 = (byte)stream.ReadByte();
     stream.Position = offset + 2;
     Field2 = (byte)stream.ReadByte();
     stream.Position = offset + 3;
     Field3 = (byte)stream.ReadByte();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 4;
     Field1 = stream.ReadValueU16();
     stream.Position = offset + 6;
     Field2 = stream.ReadValueU16();
     stream.Position = offset + 8;
     Field3 = (byte)stream.ReadByte();
     stream.Position = offset + 9;
     Field4 = (byte)stream.ReadByte();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 12;
     _ConversationType = stream.ReadValueS32();
     stream.Position = offset + 16;
     Field1 = stream.ReadValueS32();
     stream.Position = offset + 20;
     Field2 = stream.ReadValueS32();
     stream.Position = offset + 24;
     SNOQuest = stream.ReadValueS32();
     stream.Position = offset + 28;
     Field4 = stream.ReadValueS32();
     stream.Position = offset + 32;
     Field5 = stream.ReadValueS32();
     stream.Position = offset + 36;
     SNOConvPiggyback = stream.ReadValueS32();
     stream.Position = offset + 40;
     SNOConvUnlock = stream.ReadValueS32();
     stream.Position = offset + 44;
     Field8 = stream.ReadValueS32();
     stream.Position = offset + 48;
     Unknown = stream.ReadString(128);
     stream.Position = offset + 176;
     SNOPrimaryNpc = stream.ReadValueS32();
     stream.Position = offset + 180;
     SNOAltNpc1 = stream.ReadValueS32();
     stream.Position = offset + 184;
     SNOAltNpc2 = stream.ReadValueS32();
     stream.Position = offset + 188;
     SNOAltNpc3 = stream.ReadValueS32();
     stream.Position = offset + 192;
     SNOAltNpc4 = stream.ReadValueS32();
     stream.Position = offset + 196;
     Field15 = stream.ReadValueS32();
     stream.Position = offset + 208;
     serRootTreeNodes = new SerializeData();
     serRootTreeNodes.FileRead(stream, stream.Position);
     stream.Position = offset + 200;
     //still checking variablearrays
     RootTreeNodes = new List<ConversationTreeNode>();
     for(int i = 0; i < (int)(serRootTreeNodes.Field1 / 824); i++)
     {
     stream.Position = serRootTreeNodes.Field0 + 16 + (824*i) ;
         ConversationTreeNode temp12_RootTreeNodes;
         temp12_RootTreeNodes = new ConversationTreeNode();
         temp12_RootTreeNodes.FileRead(stream, stream.Position);
         _RootTreeNodes.Add(temp12_RootTreeNodes);
     }
     stream.Position = offset + 216;
     Unknown2 = stream.ReadString(256);
     stream.Position = offset + 472;
     Field19 = stream.ReadValueS32();
     stream.Position = offset + 488;
     serCompiledScript = new SerializeData();
     serCompiledScript.FileRead(stream, stream.Position);
     stream.Position = offset + 480;
     //still checking variablearrays
     CompiledScript = new List<byte>();
     for(int i = 0; i < (int)(serCompiledScript.Field1 / 1); i++)
     {
     stream.Position = serCompiledScript.Field0 + 16 + (1*i) ;
         byte temp12_CompiledScript;
         temp12_CompiledScript = (byte)stream.ReadByte();
         _CompiledScript.Add(temp12_CompiledScript);
     }
     stream.Position = offset + 536;
     SNOBossEncounter = stream.ReadValueS32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 16;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 20;
     dwWidth = stream.ReadValueS32();
     stream.Position = offset + 24;
     dwHeight = stream.ReadValueS32();
     stream.Position = offset + 28;
     dwFaceCount = stream.ReadValueS32();
     stream.Position = offset + 36;
     dwMipMapLevelMax = stream.ReadValueS32();
     stream.Position = offset + 40;
     Field5 = new SerializeData[60];
     for(int loop12=0; loop12 < 60; loop12++ )
     {
         SerializeData temp12_Field5;
         temp12_Field5 = new SerializeData();
         temp12_Field5.FileRead(stream, stream.Position);
         _Field5[loop12] = temp12_Field5;
     }
     stream.Position = offset + 520;
     Field6 = stream.ReadValueS32();
     stream.Position = offset + 32;
     Field7 = stream.ReadValueS32();
     stream.Position = offset + 592;
     Field8 = stream.ReadString(256);
     stream.Position = offset + 852;
     serImageFileIDs = new SerializeData();
     serImageFileIDs.FileRead(stream, stream.Position);
     stream.Position = offset + 848;
     //still checking variablearrays
     ImageFileIDs = new List<ImageFileID>();
     for(int i = 0; i < (int)(serImageFileIDs.Field1 / 516); i++)
     {
     stream.Position = serImageFileIDs.Field0 + 16 + (516*i) ;
         ImageFileID temp12_ImageFileIDs;
         temp12_ImageFileIDs = new ImageFileID();
         temp12_ImageFileIDs.FileRead(stream, stream.Position);
         _ImageFileIDs.Add(temp12_ImageFileIDs);
     }
     stream.Position = offset + 524;
     serFrame = new SerializeData();
     serFrame.FileRead(stream, stream.Position);
     stream.Position = offset + 532;
     //still checking variablearrays
     Frame = new List<TexFrame>();
     for(int i = 0; i < (int)(serFrame.Field1 / 80); i++)
     {
     stream.Position = serFrame.Field0 + 16 + (80*i) ;
         TexFrame temp12_Frame;
         temp12_Frame = new TexFrame();
         temp12_Frame.FileRead(stream, stream.Position);
         _Frame.Add(temp12_Frame);
     }
     stream.Position = offset + 536;
     Field13 = new IVector2D();
     Field13.FileRead(stream, stream.Position);
     stream.Position = offset + 860;
     Field14 = stream.ReadValueS32();
     stream.Position = offset + 864;
     Field15 = stream.ReadValueS32();
     stream.Position = offset + 868;
     Field16 = stream.ReadValueS32();
     stream.Position = offset + 544;
     Field17 = stream.ReadValueS32();
     stream.Position = offset + 548;
     Field18 = stream.ReadValueS32();
     stream.Position = offset + 552;
     Field19 = stream.ReadValueS32();
     stream.Position = offset + 560;
     Field20 = stream.ReadValueS64();
     stream.Position = offset + 568;
     Field21 = stream.ReadValueS32();
     stream.Position = offset + 572;
     Field22 = (byte)stream.ReadByte();
     stream.Position = offset + 573;
     Field23 = (byte)stream.ReadByte();
     stream.Position = offset + 574;
     Field24 = (byte)stream.ReadByte();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 32;
     Field0 = new dmFloat3();
     Field0.FileRead(stream, stream.Position);
     stream.Position = offset + 64;
     serVertices = new SerializeData();
     serVertices.FileRead(stream, stream.Position);
     stream.Position = offset + 0;
     //still checking variablearrays
     Vertices = new List<dmFloat3>();
     for(int i = 0; i < (int)(serVertices.Field1 / 12); i++)
     {
     stream.Position = serVertices.Field0 + 16 + (12*i) ;
         dmFloat3 temp12_Vertices;
         temp12_Vertices = new dmFloat3();
         temp12_Vertices.FileRead(stream, stream.Position);
         _Vertices.Add(temp12_Vertices);
     }
     stream.Position = offset + 72;
     serPlanes = new SerializeData();
     serPlanes.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     //still checking variablearrays
     Planes = new List<dmPlane>();
     for(int i = 0; i < (int)(serPlanes.Field1 / 16); i++)
     {
     stream.Position = serPlanes.Field0 + 16 + (16*i) ;
         dmPlane temp12_Planes;
         temp12_Planes = new dmPlane();
         temp12_Planes.FileRead(stream, stream.Position);
         _Planes.Add(temp12_Planes);
     }
     stream.Position = offset + 80;
     serSubEdges = new SerializeData();
     serSubEdges.FileRead(stream, stream.Position);
     stream.Position = offset + 16;
     //still checking variablearrays
     SubEdges = new List<dmSubEdge>();
     for(int i = 0; i < (int)(serSubEdges.Field1 / 4); i++)
     {
     stream.Position = serSubEdges.Field0 + 16 + (4*i) ;
         dmSubEdge temp12_SubEdges;
         temp12_SubEdges = new dmSubEdge();
         temp12_SubEdges.FileRead(stream, stream.Position);
         _SubEdges.Add(temp12_SubEdges);
     }
     stream.Position = offset + 88;
     serFaceSubEdges = new SerializeData();
     serFaceSubEdges.FileRead(stream, stream.Position);
     stream.Position = offset + 24;
     //still checking variablearrays
     FaceSubEdges = new List<byte>();
     for(int i = 0; i < (int)(serFaceSubEdges.Field1 / 1); i++)
     {
     stream.Position = serFaceSubEdges.Field0 + 16 + (1*i) ;
         byte temp12_FaceSubEdges;
         temp12_FaceSubEdges = (byte)stream.ReadByte();
         _FaceSubEdges.Add(temp12_FaceSubEdges);
     }
     stream.Position = offset + 44;
     Field9 = stream.ReadValueS32();
     stream.Position = offset + 48;
     Field10 = stream.ReadValueS32();
     stream.Position = offset + 52;
     Field11 = stream.ReadValueS32();
     stream.Position = offset + 56;
     Field12 = stream.ReadValueF32();
     stream.Position = offset + 60;
     Field13 = stream.ReadValueF32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     AttributeId = stream.ReadValueS32();
     stream.Position = offset + 4;
     SNOParam = stream.ReadValueS32();
     stream.Position = offset + 16;
     serAttributeFormula = new SerializeData();
     serAttributeFormula.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     //still checking variablearrays
     Formula = new List<byte>();
     for(int i = 0; i < (int)(serAttributeFormula.Field1 / 1); i++)
     {
         stream.Position = serAttributeFormula.Field0 + 16 + (1*i) ;
         byte temp12_Formula;
         temp12_Formula = (byte)stream.ReadByte();
         _Formula.Add(temp12_Formula);
     }
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 12;
     LuaName = stream.ReadString(64);
     stream.Position = offset + 80;
     Powerdef = new PowerDef();
     Powerdef.FileRead(stream, stream.Position);
     stream.Position = offset + 424;
     Field2 = stream.ReadValueS32() == 1;
     stream.Position = offset + 428;
     Field3 = stream.ReadValueS32() == 1;
     stream.Position = offset + 432;
     Chararray2 = stream.ReadString(256);
     stream.Position = offset + 688;
     ScriptFormulaCount = stream.ReadValueS32();
     stream.Position = offset + 692;
     serScriptFormulaDetails = new SerializeData();
     serScriptFormulaDetails.FileRead(stream, stream.Position);
     stream.Position = offset + 704;
     //still checking variablearrays
     ScriptFormulaDetails = new List<ScriptFormulaDetails>();
     for(int i = 0; i < (int)(serScriptFormulaDetails.Field1 / 776); i++)
     {
     stream.Position = serScriptFormulaDetails.Field0 + 16 + (776*i) ;
         ScriptFormulaDetails temp12_ScriptFormulaDetails;
         temp12_ScriptFormulaDetails = new ScriptFormulaDetails();
         temp12_ScriptFormulaDetails.FileRead(stream, stream.Position);
         _ScriptFormulaDetails.Add(temp12_ScriptFormulaDetails);
     }
     stream.Position = offset + 712;
     Field8 = stream.ReadValueS32();
     stream.Position = offset + 728;
     serCompiledScript = new SerializeData();
     serCompiledScript.FileRead(stream, stream.Position);
     stream.Position = offset + 720;
     //still checking variablearrays
     CompiledScript = new List<byte>();
     for(int i = 0; i < (int)(serCompiledScript.Field1 / 1); i++)
     {
     stream.Position = serCompiledScript.Field0 + 16 + (1*i) ;
         byte temp12_CompiledScript;
         temp12_CompiledScript = (byte)stream.ReadByte();
         _CompiledScript.Add(temp12_CompiledScript);
     }
     stream.Position = offset + 736;
     SNOQuestMetaData = stream.ReadValueS32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = new RequiredMessageHeader();
     Field0.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     ActorID = stream.ReadValueS32();
     stream.Position = offset + 12;
     ActorSNOId = stream.ReadValueS32();
     stream.Position = offset + 16;
     _Field3 = stream.ReadValueS32();
     stream.Position = offset + 20;
     _Field4 = stream.ReadValueS32();
     stream.Position = offset + 24;
     // WorldLocation: type DT_OPTIONAL[WorldLocationMessageData] hasnt a deserializer implemented
     throw new Exception("some fields arent going to be decoded.");
     stream.Position = offset + 64;
     // InventoryLocation: type DT_OPTIONAL[InventoryLocationMessageData] hasnt a deserializer implemented
     throw new Exception("some fields arent going to be decoded.");
     stream.Position = offset + 84;
     Field7 = new GBHandle();
     Field7.FileRead(stream, stream.Position);
     stream.Position = offset + 92;
     Field8 = stream.ReadValueS32();
     stream.Position = offset + 96;
     NameSNOId = stream.ReadValueS32();
     stream.Position = offset + 100;
     _Qualilty = stream.ReadValueS32();
     stream.Position = offset + 104;
     Field11 = (byte)stream.ReadByte();
     stream.Position = offset + 121;
     // : type DT_OPTIONAL[int] hasnt a deserializer implemented
     throw new Exception("some fields arent going to be decoded.");
     stream.Position = offset + 105;
     // MarkerSetSNO: type DT_OPTIONAL[int] hasnt a deserializer implemented
     throw new Exception("some fields arent going to be decoded.");
     stream.Position = offset + 113;
     // MarketSetIndex: type DT_OPTIONAL[int] hasnt a deserializer implemented
     throw new Exception("some fields arent going to be decoded.");
 }
Exemplo n.º 20
0
            public NavMeshDef(MpqFileStream stream)
            {
                SquaresCountX = stream.ReadInt32();
                SquaresCoountY = stream.ReadInt32();
                i0 = stream.ReadInt32();
                NavMeshSquareCount = stream.ReadInt32();
                f0 = stream.ReadFloat();
                serNavMeshArraySquares = new SerializeData(stream);
                long x = stream.Position;
                stream.Position = serNavMeshArraySquares.Offset + 16;

                NavMeshArraySquares = new NavMeshSquare[NavMeshSquareCount];
                for (int i = 0; i < NavMeshSquareCount; i++)
                {
                    NavMeshArraySquares[i] = new NavMeshSquare(stream);
                }

                stream.Position = x;
                stream.Position += 12;
                filename = new char[256];

                for (int i = 0; i < 256; i++)
                {
                    filename[i] = (char) stream.ReadByte(); // fix me / dark
                }
            }