Class StoreAsset
Description of a virtual store. A store exposes a list of BaseTransactionAsset.
Inherited Members
Namespace: UnityEngine.GameFoundation.DefaultCatalog
Syntax
public sealed class StoreAsset : CatalogItemAsset, ISerializationCallbackReceiver
Methods
AwakeDefinition()
Initializes the store items collection.
Declaration
protected override void AwakeDefinition()
Overrides
ConfigureItem(CatalogBuilder, IExternalValueProvider)
Configures a specified builder
with the specifics
of this item.
Declaration
protected override 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
Contains(BaseTransactionAsset)
Tells whether or not the store contains the given transaction
.
Declaration
public bool Contains(BaseTransactionAsset transaction)
Parameters
Type | Name | Description |
---|---|---|
BaseTransactionAsset | transaction | The BaseTransactionAsset to find. |
Returns
Type | Description |
---|---|
Boolean |
|
GetStoreItems(ICollection<StoreItemObject>, Boolean)
Adds all the StoreItemObject to the given target
.
Declaration
public int GetStoreItems(ICollection<StoreItemObject> target = null, bool clearTarget = true)
Parameters
Type | Name | Description |
---|---|---|
ICollection<StoreItemObject> | target | The target collection where the StoreItemObject are added. |
Boolean | clearTarget | If |
Returns
Type | Description |
---|---|
Int32 | The number of StoreItemObject added. |