mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
65 lines
1.4 KiB
C#
65 lines
1.4 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.GCF
|
|
{
|
|
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/GCFFile.h"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class Header
|
|
{
|
|
/// <summary>
|
|
/// Always 0x00000001
|
|
/// </summary>
|
|
public uint Dummy0;
|
|
|
|
/// <summary>
|
|
/// Always 0x00000001
|
|
/// </summary>
|
|
public uint MajorVersion;
|
|
|
|
/// <summary>
|
|
/// GCF version number.
|
|
/// </summary>
|
|
public uint MinorVersion;
|
|
|
|
/// <summary>
|
|
/// Cache ID
|
|
/// </summary>
|
|
public uint CacheID;
|
|
|
|
/// <summary>
|
|
/// Last version played
|
|
/// </summary>
|
|
public uint LastVersionPlayed;
|
|
|
|
/// <summary>
|
|
/// Reserved
|
|
/// </summary>
|
|
public uint Dummy1;
|
|
|
|
/// <summary>
|
|
/// Reserved
|
|
/// </summary>
|
|
public uint Dummy2;
|
|
|
|
/// <summary>
|
|
/// Total size of GCF file in bytes.
|
|
/// </summary>
|
|
public uint FileSize;
|
|
|
|
/// <summary>
|
|
/// Size of each data block in bytes.
|
|
/// </summary>
|
|
public uint BlockSize;
|
|
|
|
/// <summary>
|
|
/// Number of data blocks.
|
|
/// </summary>
|
|
public uint BlockCount;
|
|
|
|
/// <summary>
|
|
/// Reserved
|
|
/// </summary>
|
|
public uint Dummy3;
|
|
}
|
|
}
|