//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleController.h:24
///
/// class VehicleControllerSettings : public SerializableObject, public RefTarget<VehicleControllerSettings>
///
///
///
///
/// Basic settings object for interface that controls acceleration / deceleration of the vehicle
///
///
[InteropHandle]
public readonly partial struct VehicleControllerSettings : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleController.h:26
///
///
///
///
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
public RTTI GetRTTI() => Jolt.PInvoke.VehicleControllerSettings_GetRTTI(this);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleController.h:26
///
///
///
///
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.VehicleControllerSettings_CastTo(this, rTTI);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleController.h:30
///
/// virtual void SaveBinaryState(StreamOut &inStream) const = 0
///
///
///
///
/// Saves the contents of the controller settings in binary form to inStream.
///
///
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.VehicleControllerSettings_SaveBinaryState(this, stream);
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleController.h:33
///
/// virtual void RestoreBinaryState(StreamIn &inStream) = 0
///
///
///
///
/// Restore the contents of the controller settings in binary form from inStream.
///
///
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.VehicleControllerSettings_RestoreBinaryState(this, stream);
public void AddRef() => Jolt.PInvoke.VehicleControllerSettings_AddRef(this);
public void Release() => Jolt.PInvoke.VehicleControllerSettings_Release(this);
public uint GetRefCount() => Jolt.PInvoke.VehicleControllerSettings_GetRefCount(this);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}