Пример #1
0
 public void Load(byte[] data, ref int offset)
 {
     Position = new Vector3(
         FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, offset)),
         FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, offset + 4)),
         FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, offset + 8)));
     offset += Size;
 }
Пример #2
0
            public void Load(byte[] data, ref int offset)
            {
                NameOffset = FSHelpers.Read32(data, offset);
                Unknown1   = new Vector3(
                    FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, offset + 4)),
                    FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, offset + 8)),
                    FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, offset + 12)));
                Unknown2 = FSHelpers.Read32(data, offset + 16);
                Unknown3 = FSHelpers.Read32(data, offset + 20);
                Unknown4 = new Vector3(
                    FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, offset + 24)),
                    FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, offset + 28)),
                    FSHelpers.ConvertIEEE754Float((uint)FSHelpers.Read32(data, offset + 32)));
                Unknown5 = FSHelpers.Read32(data, (int)offset + 36);
                Unknown6 = FSHelpers.Read32(data, (int)offset + 40);
                Unknown7 = FSHelpers.Read32(data, (int)offset + 44);
                Unknown8 = FSHelpers.Read32(data, (int)offset + 48);

                Name = FSHelpers.ReadString(data, (int)NameOffset);

                offset += Size;
            }