brutal/Brutal.Jolt/Generated/Structs/SubShapeIDPair.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

150 lines
6.5 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// A pair of bodies and their sub shape ID's. Can be used as a key in a map to find a contact point.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L14">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:14</see>
/// <br/>
/// <c>class SubShapeIDPair</c>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct SubShapeIDPair
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L54">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:54</see>
/// <br/>
/// <c>BodyID mBody1ID</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public uint Body1ID;
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L55">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:55</see>
/// <br/>
/// <c>SubShapeID mSubShapeID1</c>
/// </para>
/// </summary>
[FieldOffset(4)]
public uint SubShapeID1;
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L56">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:56</see>
/// <br/>
/// <c>BodyID mBody2ID</c>
/// </para>
/// </summary>
[FieldOffset(8)]
public uint Body2ID;
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L57">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:57</see>
/// <br/>
/// <c>SubShapeID mSubShapeID2</c>
/// </para>
/// </summary>
[FieldOffset(12)]
public uint SubShapeID2;
/// <summary>
/// <para>
/// Constructor
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L20">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:20</see>
/// <br/>
/// <c>SubShapeIDPair() = default</c>
/// </para>
/// </summary>
public static SubShapeIDPair Create()
{
Jolt.PInvoke.SubShapeIDPair_Create(out var _outResult);
return _outResult;
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L21">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:21</see>
/// <br/>
/// <c>SubShapeIDPair(const BodyID &amp;inBody1ID, const SubShapeID &amp;inSubShapeID1, const BodyID &amp;inBody2ID, const SubShapeID &amp;inSubShapeID2)</c>
/// </para>
/// </summary>
public static SubShapeIDPair Create(uint body1ID, uint subShapeID1, uint body2ID, uint subShapeID2)
{
Jolt.PInvoke.SubShapeIDPair_Create_2(body1ID, subShapeID1, body2ID, subShapeID2, out var _outResult);
return _outResult;
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L46">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:46</see>
/// <br/>
/// <c>const BodyID &amp; GetBody1ID() const</c>
/// </para>
/// </summary>
public readonly uint GetBody1ID() => Jolt.PInvoke.SubShapeIDPair_GetBody1ID(ref Unsafe.AsRef(in this));
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L47">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:47</see>
/// <br/>
/// <c>const SubShapeID &amp; GetSubShapeID1() const</c>
/// </para>
/// </summary>
public readonly uint GetSubShapeID1() => Jolt.PInvoke.SubShapeIDPair_GetSubShapeID1(ref Unsafe.AsRef(in this));
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L48">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:48</see>
/// <br/>
/// <c>const BodyID &amp; GetBody2ID() const</c>
/// </para>
/// </summary>
public readonly uint GetBody2ID() => Jolt.PInvoke.SubShapeIDPair_GetBody2ID(ref Unsafe.AsRef(in this));
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L49">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:49</see>
/// <br/>
/// <c>const SubShapeID &amp; GetSubShapeID2() const</c>
/// </para>
/// </summary>
public readonly uint GetSubShapeID2() => Jolt.PInvoke.SubShapeIDPair_GetSubShapeID2(ref Unsafe.AsRef(in this));
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L51">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:51</see>
/// <br/>
/// <c>uint64 GetHash() const</c>
/// </para>
/// </summary>
public readonly ulong GetHash() => Jolt.PInvoke.SubShapeIDPair_GetHash(ref Unsafe.AsRef(in this));
}
}