Class GameItemDefinition
Base class for both BaseItemDefinition and BaseCollectionDefinition. Holds Id, dsplay name, etc., and allows DetailDefinitions to be attached as needed.
Implements
Inherited Members
Namespace: UnityEngine .GameFoundation
Assembly: solution.dll
Syntax
public class GameItemDefinition : ScriptableObject, ISerializationCallbackReceiver
Properties
Name | Description |
---|---|
categories | List of Category hashes assigned to this Game Item Definition |
display |
The name of this GameItemDefinition for the user to display. |
hash | The Hash of this GameItemDefinition's Id. |
id | The string Id of this GameItemDefinition. |
reference |
The reference GameItemDefinition for this GameItemDefinition. |
Methods
Name | Description |
---|---|
Add |
Adds the given Categories to this GameItemDefinition by list. |
Add |
Adds the given Category to this GameItemDefinition. |
Add |
This will add a DetailDefinition of specified type to this GameItemDefinition. |
Create(string, string) | Creates a new GameItemDefinition by Id and displayName. |
Get |
Returns an array of all categories on this game item definition. |
Get |
Fills the given list with all categories on this game item definition. |
Get |
Gets a CategoryDefinition from this GameItemDefinition categories with the following Hash |
Get |
This will return a reference to the requested DetailDefinition by type. |
Get |
Returns an array of all detail definitions on this game item definition. |
Has |
Checks whether or not the given CategoryDefinition is within this GameItemDefinition. |
Initialize(string, string) | Sets up this game item definition with the given info. |
On |
Called after serialization, this will pull out the DetailDefinition keys and values from the lists and store them into the main dictionary. |
On |
Called before serialization, this will copy over all keys and values from the DetailDefinitions dictionary into their serializable lists. |
Remove |
Removes the given Category from this GameItemDefinition. |
Remove |
Remove the requested DetailDefinition by type from this GameItemDefinition. |