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
|
|
|
{
|
2025-10-30 21:21:56 -04:00
|
|
|
/// <see href="https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/sp/src/public/bspfile.h#L557"/>
|
2025-09-26 10:57:15 -04:00
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public sealed class CDispSubNeighbor
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This indexes into ddispinfos.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>0xFFFF if there is no neighbor here.</remarks>
|
|
|
|
|
public ushort NeighborIndex;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// (CCW) rotation of the neighbor wrt this displacement.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte NeighborOrientation;
|
|
|
|
|
|
|
|
|
|
// These use the NeighborSpan type.
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Where the neighbor fits onto this side of our displacement.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte Span;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Where we fit onto our neighbor.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte NeighborSpan;
|
|
|
|
|
}
|
2025-10-30 21:21:56 -04:00
|
|
|
}
|