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.
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.BSP
|
|
{
|
|
/// <summary>
|
|
/// A Model, in the terminology of the BSP file format, is a collection
|
|
/// of brushes and faces, often called a "bmodel". It should not be
|
|
/// confused with the prop models used in Hammer, which are usually
|
|
/// called "studiomodels" in the SDK source.
|
|
/// </summary>
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(Source)"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class VbspModel
|
|
{
|
|
/// <summary>
|
|
/// Bounding box
|
|
/// </summary>
|
|
public Vector3D Mins = new();
|
|
|
|
/// <summary>
|
|
/// Bounding box
|
|
/// </summary>
|
|
public Vector3D Maxs = new();
|
|
|
|
/// <summary>
|
|
/// For sounds or lights
|
|
/// </summary>
|
|
public Vector3D OriginVector = new();
|
|
|
|
/// <summary>
|
|
/// Index into nodes
|
|
/// </summary>
|
|
public int HeadNode;
|
|
|
|
/// <summary>
|
|
/// Index into faces
|
|
/// </summary>
|
|
public int FirstFaceIndex;
|
|
|
|
/// <summary>
|
|
/// Count of faces
|
|
/// </summary>
|
|
public int FacesCount;
|
|
}
|
|
}
|