summaryrefslogtreecommitdiff
path: root/Assembly_Firstpass/Steamworks/InputHandle_t.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2023-11-25 18:39:02 +0800
committerchai <215380520@qq.com>2023-11-25 18:39:02 +0800
commit0e63c4a2c6dec8dfa260501fb7d73750261ea7b7 (patch)
treef6f2291be65d195d6082b523a56183c332715240 /Assembly_Firstpass/Steamworks/InputHandle_t.cs
+ init
Diffstat (limited to 'Assembly_Firstpass/Steamworks/InputHandle_t.cs')
-rw-r--r--Assembly_Firstpass/Steamworks/InputHandle_t.cs63
1 files changed, 63 insertions, 0 deletions
diff --git a/Assembly_Firstpass/Steamworks/InputHandle_t.cs b/Assembly_Firstpass/Steamworks/InputHandle_t.cs
new file mode 100644
index 0000000..543276d
--- /dev/null
+++ b/Assembly_Firstpass/Steamworks/InputHandle_t.cs
@@ -0,0 +1,63 @@
+using System;
+
+namespace Steamworks;
+
+[Serializable]
+public struct InputHandle_t : IEquatable<InputHandle_t>, IComparable<InputHandle_t>
+{
+ public ulong m_InputHandle;
+
+ public InputHandle_t(ulong value)
+ {
+ m_InputHandle = value;
+ }
+
+ public override string ToString()
+ {
+ return m_InputHandle.ToString();
+ }
+
+ public override bool Equals(object other)
+ {
+ if (other is InputHandle_t)
+ {
+ return this == (InputHandle_t)other;
+ }
+ return false;
+ }
+
+ public override int GetHashCode()
+ {
+ return m_InputHandle.GetHashCode();
+ }
+
+ public static bool operator ==(InputHandle_t x, InputHandle_t y)
+ {
+ return x.m_InputHandle == y.m_InputHandle;
+ }
+
+ public static bool operator !=(InputHandle_t x, InputHandle_t y)
+ {
+ return !(x == y);
+ }
+
+ public static explicit operator InputHandle_t(ulong value)
+ {
+ return new InputHandle_t(value);
+ }
+
+ public static explicit operator ulong(InputHandle_t that)
+ {
+ return that.m_InputHandle;
+ }
+
+ public bool Equals(InputHandle_t other)
+ {
+ return m_InputHandle == other.m_InputHandle;
+ }
+
+ public int CompareTo(InputHandle_t other)
+ {
+ return m_InputHandle.CompareTo(other.m_InputHandle);
+ }
+}