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. |
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. |
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. |
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. |
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. |