blob: 04f46b919c148b8342ac80a3dabf8bcfb2d5ced3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
using System;
namespace Steamworks;
[Serializable]
public struct HSteamListenSocket : IEquatable<HSteamListenSocket>, IComparable<HSteamListenSocket>
{
public static readonly HSteamListenSocket Invalid = new HSteamListenSocket(0u);
public uint m_HSteamListenSocket;
public HSteamListenSocket(uint value)
{
m_HSteamListenSocket = value;
}
public override string ToString()
{
return m_HSteamListenSocket.ToString();
}
public override bool Equals(object other)
{
if (other is HSteamListenSocket)
{
return this == (HSteamListenSocket)other;
}
return false;
}
public override int GetHashCode()
{
return m_HSteamListenSocket.GetHashCode();
}
public static bool operator ==(HSteamListenSocket x, HSteamListenSocket y)
{
return x.m_HSteamListenSocket == y.m_HSteamListenSocket;
}
public static bool operator !=(HSteamListenSocket x, HSteamListenSocket y)
{
return !(x == y);
}
public static explicit operator HSteamListenSocket(uint value)
{
return new HSteamListenSocket(value);
}
public static explicit operator uint(HSteamListenSocket that)
{
return that.m_HSteamListenSocket;
}
public bool Equals(HSteamListenSocket other)
{
return m_HSteamListenSocket == other.m_HSteamListenSocket;
}
public int CompareTo(HSteamListenSocket other)
{
return m_HSteamListenSocket.CompareTo(other.m_HSteamListenSocket);
}
}
|