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
|
|
{
|
|
/// <summary>
|
|
/// The brush lump (Lump 18) contains all brushes that were
|
|
/// present in the original VMF file before compiling.
|
|
/// Unlike faces, brushes are constructive solid geometry (CSG)
|
|
/// defined by planes instead of edges and vertices. It is the
|
|
/// presence of the brush and brushside lumps in Source BSP
|
|
/// files that makes decompiling them a much easier job than
|
|
/// for GoldSrc files, which lacked this info.
|
|
/// </summary>
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(Source)"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class Brush
|
|
{
|
|
/// <summary>
|
|
/// First brushside
|
|
/// </summary>
|
|
public int FirstSide;
|
|
|
|
/// <summary>
|
|
/// Number of brushsides
|
|
/// </summary>
|
|
public int NumSides;
|
|
|
|
/// <summary>
|
|
/// Contents flags
|
|
/// </summary>
|
|
public VbspContents Contents;
|
|
}
|
|
}
|