diff options
author | chai <215380520@qq.com> | 2023-11-25 18:39:02 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-11-25 18:39:02 +0800 |
commit | 0e63c4a2c6dec8dfa260501fb7d73750261ea7b7 (patch) | |
tree | f6f2291be65d195d6082b523a56183c332715240 /Assembly_Firstpass/Steamworks/InputDigitalActionHandle_t.cs |
+ init
Diffstat (limited to 'Assembly_Firstpass/Steamworks/InputDigitalActionHandle_t.cs')
-rw-r--r-- | Assembly_Firstpass/Steamworks/InputDigitalActionHandle_t.cs | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Assembly_Firstpass/Steamworks/InputDigitalActionHandle_t.cs b/Assembly_Firstpass/Steamworks/InputDigitalActionHandle_t.cs new file mode 100644 index 0000000..f83ff9e --- /dev/null +++ b/Assembly_Firstpass/Steamworks/InputDigitalActionHandle_t.cs @@ -0,0 +1,63 @@ +using System; + +namespace Steamworks; + +[Serializable] +public struct InputDigitalActionHandle_t : IEquatable<InputDigitalActionHandle_t>, IComparable<InputDigitalActionHandle_t> +{ + public ulong m_InputDigitalActionHandle; + + public InputDigitalActionHandle_t(ulong value) + { + m_InputDigitalActionHandle = value; + } + + public override string ToString() + { + return m_InputDigitalActionHandle.ToString(); + } + + public override bool Equals(object other) + { + if (other is InputDigitalActionHandle_t) + { + return this == (InputDigitalActionHandle_t)other; + } + return false; + } + + public override int GetHashCode() + { + return m_InputDigitalActionHandle.GetHashCode(); + } + + public static bool operator ==(InputDigitalActionHandle_t x, InputDigitalActionHandle_t y) + { + return x.m_InputDigitalActionHandle == y.m_InputDigitalActionHandle; + } + + public static bool operator !=(InputDigitalActionHandle_t x, InputDigitalActionHandle_t y) + { + return !(x == y); + } + + public static explicit operator InputDigitalActionHandle_t(ulong value) + { + return new InputDigitalActionHandle_t(value); + } + + public static explicit operator ulong(InputDigitalActionHandle_t that) + { + return that.m_InputDigitalActionHandle; + } + + public bool Equals(InputDigitalActionHandle_t other) + { + return m_InputDigitalActionHandle == other.m_InputDigitalActionHandle; + } + + public int CompareTo(InputDigitalActionHandle_t other) + { + return m_InputDigitalActionHandle.CompareTo(other.m_InputDigitalActionHandle); + } +} |