Class GameFoundationDatabase
This consolidates all catalogs into one asset.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.GameFoundation.CatalogManagement
Syntax
public class GameFoundationDatabase : ScriptableObject, ICatalogConfigurator
Properties
currencyCatalog
A reference to an Currency catalog
Declaration
public CurrencyCatalogAsset currencyCatalog { get; }
Property Value
Type | Description |
---|---|
CurrencyCatalogAsset |
inventoryCatalog
A reference to an inventory catalog
Declaration
public InventoryCatalogAsset inventoryCatalog { get; }
Property Value
Type | Description |
---|---|
InventoryCatalogAsset |
statCatalog
A reference to a stat catalog
Declaration
public StatCatalogAsset statCatalog { get; }
Property Value
Type | Description |
---|---|
StatCatalogAsset |
storeCatalog
A reference to an Store catalog
Declaration
public StoreCatalogAsset storeCatalog { get; }
Property Value
Type | Description |
---|---|
StoreCatalogAsset |
transactionCatalog
A reference to an Transaction catalog
Declaration
public TransactionCatalogAsset transactionCatalog { get; }
Property Value
Type | Description |
---|---|
TransactionCatalogAsset |
Methods
Awake()
Verifies the catalogs.
Declaration
protected void Awake()
CreateDefaultData()
Creates a default data structure for a new player.
Declaration
public GameFoundationSerializableData CreateDefaultData()
Returns
Type | Description |
---|---|
GameFoundationSerializableData |
Explicit Interface Implementations
ICatalogConfigurator.Configure(CatalogBuilder)
Configures the specified builder
with the content
of this provider.
Declaration
void ICatalogConfigurator.Configure(CatalogBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
CatalogBuilder | builder | The target builder. |