Class GameItem
Common Fields found in BaseItem and BaseCollection. BaseItem and BaseCollection both inherit from this class.
Namespace: UnityEngine.GameFoundation
Assembly: solution.dll
Syntax
public class GameItem
Constructors
Name | Description |
---|---|
GameItem(GameItemDefinition, string) | Constructor for a GameItem. |
Properties
Name | Description |
---|---|
categories | An array of all CategoryDefinitions assigned to this GameItem. |
definition | The GameItemDefinition for this GameItem. |
displayName | The name of this GameItem for the user to display. |
hash | The Hash of this GameItem's Id. |
id | The string Id of this GameItem. |
Methods
Name | Description |
---|---|
AddDetail<T>() | This will add a Detail of the specified type to this GameItem. |
~GameItem() | |
GetDetail<T>() | This will return a reference to the requested Detail by type. |
GetDetails() | Returns an array of all details attached to this game item. |
GetStatFloat(int) | Gets the Float Stat for the input statDefinitionHash |
GetStatFloat(string) | Gets the Float Stat for the input statDefinitionId |
GetStatInt(int) | Gets the Int Stat for the input statDefinitionHash |
GetStatInt(string) | Gets the Int Stat for the input statDefinitionId |
RemoveDetail<T>() | This will remove the requested Detail (by Detail type) from this GameItem. |
SetStatFloat(int, float) | Sets the Float Stat with corresponding statDefinitionHash to value. |
SetStatFloat(string, float) | Sets the Float Stat with corresponding stateDefinitionId to value. |
SetStatInt(int, int) | Sets the Int Stat with corresponding statDefinitionHash to value. |
SetStatInt(string, int) | Sets the Int Stat with corresponding stateDefinitionId to value. |