Esempio n. 1
0
 public void Parse(ChunkData data, ref short listOffset)
 {
     Index             = EndianessSwitchableBitConverter.ToUInt32(data[listOffset++].Data, 0);
     Count             = EndianessSwitchableBitConverter.ToInt32(data[listOffset++].Data, 0);
     HasBeenDiscovered = data[listOffset++].Data[0];
     Unknown4          = data[listOffset++].Data[0];
 }
 public void Parse(ChunkData data, ref int listOffset)
 {
     NameHash = EndianessSwitchableBitConverter.ToUInt32(data.DataEntries[listOffset++].Data, 0);
     Level    = data.DataEntries[listOffset++].Data[0];
     Unknown1 = data.DataEntries[listOffset++].Data[0];
     IsLocked = data.DataEntries[listOffset++].Data[0];
 }
            public void Parse(ChunkData data, ref short listOffset)
            {
                Hash  = EndianessSwitchableBitConverter.ToUInt32(data[listOffset++].Data, 0);
                Flags = (MissionFlag)data[listOffset++].Data[0];
                int count = EndianessSwitchableBitConverter.ToInt32(data[listOffset++].Data, 0);

                if (count > 0)
                {
                    for (int i = 0; i < count; i++)
                    {
                        SavedMissionObjectiveInfo o = new SavedMissionObjectiveInfo();
                        o.Parse(data, ref listOffset);
                        _missionObjectives.Add(o);
                    }
                }
            }
Esempio n. 4
0
 public void Parse(ChunkData data, ref short listOffset)
 {
     Unknown1 = EndianessSwitchableBitConverter.ToUInt32(data[listOffset++].Data, 0);
     Unknown2 = data[listOffset++].Data[0];
 }
Esempio n. 5
0
 public void Parse(byte[] data, int offset)
 {
     NameHash = EndianessSwitchableBitConverter.ToUInt32(data, offset);
 }
Esempio n. 6
0
 public void Parse(byte[] data, int offset)
 {
     NameHash = EndianessSwitchableBitConverter.ToUInt32(data, offset);
     Unknown1 = EndianessSwitchableBitConverter.ToInt16(data, offset + 4);
     Unknown2 = EndianessSwitchableBitConverter.ToInt16(data, offset + 6);
 }
 public void Parse(ChunkData data, ref short listOffset)
 {
     Hash   = EndianessSwitchableBitConverter.ToUInt32(data[listOffset++].Data, 0);
     Status = (MissionStatus)data[listOffset++].Data[0];
 }
Esempio n. 8
0
 public HashedString(byte[] data)
 {
     Hash = EndianessSwitchableBitConverter.ToUInt32(data, 0);
 }