Class TransactionExchangeDefinition
Describes the changes of a transaction definition. As a payout, those changes are added. As a cost, those changes are removed.
Namespace: UnityEngine.GameFoundation
Syntax
public sealed class TransactionExchangeDefinition
Methods
GetDefinitionCount<TDefinition>()
Gets the number of ExchangeDefinition trading a definition of the given
TDefinition
.
Declaration
public long GetDefinitionCount<TDefinition>()
where TDefinition : TradableDefinition
Returns
Type | Description |
---|---|
Int64 | The number of ExchangeDefinition trading a definition of the given
|
Type Parameters
Name | Description |
---|---|
TDefinition | The filter. |
GetExchange(Int32)
Gets an ExchangeDefinition instance by its index
within this
TransactionExchangeDefinition instance.
Declaration
public ExchangeDefinition GetExchange(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index of the ExchangeDefinition instance to retrieve. |
Returns
Type | Description |
---|---|
ExchangeDefinition | The ExchangeDefinition instance at the given |
GetExchanges(ICollection<ExchangeDefinition>, Boolean)
Gets the ExchangeDefinition entries of this TransactionExchangeDefinition instance.
Declaration
public int GetExchanges(ICollection<ExchangeDefinition> target = null, bool clearTarget = true)
Parameters
Type | Name | Description |
---|---|---|
ICollection<ExchangeDefinition> | target | The target collection the ExchangeDefinition entries are copied to. |
Boolean | clearTarget | If |
Returns
Type | Description |
---|---|
Int32 | The number of ExchangeDefinition entries found. |