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 |
---|---|
Game |
Constructor for a GameItem. |
Properties
Name | Description |
---|---|
categories | An array of all CategoryDefinitions assigned to this GameItem. |
definition | The GameItemDefinition for this GameItem. |
display |
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 |
---|---|
Add |
This will add a Detail of the specified type to this GameItem. |
Discard() | |
~Game |
|
Get |
This will return a reference to the requested Detail by type. |
Get |
Returns an array of all details attached to this game item. |
Get |
Gets the Float Stat for the input statDefinitionHash |
Get |
Gets the Float Stat for the input statDefinitionId |
Get |
Gets the Int Stat for the input statDefinitionHash |
Get |
Gets the Int Stat for the input statDefinitionId |
Remove |
This will remove the requested Detail (by Detail type) from this GameItem. |
Set |
Sets the Float Stat with corresponding statDefinitionHash to value. |
Set |
Sets the Float Stat with corresponding stateDefinitionId to value. |
Set |
Sets the Int Stat with corresponding statDefinitionHash to value. |
Set |
Sets the Int Stat with corresponding stateDefinitionId to value. |