Class BaseTransactionAsset<TTransaction, TConfig>
Base asset to contain BaseTransaction data.
Inheritance
Inherited Members
Namespace: UnityEngine.GameFoundation.DefaultCatalog
Syntax
public abstract class BaseTransactionAsset<TTransaction, TConfig> : BaseTransactionAsset, ISerializationCallbackReceiver where TTransaction : BaseTransaction where TConfig : BaseTransactionConfig<TTransaction>
Type Parameters
Name | Description |
---|---|
TTransaction | The type of BaseTransaction data contained by this asset. |
TConfig | The type of BaseTransactionConfig<TTransaction> created by this asset. |
Methods
ConfigureItem(CatalogBuilder, IExternalValueProvider)
Configures a specified builder
with the specifics
of this item.
Declaration
protected override sealed CatalogItemConfig ConfigureItem(CatalogBuilder builder, IExternalValueProvider valueProvider)
Parameters
Type | Name | Description |
---|---|---|
CatalogBuilder | builder | The target builder. |
IExternalValueProvider | valueProvider | A value provider to override some catalog item's data with an external source. |
Returns
Type | Description |
---|---|
CatalogItemConfig | The item config. |
Overrides
ConfigureTransaction(CatalogBuilder, IExternalValueProvider)
Configures the specified builder
with the specific content of this transaction.
Declaration
protected abstract TConfig ConfigureTransaction(CatalogBuilder builder, IExternalValueProvider valueProvider)
Parameters
Type | Name | Description |
---|---|---|
CatalogBuilder | builder | The target builder. |
IExternalValueProvider | valueProvider | A value provider to override some catalog item's data with an external source when configuring them. |
Returns
Type | Description |
---|---|
TConfig | The config object. |