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. |
discarded | Determine if GameItem has been discarded (removed from inventory or inventory manager). |
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. |
Adjust |
Sets the float Stat with corresponding statDefinitionHash by specified amount. |
Adjust |
Adjusts the float Stat with corresponding statDefinitionId by specified amount. |
Adjust |
Adjusts the int Stat with corresponding statDefinitionHash by specified amount. |
Adjust |
Adjusts the int Stat with corresponding statDefinitionId by specified amount. |
Custom |
Override this method if you need to execute a specific action at discard time. |
~Game |
in finalizer, remove gameItem from gameItem instance lookup |
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 |
Log |
|
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 statDefinitionId to value. |
Set |
Sets the Int Stat with corresponding statDefinitionHash to value. |
Set |
Sets the Int Stat with corresponding statDefinitionId to value. |