//
// 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
{
///
///
/// Class that constructs a DecoratedShape
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/DecoratedShape.h:12
///
/// class DecoratedShapeSettings : public ShapeSettings
///
///
[InteropHandle]
public readonly partial struct DecoratedShapeSettings : IDisposable
{
///
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
///
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
///
///
/// Sub shape (either this or mShapePtr needs to be filled up)
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/DecoratedShape.h:24
///
/// RefConst<ShapeSettings> mInnerShape
///
///
///
///
/// The returned handle carries its own reference; Dispose it once when you're done.
///
///
public ShapeSettings GetInnerShape() => Jolt.PInvoke.DecoratedShapeSettings_GetInnerShape(this);
///
///
/// Sub shape (either this or mShapePtr needs to be filled up)
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/DecoratedShape.h:24
///
/// RefConst<ShapeSettings> mInnerShape
///
///
public void SetInnerShape(ShapeSettings value) =>
Jolt.PInvoke.DecoratedShapeSettings_SetInnerShape(this, value);
///
///
/// Sub shape (either this or mShape needs to be filled up)
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/DecoratedShape.h:25
///
/// RefConst<Shape> mInnerShapePtr
///
///
///
///
/// The returned handle carries its own reference; Dispose it once when you're done.
///
///
public Shape GetInnerShapePtr() => Jolt.PInvoke.DecoratedShapeSettings_GetInnerShapePtr(this);
///
///
/// Sub shape (either this or mShape needs to be filled up)
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/DecoratedShape.h:25
///
/// RefConst<Shape> mInnerShapePtr
///
///
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(value);
public void Dispose()
{
if (IsNull())
return;
Release();
}
///
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
///
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
///
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
///
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
}
}