Files
SabreTools.Models/VBSP/Header.cs
2023-09-10 21:24:10 -04:00

40 lines
1.1 KiB
C#

namespace SabreTools.Models.VBSP
{
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/VBSPFile.h"/>
public sealed class Header
{
/// <summary>
/// BSP file signature.
/// </summary>
#if NET48
public string Signature { get; set; }
#else
public string? Signature { get; set; }
#endif
/// <summary>
/// BSP file version.
/// </summary>
/// <remarks>
/// 19-20: Source
/// 21: Source - The lump version property was moved to the start of the struct.
/// 0x00040014: Dark Messiah - Looks like the 32 bit version has been split into two 16 bit fields.
/// </remarks>
public int Version { get; set; }
/// <summary>
/// Lumps.
/// </summary>
#if NET48
public Lump[] Lumps { get; set; }
#else
public Lump?[]? Lumps { get; set; }
#endif
/// <summary>
/// The map's revision (iteration, version) number.
/// </summary>
public int MapRevision { get; set; }
}
}