Beispiel #1
0
 public void Load(byte[] data, uint offset)
 {
     _unknown1 = (ushort)FSHelpers.Read16(data, (int)offset + 0x0);
     //One byte padding.
     _unknown2 = (byte)FSHelpers.Read16(data, (int)offset + 0x3);
     _scale    = FSHelpers.ReadVector3(data, (int)offset + 0x4);
     _rotation = FSHelpers.ReadHalfRot(data, offset + 0x10);
     //2 bytes padding
     _translation    = FSHelpers.ReadVector3(data, (int)offset + 0x18);
     _unknown3       = FSHelpers.ReadFloat(data, (int)offset + 0x24);
     _boundingBoxMin = FSHelpers.ReadVector3(data, (int)offset + 0x28);
     _boundingBoxMax = FSHelpers.ReadVector3(data, (int)offset + 0x34);
 }