brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/SubShapeIDPair.gen.cs
2026-10-15 14:12:02 +13:00

95 lines
4.6 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L14">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:14</see>
/// <br/>
/// <c>class SubShapeIDPair</c>
/// </para>
/// </summary>
/// <remarks>
/// <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>
/// </remarks>
[InteropHandle]
public readonly partial struct SubShapeIDPair : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L20">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:20</see>
/// <br/>
/// <c>SubShapeIDPair() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static SubShapeIDPair Create() => Jolt.PInvoke.SubShapeIDPair_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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 uint GetBody1ID() => Jolt.PInvoke.SubShapeIDPair_GetBody1ID(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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 uint GetSubShapeID1() => Jolt.PInvoke.SubShapeIDPair_GetSubShapeID1(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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 uint GetBody2ID() => Jolt.PInvoke.SubShapeIDPair_GetBody2ID(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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 uint GetSubShapeID2() => Jolt.PInvoke.SubShapeIDPair_GetSubShapeID2(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SubShapeIDPair.h#L51">Jolt/Physics/Collision/Shape/SubShapeIDPair.h:51</see>
/// <br/>
/// <c>uint64 GetHash() const</c>
/// </para>
/// </summary>
public ulong GetHash() => Jolt.PInvoke.SubShapeIDPair_GetHash(this);
public void Dispose() => Jolt.PInvoke.SubShapeIDPair_Destroy(this);
}
}