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