docs.unity.cn
    Show / Hide Table of Contents

    Class TransactionExchangeDefinition

    Describes the changes of a transaction definition. As a payout, those changes are added. As a cost, those changes are removed.

    Inheritance
    Object
    TransactionExchangeDefinition
    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 TDefinition

    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 index.

    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 true, it clears the target collection before populating.

    Returns
    Type Description
    Int32

    The number of ExchangeDefinition entries found.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 16 June 2021