mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-14 02:02:57 +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.
26 lines
814 B
C#
26 lines
814 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.BSP
|
|
{
|
|
/// <summary>
|
|
/// The last two parts appear to be identical to the PHY file format,
|
|
/// which means their exact contents are unknown. Note that the
|
|
/// compactsurfaceheader_t structure contains the data size of each
|
|
/// collision data section (including the rest of the header)
|
|
/// </summary>
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(Source)"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class PhysSolid
|
|
{
|
|
/// <summary>
|
|
/// Size of the collision data
|
|
/// </summary>
|
|
public int Size;
|
|
|
|
/// <summary>
|
|
/// Collision data of length <see cref="Size"/>
|
|
/// </summary>
|
|
public byte[] CollisionData = [];
|
|
}
|
|
}
|