Class GameItemCatalog
A Catalog for all GameItemDefinitions.
Inherited Members
Namespace: UnityEngine .GameFoundation
Assembly: solution.dll
Syntax
public class GameItemCatalog : ScriptableObject
Properties
Name | Description |
---|---|
categories | A dictionary of all CategoryDefinitions. |
definitions | A dictionary of all GameItemDefinitions. |
Methods
Name | Description |
---|---|
Add |
Adds the given Category to this GameItemCatalog. |
Add |
Adds the given GameItemDefinition to this GameItemCatalog. |
Create() | Simple factory method for creating an empty GameItemCatalog. |
Get |
Returns the categories in this catalog in an array. |
Get |
Fills the given list with all categories found in this catalog. Note: this returns the current state of categories. To ensure that there are no invalid or duplicate entries, the 'categories' list will always be cleared and 'recycled' (i.e. updated) with current data from the catalog. |
Get |
Returns specified CategoryDefinition by its Hash. |
Get |
Returns specified Category by CategoryDefinition Hash. |
Get |
This will return an array of GameItemDefinitions with the designated Category. |
Get |
Fills the given list with the GameItemDefinitions that have the designated category. Note: this returns the current state of game item definitions. To ensure that there are no invalid or duplicate entries, the 'gameItemDefinitions' list will always be cleared and 'recycled' (i.e. updated) with current data from the catalog. |
Get |
This will return an array of GameItemDefinitions with the designated Category. |
Get |
Fills the given list with the GameItemDefinitions that have the designated category. Note: this returns the current state of game item definitions. To ensure that there are no invalid or duplicate entries, the 'gameItemDefinitions' list will always be cleared and 'recycled' (i.e. updated) with current data from the catalog. |
Get |
Return specified GameItemDefinition by Hash. |
Get |
Return specified GameItemDefinition by GameItemDefinition id string. |
Get |
Returns an array of all game item definitions in this catalog. |
Get |
Fills the given array with all game item definitions in this catalog. Note: this returns the current state of game item definitions. To ensure that there are no invalid or duplicate entries, the 'gameItemDefinitions' list will always be cleared and 'recycled' (i.e. updated) with current data from the catalog. |
Is |
Check if the given Hash is not yet included in this GameItemCatalog's list of GameItemDefinitions and is available for use. |
Remove |
Removes the given Category from this GameItemCatalog. |
Remove |
Removes the given GameItemDefinition from this GameItemCatalog. |