Struct HSteamUser
Wraps the Steamworks HSteamUser handle, a int.
Inherited Members
Namespace: Unity.Steamworks.Interop
Assembly: Unity.Steamworks.Interop.dll
Syntax
[Serializable]
public struct HSteamUser : IEquatable<HSteamUser>, IComparable<HSteamUser>
Constructors
HSteamUser(int)
Initializes a new HSteamUser from its underlying value.
Declaration
public HSteamUser(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The underlying |
Fields
m_HSteamUser
The underlying int value.
Declaration
public int m_HSteamUser
Field Value
| Type | Description |
|---|---|
| int |
Methods
CompareTo(HSteamUser)
Orders this value against other by their underlying values.
Declaration
public int CompareTo(HSteamUser other)
Parameters
| Type | Name | Description |
|---|---|---|
| HSteamUser | other | The value to compare against. |
Returns
| Type | Description |
|---|---|
| int | Negative, zero or positive as this value sorts before, with or after |
Equals(object)
Returns true when other is a HSteamUser with the same value.
Declaration
public override bool Equals(object other)
Parameters
| Type | Name | Description |
|---|---|---|
| object | other | The object to compare against. |
Returns
| Type | Description |
|---|---|
| bool | true when |
Overrides
Equals(HSteamUser)
Returns true when this value equals other.
Declaration
public bool Equals(HSteamUser other)
Parameters
| Type | Name | Description |
|---|---|---|
| HSteamUser | other | The value to compare against. |
Returns
| Type | Description |
|---|---|
| bool | true when both hold the same underlying value. |
GetHashCode()
Returns the hash code of the underlying value.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The underlying value's hash code. |
Overrides
ToString()
Returns the underlying value as a string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The underlying value formatted by its own |
Overrides
Operators
operator ==(HSteamUser, HSteamUser)
Returns true when both operands hold the same value.
Declaration
public static bool operator ==(HSteamUser x, HSteamUser y)
Parameters
| Type | Name | Description |
|---|---|---|
| HSteamUser | x | The first value to compare. |
| HSteamUser | y | The second value to compare. |
Returns
| Type | Description |
|---|---|
| bool | true when the two hold the same underlying value. |
explicit operator HSteamUser(int)
Converts a int to a HSteamUser. Explicit, so two handle types cannot convert into each other through the type they share.
Declaration
public static explicit operator HSteamUser(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The underlying |
Returns
| Type | Description |
|---|---|
| HSteamUser | A |
explicit operator int(HSteamUser)
Converts a HSteamUser to its underlying int.
Declaration
public static explicit operator int(HSteamUser that)
Parameters
| Type | Name | Description |
|---|---|---|
| HSteamUser | that | The handle to unwrap. |
Returns
| Type | Description |
|---|---|
| int | The underlying |
operator !=(HSteamUser, HSteamUser)
Returns true when the operands hold different values.
Declaration
public static bool operator !=(HSteamUser x, HSteamUser y)
Parameters
| Type | Name | Description |
|---|---|---|
| HSteamUser | x | The first value to compare. |
| HSteamUser | y | The second value to compare. |
Returns
| Type | Description |
|---|---|
| bool | true when the two hold different underlying values. |