mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-06 06:11:45 +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.
24 lines
767 B
C#
24 lines
767 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.BSP
|
|
{
|
|
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/BSPFile.h"/>
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(GoldSrc)"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class BspHeader
|
|
{
|
|
/// <summary>
|
|
/// Version
|
|
/// </summary>
|
|
/// <remarks>Must be 30 for a valid HL BSP file</remarks>
|
|
public int Version;
|
|
|
|
/// <summary>
|
|
/// Lumps
|
|
/// </summary>
|
|
/// <remarks>15 entries</remarks>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.BSP_HEADER_LUMPS)]
|
|
public BspLumpEntry[] Lumps = new BspLumpEntry[Constants.BSP_HEADER_LUMPS];
|
|
}
|
|
}
|