forked from WolvenKit/WolvenKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStructs.cs
39 lines (30 loc) · 852 Bytes
/
Structs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.Runtime.InteropServices;
namespace WolvenKit.RED4.TweakDB
{
[StructLayout(LayoutKind.Explicit, Size = 0x20)]
internal struct FileHeader
{
[StructLayout(LayoutKind.Explicit, Size = 0x10)]
public struct FileOffsets
{
[FieldOffset(0x0)]
public uint Flats;
[FieldOffset(0x4)]
public uint Records;
[FieldOffset(0x8)]
public uint Queries;
[FieldOffset(0xC)]
public uint GroupTags;
};
[FieldOffset(0x0)]
public uint Magic;
[FieldOffset(0x4)]
public uint BlobVersion;
[FieldOffset(0x8)]
public uint ParserVersion;
[FieldOffset(0xC)]
public uint RecordsChecksum;
[FieldOffset(0x10)]
public FileOffsets Offsets;
}
}