Struct SteamNetworkingPOPID
Wraps the Steamworks SteamNetworkingPOPID handle, a uint.
Inherited Members
Namespace: Unity.Steamworks.Interop
Assembly: Unity.Steamworks.Interop.dll
Syntax
[Serializable]
public struct SteamNetworkingPOPID : IEquatable<SteamNetworkingPOPID>, IComparable<SteamNetworkingPOPID>
Constructors
SteamNetworkingPOPID(uint)
Initializes a new SteamNetworkingPOPID from its underlying value.
Declaration
public SteamNetworkingPOPID(uint value)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | value | The underlying |
Fields
m_SteamNetworkingPOPID
The underlying uint value.
Declaration
public uint m_SteamNetworkingPOPID
Field Value
| Type | Description |
|---|---|
| uint |
Methods
CompareTo(SteamNetworkingPOPID)
Orders this value against other by their underlying values.
Declaration
public int CompareTo(SteamNetworkingPOPID other)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamNetworkingPOPID | 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 SteamNetworkingPOPID 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(SteamNetworkingPOPID)
Returns true when this value equals other.
Declaration
public bool Equals(SteamNetworkingPOPID other)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamNetworkingPOPID | 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 ==(SteamNetworkingPOPID, SteamNetworkingPOPID)
Returns true when both operands hold the same value.
Declaration
public static bool operator ==(SteamNetworkingPOPID x, SteamNetworkingPOPID y)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamNetworkingPOPID | x | The first value to compare. |
| SteamNetworkingPOPID | y | The second value to compare. |
Returns
| Type | Description |
|---|---|
| bool | true when the two hold the same underlying value. |
explicit operator SteamNetworkingPOPID(uint)
Converts a uint to a SteamNetworkingPOPID. Explicit, so two handle types cannot convert into each other through the type they share.
Declaration
public static explicit operator SteamNetworkingPOPID(uint value)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | value | The underlying |
Returns
| Type | Description |
|---|---|
| SteamNetworkingPOPID | A |
explicit operator uint(SteamNetworkingPOPID)
Converts a SteamNetworkingPOPID to its underlying uint.
Declaration
public static explicit operator uint(SteamNetworkingPOPID that)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamNetworkingPOPID | that | The handle to unwrap. |
Returns
| Type | Description |
|---|---|
| uint | The underlying |
operator !=(SteamNetworkingPOPID, SteamNetworkingPOPID)
Returns true when the operands hold different values.
Declaration
public static bool operator !=(SteamNetworkingPOPID x, SteamNetworkingPOPID y)
Parameters
| Type | Name | Description |
|---|---|---|
| SteamNetworkingPOPID | x | The first value to compare. |
| SteamNetworkingPOPID | y | The second value to compare. |
Returns
| Type | Description |
|---|---|
| bool | true when the two hold different underlying values. |