mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-23 23:25:35 +00:00
28 lines
613 B
C#
28 lines
613 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Models.WAD
|
|
{
|
|
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/WADFile.h"/>
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
public sealed class Lump
|
|
{
|
|
public uint Offset;
|
|
|
|
public uint DiskLength;
|
|
|
|
public uint Length;
|
|
|
|
public byte Type;
|
|
|
|
public byte Compression;
|
|
|
|
public byte Padding0;
|
|
|
|
public byte Padding1;
|
|
|
|
/// <remarks>16 bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)]
|
|
public string? Name;
|
|
}
|
|
}
|