//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/ObjectStream/SerializableObject.h:155
///
/// class SerializableObject
///
///
///
///
/// Classes must be derived from SerializableObject if you want to be able to save pointers or
/// reference counting pointers to objects of this or derived classes. The type will automatically
/// be determined during serialization and upon deserialization it will be restored correctly.
///
///
[InteropHandle]
public readonly partial struct SerializableObject : IDisposable
{
///
///
/// C++:
/// Jolt/ObjectStream/SerializableObject.h:157
///
/// JPH_DECLARE_SERIALIZABLE_ABSTRACT_BASE(, SerializableObject)
///
///
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
public RTTI GetRTTI() => Jolt.PInvoke.SerializableObject_GetRTTI(this);
///
///
/// C++:
/// Jolt/ObjectStream/SerializableObject.h:157
///
/// JPH_DECLARE_SERIALIZABLE_ABSTRACT_BASE(, SerializableObject)
///
///
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.SerializableObject_CastTo(this, rTTI);
public void Dispose() => Jolt.PInvoke.SerializableObject_Destroy(this);
}
}