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