Namespace UnityEngine.GameFoundation
Classes
AnalyticsDetail
AnalyticsDetail. Attach to a game item to have it automatically get tracked with analytics.
AssetsDetail
BaseCatalog
This is a class for storing elements for a system. Each catalog contains its own list of categories.
BaseDetail
Base
BaseTransaction
This class is the base of the Virtual
CatalogBuilder
The builder of all the runtime static data of Game Foundation. It is given to the data layer so it can configure the data based on its internal data structure, that Game Foundation doesn't need to know.
CatalogItem
Base class for most of the static data in Game Foundation. Game Foundation objects are linked to Category instances available in their catalog.
CatalogManager
Category
Category instance are used as filter arguments when
querying Catalog
Currency
Describes a currency.
CurrencyCatalog
Contains all the available currencies.
GameFoundation
Manage the initialization and the persistence of the Game Foundation systems.
GameFoundationSettings
Game Foundation settings for runtime implementation and serialization.
GameItem
Base class for runtime instances in Game Foundation.
IAPTransaction
Describes the IAP transaction info, and outcome.
InventoryCatalog
Definitions for InventoryItemDefinitions and InventoryDefinitions. The Catalog serves as a way to find references to Definitions, as needed.
InventoryItem
An InventoryItem that goes into an Inventory. InventoryItems should only exist inside Inventories.
InventoryItemDefinition
Preset values and rules for an InventoryItem. During runtime, it may be useful to refer back to the InventoryItemDefinition for the presets and rules, but the values cannot be changed at runtime. InventoryItemDefinitions are also used as factories to create InventoryItems.
InventoryManager
Manages all Inventories. Can subscribe to events relevant to Inventories and create and remove them here. InventoryManager also owns the main and wallet Inventories, as well as all other Inventories of InventoryItems. The InventoryManager can create Inventories from InventoryDefinitions or default Inventories as needed.
JsonData
A container for JSON data using string parsing to avoid reflection.
JsonDetail
Use this detail to store JSON like data.
SingleCollectionCatalog<TItem>
The base class of the catalog storing only one kind of
CatalogTItem
.
Most of the catalogs are single collections at the moment.
StatCatalog
Catalog for Stat
StatDefinition
The definition of a stat, attached to Catalog
StatDetail
Detail definition to establish that item uses certain stats, and also to set default values for those stats.
StatManager
Retrieve and manage all runtime stat data.
Store
Maintains Collection of Base
StoreCatalog
Definitions for StoreDefinitions. The Catalog serves as a way to find references to Definitions, as needed.
TransactionCatalog
Contains all the available transactions.
TransactionExchangeDefinition
Describes the changes of a transaction definition. As a reward, those changes are added. As a cost, those changes are removed.
TransactionManager
This class contains methods to process virtual transactions and in-app purchases.
VirtualTransaction
Describes the Virtual transaction info, and outcome.
WalletManager
Manages the player currency balances.
Structs
CurrencyExchange
Describes the currency change of a Transaction
CurrencyExchangeDefinition
Describes the currency change of a Transaction
ItemExchangeDefinition
Describe the item change of a Transaction
StatValue
This struct standardizes how stat values are serialized.
TransactionCosts
Describes the costs of a transaction process.
TransactionResult
TransactionRewards
Describes the rewards of a transaction process.
Interfaces
ICatalogConfigurator
Contract for objects providing catalogs to the Catalog
IDataAccessLayer
Contract for objects providing data to all Game Foundation's systems (InventoryManager, StatManager, ...).
IDictionaryConvertible
Contract for objects that can be:
- converted to a JSON ready dictionary
- filled by a JSON dictionary
IInventoryDataLayer
Contract for objects providing data to the Inventory
IStatDataLayer
Contract for objects providing data to the Stat
IWalletDataLayer
Contract for objects providing data to the Wallet
Enums
CurrencyType
This better enables identifying and tracking different types of currency in your game.
StatValueType
Enum to specify the type of value stored in this StatDefinition.
TransactionFailureReason
Reasons a Transaction can fail.