2025-09-26 10:57:15 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.BSP
|
2025-09-26 10:57:15 -04:00
|
|
|
{
|
|
|
|
|
/// <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>
|
2025-10-30 20:44:16 -04:00
|
|
|
/// Collision data of length <see cref="Size"/>
|
2025-09-26 10:57:15 -04:00
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public byte[] CollisionData = [];
|
2025-09-26 10:57:15 -04:00
|
|
|
}
|
2025-10-30 20:44:16 -04:00
|
|
|
}
|