mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
112
brutal.jolt/Brutal.Jolt/Generated/Classes/CharacterID.gen.cs
Normal file
112
brutal.jolt/Brutal.Jolt/Generated/Classes/CharacterID.gen.cs
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterID.h#L12">Jolt/Physics/Character/CharacterID.h:12</see>
|
||||
/// <br/>
|
||||
/// <c>class CharacterID</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// ID of a character. Used primarily to identify deleted characters and to sort deterministically.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct CharacterID : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterID.h#L20">Jolt/Physics/Character/CharacterID.h:20</see>
|
||||
/// <br/>
|
||||
/// <c>CharacterID()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Construct invalid character ID
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static CharacterID Create() => Jolt.PInvoke.CharacterID_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterID.h#L26">Jolt/Physics/Character/CharacterID.h:26</see>
|
||||
/// <br/>
|
||||
/// <c>explicit CharacterID(uint32 inID)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Construct with specific value, make sure you don't use the same value twice!
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static CharacterID Create(uint iD) => Jolt.PInvoke.CharacterID_Create_2(iD);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterID.h#L32">Jolt/Physics/Character/CharacterID.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>inline uint32 GetValue() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get the numeric value of the ID
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public uint GetValue() => Jolt.PInvoke.CharacterID_GetValue(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterID.h#L38">Jolt/Physics/Character/CharacterID.h:38</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool IsInvalid() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if the ID is valid
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool IsInvalid() => Jolt.PInvoke.CharacterID_IsInvalid(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterID.h#L68">Jolt/Physics/Character/CharacterID.h:68</see>
|
||||
/// <br/>
|
||||
/// <c>inline uint64 GetHash() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get the hash for this character ID
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ulong GetHash() => Jolt.PInvoke.CharacterID_GetHash(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterID.h#L85">Jolt/Physics/Character/CharacterID.h:85</see>
|
||||
/// <br/>
|
||||
/// <c>static void sSetNextCharacterID(uint32 inNextValue = 1)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Set the next available character ID, can be used after destroying all character to prepare for a second
|
||||
/// deterministic run
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static void sSetNextCharacterID(uint nextValue) => Jolt.PInvoke.CharacterID_sSetNextCharacterID(nextValue);
|
||||
public void Dispose() => Jolt.PInvoke.CharacterID_Destroy(this);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue