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

122 lines
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>
/// Class that constructs a DecoratedShape
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/DecoratedShape.h#L12">Jolt/Physics/Collision/Shape/DecoratedShape.h:12</see>
/// <br/>
/// <c>class DecoratedShapeSettings : public ShapeSettings</c>
/// </para>
/// </summary>
[InteropHandle]
public readonly partial struct DecoratedShapeSettings : IDisposable
{
/// <inheritdoc cref="ShapeSettings.GetRTTI()"/>
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
/// <inheritdoc cref="ShapeSettings.CastTo(RTTI)"/>
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
/// <summary>
/// <para>
/// Sub shape (either this or mShapePtr needs to be filled up)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/DecoratedShape.h#L24">Jolt/Physics/Collision/Shape/DecoratedShape.h:24</see>
/// <br/>
/// <c>RefConst&lt;ShapeSettings&gt; mInnerShape</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle carries its own reference; Dispose it once when you're done.
/// </para>
/// </remarks>
public ShapeSettings GetInnerShape() => Jolt.PInvoke.DecoratedShapeSettings_GetInnerShape(this);
/// <summary>
/// <para>
/// Sub shape (either this or mShapePtr needs to be filled up)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/DecoratedShape.h#L24">Jolt/Physics/Collision/Shape/DecoratedShape.h:24</see>
/// <br/>
/// <c>RefConst&lt;ShapeSettings&gt; mInnerShape</c>
/// </para>
/// </summary>
public void SetInnerShape(ShapeSettings value) =>
Jolt.PInvoke.DecoratedShapeSettings_SetInnerShape(this, value);
/// <summary>
/// <para>
/// Sub shape (either this or mShape needs to be filled up)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/DecoratedShape.h#L25">Jolt/Physics/Collision/Shape/DecoratedShape.h:25</see>
/// <br/>
/// <c>RefConst&lt;Shape&gt; mInnerShapePtr</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle carries its own reference; Dispose it once when you're done.
/// </para>
/// </remarks>
public Shape GetInnerShapePtr() => Jolt.PInvoke.DecoratedShapeSettings_GetInnerShapePtr(this);
/// <summary>
/// <para>
/// Sub shape (either this or mShape needs to be filled up)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/DecoratedShape.h#L25">Jolt/Physics/Collision/Shape/DecoratedShape.h:25</see>
/// <br/>
/// <c>RefConst&lt;Shape&gt; mInnerShapePtr</c>
/// </para>
/// </summary>
public void SetInnerShapePtr(Shape value) => Jolt.PInvoke.DecoratedShapeSettings_SetInnerShapePtr(this, value);
public void AddRef() => ((ShapeSettings)this).AddRef();
public void Release() => ((ShapeSettings)this).Release();
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
public static implicit operator ShapeSettings(DecoratedShapeSettings value) =>
Unsafe.BitCast<DecoratedShapeSettings, ShapeSettings>(value);
public void Dispose()
{
if (IsNull())
return;
Release();
}
/// <inheritdoc cref="ShapeSettings.CreateShape()"/>
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
/// <inheritdoc cref="ShapeSettings.ClearCachedResult()"/>
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
/// <inheritdoc cref="ShapeSettings.GetUserData()"/>
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
/// <inheritdoc cref="ShapeSettings.SetUserData(ulong)"/>
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
}
}