Class InventoryDefinition
Describes preset values and rules for an Inventory. During runtime, it may be useful to refer back to the InventoryDefinition for the presets and rules, but the values cannot be changed at runtime. The InventoryDefinition is also responsible for creating Inventories based on preset properties.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine .GameFoundation
Assembly: solution.dll
Syntax
public class InventoryDefinition : BaseCollectionDefinition<InventoryDefinition, Inventory, InventoryItemDefinition, InventoryItem>, ISerializationCallbackReceiver
Methods
Name | Description |
---|---|
Add |
Adds the given default item to this InventoryDefinition. Note: this thows if item without a CurrencyDetailDefinition is added to the wallet. |
Add |
Adds the given default item to this InventoryDefinition. Note: this thows if item without a CurrencyDetailDefinition is added to the wallet. |
Create(string, string) | This creates a new InventoryDefinition. |
To |
Returns a summary string for this InventoryDefinition. |