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/HServerListRequest.cs |
+ init
Diffstat (limited to 'Assembly_Firstpass/Steamworks/HServerListRequest.cs')
-rw-r--r-- | Assembly_Firstpass/Steamworks/HServerListRequest.cs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/Assembly_Firstpass/Steamworks/HServerListRequest.cs b/Assembly_Firstpass/Steamworks/HServerListRequest.cs new file mode 100644 index 0000000..8bf543c --- /dev/null +++ b/Assembly_Firstpass/Steamworks/HServerListRequest.cs @@ -0,0 +1,60 @@ +using System; + +namespace Steamworks; + +[Serializable] +public struct HServerListRequest : IEquatable<HServerListRequest> +{ + public static readonly HServerListRequest Invalid = new HServerListRequest(IntPtr.Zero); + + public IntPtr m_HServerListRequest; + + public HServerListRequest(IntPtr value) + { + m_HServerListRequest = value; + } + + public override string ToString() + { + return m_HServerListRequest.ToString(); + } + + public override bool Equals(object other) + { + if (other is HServerListRequest) + { + return this == (HServerListRequest)other; + } + return false; + } + + public override int GetHashCode() + { + return m_HServerListRequest.GetHashCode(); + } + + public static bool operator ==(HServerListRequest x, HServerListRequest y) + { + return x.m_HServerListRequest == y.m_HServerListRequest; + } + + public static bool operator !=(HServerListRequest x, HServerListRequest y) + { + return !(x == y); + } + + public static explicit operator HServerListRequest(IntPtr value) + { + return new HServerListRequest(value); + } + + public static explicit operator IntPtr(HServerListRequest that) + { + return that.m_HServerListRequest; + } + + public bool Equals(HServerListRequest other) + { + return m_HServerListRequest == other.m_HServerListRequest; + } +} |