Class ExchangeDefinition
Namespace: UnityEngine.GameFoundation
Syntax
public class ExchangeDefinition : IEquatable<ExchangeDefinition>
Properties
amount
The amount of the tradableDefinition. As a payout, the amount is added to its respective container (inventory for InventoryItem or wallet for Currency). As a cost, the amount is removed from its respective container.
Declaration
public long amount { get; }
Property Value
Type | Description |
---|---|
Int64 |
tradableDefinition
The tradable of the exchange.
Declaration
public TradableDefinition tradableDefinition { get; }
Property Value
Type | Description |
---|---|
TradableDefinition |
Methods
Equals(Object)
Tells whether this ExchangeDefinition instance equals obj
.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The other object to compare this instance with. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
Equals(ExchangeDefinition)
Declaration
public bool Equals(ExchangeDefinition other)
Parameters
Type | Name | Description |
---|---|---|
ExchangeDefinition | other |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Gets the hash code of this ExchangeDefinition.
Returns the hash code of its
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of this ExchangeDefinition. |