示例#1
0
        public void GetEntries()
        {
            int count1 = 0xAF;
            int count2 = 0x64;

            QuestMap = new QMapStruct();
            byte[] buff = pcc.Exports[3].Data;
            int    pos  = 0xC;

            BitConverter.IsLittleEndian = true;
            QuestMap.List1 = new QMapEntryStruct[count1];
            for (int i = 0; i < count1; i++)
            {
                QMapEntryStruct e = new QMapEntryStruct();
                e.Values = new int[0xC];
                for (int j = 0; j < 0xC; j++)
                {
                    e.Values[j] = BitConverter.ToInt32(buff, pos + j * 4);
                }
                QuestMap.List1[i] = e;
                pos += 0x30;
            }
            QuestMap.List2 = new QMapEntryStruct[count2];
            for (int i = 0; i < count2; i++)
            {
                QMapEntryStruct e = new QMapEntryStruct();
                e.Values = new int[0x8];
                for (int j = 0; j < 0x8; j++)
                {
                    e.Values[j] = BitConverter.ToInt32(buff, pos + j * 4);
                }
                QuestMap.List2[i] = e;
                pos += 0x20;
            }
        }
示例#2
0
 public void GetEntries()
 {
     int count1 = 0xAF;
     int count2 = 0x64;
     QuestMap = new QMapStruct();
     byte[] buff = pcc.Exports[3].Data;
     int pos = 0xC;
     BitConverter.IsLittleEndian = true;
     QuestMap.List1 = new QMapEntryStruct[count1];            
     for (int i = 0; i < count1; i++)
     {
         QMapEntryStruct e = new QMapEntryStruct();
         e.Values = new int[0xC];
         for (int j = 0; j < 0xC; j++)
             e.Values[j] = BitConverter.ToInt32(buff, pos + j * 4);
         QuestMap.List1[i] = e;
         pos += 0x30;
     }
     QuestMap.List2 = new QMapEntryStruct[count2];
     for (int i = 0; i < count2; i++)
     {
         QMapEntryStruct e = new QMapEntryStruct();
         e.Values = new int[0x8];
         for (int j = 0; j < 0x8; j++)
             e.Values[j] = BitConverter.ToInt32(buff, pos + j * 4);
         QuestMap.List2[i] = e;
         pos += 0x20;
     }
 }