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.
43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.BSP
|
|
{
|
|
/// <summary>
|
|
/// The physcollide lump (Lump 29) contains physics data for the world.
|
|
/// </summary>
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(Source)"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class PhysModel
|
|
{
|
|
/// <summary>
|
|
/// Perhaps the index of the model to which this physics model applies?
|
|
/// </summary>
|
|
public int ModelIndex;
|
|
|
|
/// <summary>
|
|
/// Total size of the collision data sections
|
|
/// </summary>
|
|
public int DataSize;
|
|
|
|
/// <summary>
|
|
/// Size of the text section
|
|
/// </summary>
|
|
public int KeydataSize;
|
|
|
|
/// <summary>
|
|
/// Number of collision data sections
|
|
/// </summary>
|
|
public int SolidCount;
|
|
|
|
/// <summary>
|
|
/// Collision data of length <see cref="SolidCount"/>
|
|
/// </summary>
|
|
public PhysSolid[] Solids = [];
|
|
|
|
/// <summary>
|
|
/// Key data of size <see cref="KeydataSize"/>
|
|
/// </summary>
|
|
public byte[] TextData = [];
|
|
}
|
|
}
|