mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-16 19:23:04 +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.
80 lines
2.0 KiB
C#
80 lines
2.0 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.NCF
|
|
{
|
|
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/NCFFile.h"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class DirectoryHeader
|
|
{
|
|
/// <summary>
|
|
/// Always 0x00000004
|
|
/// </summary>
|
|
public uint Dummy0;
|
|
|
|
/// <summary>
|
|
/// Cache ID.
|
|
/// </summary>
|
|
public uint CacheID;
|
|
|
|
/// <summary>
|
|
/// NCF file version.
|
|
/// </summary>
|
|
public uint LastVersionPlayed;
|
|
|
|
/// <summary>
|
|
/// Number of items in the directory.
|
|
/// </summary>
|
|
public uint ItemCount;
|
|
|
|
/// <summary>
|
|
/// Number of files in the directory.
|
|
/// </summary>
|
|
public uint FileCount;
|
|
|
|
/// <summary>
|
|
/// Always 0x00008000. Data per checksum?
|
|
/// </summary>
|
|
public uint ChecksumDataLength;
|
|
|
|
/// <summary>
|
|
/// Size of lpNCFDirectoryEntries & lpNCFDirectoryNames & lpNCFDirectoryInfo1Entries & lpNCFDirectoryInfo2Entries & lpNCFDirectoryCopyEntries & lpNCFDirectoryLocalEntries in bytes.
|
|
/// </summary>
|
|
public uint DirectorySize;
|
|
|
|
/// <summary>
|
|
/// Size of the directory names in bytes.
|
|
/// </summary>
|
|
public uint NameSize;
|
|
|
|
/// <summary>
|
|
/// Number of Info1 entires.
|
|
/// </summary>
|
|
public uint Info1Count;
|
|
|
|
/// <summary>
|
|
/// Number of files to copy.
|
|
/// </summary>
|
|
public uint CopyCount;
|
|
|
|
/// <summary>
|
|
/// Number of files to keep local.
|
|
/// </summary>
|
|
public uint LocalCount;
|
|
|
|
/// <summary>
|
|
/// Reserved
|
|
/// </summary>
|
|
public uint Dummy1;
|
|
|
|
/// <summary>
|
|
/// Reserved
|
|
/// </summary>
|
|
public uint Dummy2;
|
|
|
|
/// <summary>
|
|
/// Header checksum.
|
|
/// </summary>
|
|
public uint Checksum;
|
|
}
|
|
}
|