summaryrefslogtreecommitdiff
path: root/Assembly_Firstpass/Steamworks/UGCUpdateHandle_t.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assembly_Firstpass/Steamworks/UGCUpdateHandle_t.cs')
-rw-r--r--Assembly_Firstpass/Steamworks/UGCUpdateHandle_t.cs65
1 files changed, 65 insertions, 0 deletions
diff --git a/Assembly_Firstpass/Steamworks/UGCUpdateHandle_t.cs b/Assembly_Firstpass/Steamworks/UGCUpdateHandle_t.cs
new file mode 100644
index 0000000..6c9a7da
--- /dev/null
+++ b/Assembly_Firstpass/Steamworks/UGCUpdateHandle_t.cs
@@ -0,0 +1,65 @@
+using System;
+
+namespace Steamworks;
+
+[Serializable]
+public struct UGCUpdateHandle_t : IEquatable<UGCUpdateHandle_t>, IComparable<UGCUpdateHandle_t>
+{
+ public static readonly UGCUpdateHandle_t Invalid = new UGCUpdateHandle_t(ulong.MaxValue);
+
+ public ulong m_UGCUpdateHandle;
+
+ public UGCUpdateHandle_t(ulong value)
+ {
+ m_UGCUpdateHandle = value;
+ }
+
+ public override string ToString()
+ {
+ return m_UGCUpdateHandle.ToString();
+ }
+
+ public override bool Equals(object other)
+ {
+ if (other is UGCUpdateHandle_t)
+ {
+ return this == (UGCUpdateHandle_t)other;
+ }
+ return false;
+ }
+
+ public override int GetHashCode()
+ {
+ return m_UGCUpdateHandle.GetHashCode();
+ }
+
+ public static bool operator ==(UGCUpdateHandle_t x, UGCUpdateHandle_t y)
+ {
+ return x.m_UGCUpdateHandle == y.m_UGCUpdateHandle;
+ }
+
+ public static bool operator !=(UGCUpdateHandle_t x, UGCUpdateHandle_t y)
+ {
+ return !(x == y);
+ }
+
+ public static explicit operator UGCUpdateHandle_t(ulong value)
+ {
+ return new UGCUpdateHandle_t(value);
+ }
+
+ public static explicit operator ulong(UGCUpdateHandle_t that)
+ {
+ return that.m_UGCUpdateHandle;
+ }
+
+ public bool Equals(UGCUpdateHandle_t other)
+ {
+ return m_UGCUpdateHandle == other.m_UGCUpdateHandle;
+ }
+
+ public int CompareTo(UGCUpdateHandle_t other)
+ {
+ return m_UGCUpdateHandle.CompareTo(other.m_UGCUpdateHandle);
+ }
+}