blob: 7de7bd1575a529fd64a2aeef855fe2e159e58cd0 (
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 FriendsGroupID_t : IEquatable<FriendsGroupID_t>, IComparable<FriendsGroupID_t>
{
public static readonly FriendsGroupID_t Invalid = new FriendsGroupID_t(-1);
public short m_FriendsGroupID;
public FriendsGroupID_t(short value)
{
m_FriendsGroupID = value;
}
public override string ToString()
{
return m_FriendsGroupID.ToString();
}
public override bool Equals(object other)
{
if (other is FriendsGroupID_t)
{
return this == (FriendsGroupID_t)other;
}
return false;
}
public override int GetHashCode()
{
return m_FriendsGroupID.GetHashCode();
}
public static bool operator ==(FriendsGroupID_t x, FriendsGroupID_t y)
{
return x.m_FriendsGroupID == y.m_FriendsGroupID;
}
public static bool operator !=(FriendsGroupID_t x, FriendsGroupID_t y)
{
return !(x == y);
}
public static explicit operator FriendsGroupID_t(short value)
{
return new FriendsGroupID_t(value);
}
public static explicit operator short(FriendsGroupID_t that)
{
return that.m_FriendsGroupID;
}
public bool Equals(FriendsGroupID_t other)
{
return m_FriendsGroupID == other.m_FriendsGroupID;
}
public int CompareTo(FriendsGroupID_t other)
{
return m_FriendsGroupID.CompareTo(other.m_FriendsGroupID);
}
}
|