コード例 #1
0
 public override void Parse(GameBitBuffer buffer)
 {
     FollowUpStepID = buffer.ReadInt(32);
     serStepObjectives = new SerializeData();
     serStepObjectives.Parse(buffer);
     //still checking variablearrays
     this.StepObjectives = new List<QuestStepObjective>( buffer.ReadInt(0) );
     for(int loop12 = 0; loop12 < _StepObjectives.Count; loop12++)
     {
         _StepObjectives[loop12] = new QuestStepObjective();
         _StepObjectives[loop12].Parse(buffer);
     }
 }
コード例 #2
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = new int[4];
     for(int i = 0;i < _Field0.Length;i++) _Field0[i] = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadInt(32);
     Field3 = buffer.ReadInt(32);
     Field4 = buffer.ReadBool();
     Field5 = buffer.ReadBool();
     serStepBonusObjectives = new SerializeData();
     serStepBonusObjectives.Parse(buffer);
     //still checking variablearrays
     this.StepBonusObjectives = new List<QuestStepObjective>( buffer.ReadInt(0) );
     for(int loop12 = 0; loop12 < _StepBonusObjectives.Count; loop12++)
     {
         _StepBonusObjectives[loop12] = new QuestStepObjective();
         _StepBonusObjectives[loop12].Parse(buffer);
     }
 }
コード例 #3
0
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     FollowUpStepID = stream.ReadValueS32();
     stream.Position = offset + 16;
     serStepObjectives = new SerializeData();
     serStepObjectives.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     //still checking variablearrays
     StepObjectives = new List<QuestStepObjective>();
     for(int i = 0; i < (int)(serStepObjectives.Field1 / 564); i++)
     {
     stream.Position = serStepObjectives.Field0 + 16 + (564*i) ;
         QuestStepObjective temp12_StepObjectives;
         temp12_StepObjectives = new QuestStepObjective();
         temp12_StepObjectives.FileRead(stream, stream.Position);
         _StepObjectives.Add(temp12_StepObjectives);
     }
 }
コード例 #4
0
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = new int[4];
     for(int loop12=0; loop12 < 4; loop12++ )
     {
         int temp12_Field0;
         temp12_Field0 = stream.ReadValueS32();
         _Field0[loop12] = temp12_Field0;
     }
     stream.Position = offset + 16;
     Field1 = stream.ReadValueS32();
     stream.Position = offset + 20;
     Field2 = stream.ReadValueS32();
     stream.Position = offset + 24;
     Field3 = stream.ReadValueS32();
     stream.Position = offset + 28;
     Field4 = stream.ReadValueS32() == 1;
     stream.Position = offset + 32;
     Field5 = stream.ReadValueS32() == 1;
     stream.Position = offset + 48;
     serStepBonusObjectives = new SerializeData();
     serStepBonusObjectives.FileRead(stream, stream.Position);
     stream.Position = offset + 40;
     //still checking variablearrays
     StepBonusObjectives = new List<QuestStepObjective>();
     for(int i = 0; i < (int)(serStepBonusObjectives.Field1 / 564); i++)
     {
     stream.Position = serStepBonusObjectives.Field0 + 16 + (564*i) ;
         QuestStepObjective temp12_StepBonusObjectives;
         temp12_StepBonusObjectives = new QuestStepObjective();
         temp12_StepBonusObjectives.FileRead(stream, stream.Position);
         _StepBonusObjectives.Add(temp12_StepBonusObjectives);
     }
 }