2025-09-26 10:57:15 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.WAD3
|
2025-09-26 10:57:15 -04:00
|
|
|
{
|
|
|
|
|
/// <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)]
|
2025-10-31 13:59:28 -04:00
|
|
|
public string Signature = string.Empty;
|
2025-09-26 10:57:15 -04:00
|
|
|
|
|
|
|
|
/// <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;
|
|
|
|
|
}
|
|
|
|
|
}
|