using System.Runtime.InteropServices; namespace SabreTools.Data.Models.WAD3 { /// /// [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public sealed class DirEntry { /// /// Offset from the beginning of the WAD3 data /// public uint Offset; /// /// The entry's size in the archive in bytes /// public uint DiskLength; /// /// The entry's uncompressed size /// public uint Length; /// /// File type of the entry /// public FileType Type; /// /// Whether the file was compressed /// /// Actually a boolean value public byte Compression; /// /// Padding /// public ushort Padding; /// /// Null-terminated texture name /// /// 16 bytes [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)] public string Name = string.Empty; } }