mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-13 01:33:11 +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.
28 lines
826 B
C#
28 lines
826 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.WAD3
|
|
{
|
|
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/WADFile.h"/>
|
|
/// <see href="https://twhl.info/wiki/page/Specification:_WAD3"/>
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
public sealed class Header
|
|
{
|
|
/// <summary>
|
|
/// "WAD3"
|
|
/// </summary>
|
|
/// <remarks>4 bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)]
|
|
public string Signature = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Number of Directory entries
|
|
/// </summary>
|
|
public uint NumDirs;
|
|
|
|
/// <summary>
|
|
/// Offset from the WAD3 data's beginning for first Directory entry
|
|
/// </summary>
|
|
public uint DirOffset;
|
|
}
|
|
}
|