mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-17 19:53:34 +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.
30 lines
912 B
C#
30 lines
912 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.BSP
|
|
{
|
|
/// <summary>
|
|
/// Occluder polygons are stored in the doccluderpolydata_t
|
|
/// structure and contain the firstvertexindex field, which
|
|
/// is the first index into the vertex array of the occluder,
|
|
/// which are again indices for the vertex array of the vertex
|
|
/// lump (Lump 3). The total number of vertex indices is
|
|
/// stored in vertexcount.
|
|
/// </summary>
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(Source)"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class OccluderPolyData
|
|
{
|
|
/// <summary>
|
|
/// Index into doccludervertindices
|
|
/// </summary>
|
|
public int FirstVertexIndex;
|
|
|
|
/// <summary>
|
|
/// Amount of vertex indices
|
|
/// </summary>
|
|
public int VertexCount;
|
|
|
|
public int PlanEnum;
|
|
}
|
|
}
|