Class GameItemDefinition
Base class for both BaseItemDefinition and BaseCollectionDefinition. Holds Id, display name, DetailDefinitions etc.
Namespace: UnityEngine.GameFoundation
Assembly: solution.dll
Syntax
public class GameItemDefinition
Properties
| Name | Description |
|---|---|
| displayName | The readable name of this GameItemDefinition for displaying to users. |
| hash | The Hash of this GameItemDefinition's Id. |
| id | The string Id of this GameItemDefinition. |
| referenceDefinition | The reference GameItemDefinition for this GameItemDefinition. |
Methods
| Name | Description |
|---|---|
| GetCategories() | Returns an array of all categories on this game item definition. |
| GetCategories(List<CategoryDefinition>) | Fills the given list with all categories on this game item definition. Will clear any existing values from the list before adding new ones. |
| GetCategoryDefinition(int) | Gets a CategoryDefinition from this GameItemDefinition categories with the following Hash |
| GetDetailDefinition<T>(bool) | This will return a reference to the requested DetailDefinition by type. |
| GetDetailDefinitions() | Returns an array of all detail definitions on this game item definition. |
| HasCategoryDefinition(CategoryDefinition) | Checks whether or not the given CategoryDefinition is within this GameItemDefinition. |