// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/Character/CharacterID.h:12 ///
/// class CharacterID ///
///
/// /// /// ID of a character. Used primarily to identify deleted characters and to sort deterministically. /// /// [InteropHandle] public readonly partial struct CharacterID : IDisposable { /// /// /// C++: /// Jolt/Physics/Character/CharacterID.h:20 ///
/// CharacterID() ///
///
/// /// /// Construct invalid character ID /// /// public static CharacterID Create() => Jolt.PInvoke.CharacterID_Create(); /// /// /// C++: /// Jolt/Physics/Character/CharacterID.h:26 ///
/// explicit CharacterID(uint32 inID) ///
///
/// /// /// Construct with specific value, make sure you don't use the same value twice! /// /// public static CharacterID Create(uint iD) => Jolt.PInvoke.CharacterID_Create_2(iD); /// /// /// C++: /// Jolt/Physics/Character/CharacterID.h:32 ///
/// inline uint32 GetValue() const ///
///
/// /// /// Get the numeric value of the ID /// /// public uint GetValue() => Jolt.PInvoke.CharacterID_GetValue(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterID.h:38 ///
/// inline bool IsInvalid() const ///
///
/// /// /// Check if the ID is valid /// /// public bool IsInvalid() => Jolt.PInvoke.CharacterID_IsInvalid(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterID.h:68 ///
/// inline uint64 GetHash() const ///
///
/// /// /// Get the hash for this character ID /// /// public ulong GetHash() => Jolt.PInvoke.CharacterID_GetHash(this); /// /// /// C++: /// Jolt/Physics/Character/CharacterID.h:85 ///
/// static void sSetNextCharacterID(uint32 inNextValue = 1) ///
///
/// /// /// Set the next available character ID, can be used after destroying all character to prepare for a second /// deterministic run /// /// public static void sSetNextCharacterID(uint nextValue) => Jolt.PInvoke.CharacterID_sSetNextCharacterID(nextValue); public void Dispose() => Jolt.PInvoke.CharacterID_Destroy(this); } }