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