docs.unity.cn
    Show / Hide Table of Contents

    Class BaseTransactionConfig<TTransaction>

    Base configurator for a BaseTransaction instance.

    Inheritance
    Object
    CatalogItemConfig
    CatalogItemConfig<TTransaction>
    BaseTransactionConfig<TTransaction>
    IAPTransactionConfig
    VirtualTransactionConfig
    Inherited Members
    CatalogItemConfig<TTransaction>.CompileGeneric()
    CatalogItemConfig<TTransaction>.LinkGeneric(CatalogItem, Dictionary<String, CatalogItem>)
    CatalogItemConfig<TTransaction>.Compile()
    CatalogItemConfig<TTransaction>.Link(TTransaction, Dictionary<String, CatalogItem>)
    CatalogItemConfig<TTransaction>.DoRequireDisplayName()
    CatalogItemConfig.key
    CatalogItemConfig.displayName
    CatalogItemConfig.tags
    CatalogItemConfig.staticProperties
    Namespace: UnityEngine.GameFoundation.Configs
    Syntax
    public abstract class BaseTransactionConfig<TTransaction> : CatalogItemConfig<TTransaction>, IBuildable<TTransaction> where TTransaction : BaseTransaction
    Type Parameters
    Name Description
    TTransaction

    The type of the configurable BaseTransaction

    Fields

    payout

    The configurator of the payout.

    Declaration
    public TransactionExchangeDefinitionConfig payout
    Field Value
    Type Description
    TransactionExchangeDefinitionConfig

    Methods

    CompileItem(Rejectable)

    Create a new TRuntimeObject.

    Declaration
    protected override TTransaction CompileItem(Rejectable rejectable)
    Parameters
    Type Name Description
    Rejectable rejectable
    Returns
    Type Description
    TTransaction

    Return a promise handle to report how the operation went. The handle's result is the compiled item if the compilation was successful.

    Overrides
    UnityEngine.GameFoundation.Configs.CatalogItemConfig<TTransaction>.CompileItem(UnityEngine.Promise.Rejectable)

    CompileTransaction(Rejectable)

    Create a new TRuntimeObject.

    Declaration
    protected abstract TTransaction CompileTransaction(Rejectable rejectable)
    Parameters
    Type Name Description
    Rejectable rejectable
    Returns
    Type Description
    TTransaction

    Return a promise handle to report how the operation went. The handle's result is the compiled item if the compilation was successful.

    LinkItem(TTransaction, Dictionary<String, CatalogItem>, Rejectable)

    Resolves the references from the given runtimeObject using the given compiledItems.

    Declaration
    protected override void LinkItem(TTransaction runtimeObject, Dictionary<string, CatalogItem> compiledItems, Rejectable rejectable)
    Parameters
    Type Name Description
    TTransaction runtimeObject
    Dictionary<String, CatalogItem> compiledItems
    Rejectable rejectable
    Overrides
    UnityEngine.GameFoundation.Configs.CatalogItemConfig<TTransaction>.LinkItem(TTransaction, System.Collections.Generic.Dictionary<System.String, UnityEngine.GameFoundation.CatalogItem>, UnityEngine.Promise.Rejectable)

    LinkTransaction(TTransaction, Dictionary<String, CatalogItem>, Rejectable)

    Resolves the references from the given runtimeObject using the given compiledItems.

    Declaration
    protected virtual void LinkTransaction(TTransaction runtimeObject, Dictionary<string, CatalogItem> compiledItems, Rejectable rejectable)
    Parameters
    Type Name Description
    TTransaction runtimeObject
    Dictionary<String, CatalogItem> compiledItems
    Rejectable rejectable
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 16 June 2021