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