mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +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.
34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.BSP
|
|
{
|
|
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/VBSPFile.h"/>
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(Source)"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class VbspHeader
|
|
{
|
|
/// <summary>
|
|
/// BSP file signature
|
|
/// </summary>
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)]
|
|
public string Signature = string.Empty;
|
|
|
|
/// <summary>
|
|
/// BSP file version
|
|
/// </summary>
|
|
/// <remarks>17,18,19,20,21,22,23,25,27,29</remarks>
|
|
public int Version;
|
|
|
|
/// <summary>
|
|
/// Lump directory array
|
|
/// </summary>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = Constants.VBSP_HEADER_LUMPS)]
|
|
public VbspLumpEntry[] Lumps = new VbspLumpEntry[Constants.VBSP_HEADER_LUMPS];
|
|
|
|
/// <summary>
|
|
/// The map's revision (iteration, version) number.
|
|
/// </summary>
|
|
public int MapRevision;
|
|
}
|
|
}
|