Method GetValue
GetValue(GameItem, StatDefinition)
Gets specified StatDefinition from specified GameItem.
Declaration
public static StatValue GetValue(GameItem gameItem, StatDefinition statDefinition)
Parameters
Type | Name | Description |
---|---|---|
Game |
gameItem | The GameItem to search for desired StatDefinition. |
Stat |
statDefinition | StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
Stat |
StatValue for specified StatDefinition on specified GameItem. |
Exceptions
Type | Condition |
---|---|
Argument |
If the gameItem argument is null. |
Argument |
If the statDefinition argument is null. |
GetValue(GameItem, string)
Gets specified StatDefinition from specified GameItem.
Declaration
public static StatValue GetValue(GameItem gameItem, string statDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
Game |
gameItem | The GameItem to search for desired StatDefinition. |
string | statDefinitionId | Id of StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
Stat |
StatValue for specified StatDefinition on specified GameItem. |
Exceptions
Type | Condition |
---|---|
Argument |
If the gameItem argument is null. |
Argument |
If the statDefinitionId is null or empty. |
Stat |
If the StatDefinition is not found. |
GetValue(string, StatDefinition)
Gets specified StatDefinition from specified GameItem.
Declaration
public static StatValue GetValue(string gameItemId, StatDefinition statDefinition)
Parameters
Type | Name | Description |
---|---|---|
string | gameItemId | GameItem upon which StatManager is to get the stat. |
Stat |
statDefinition | StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
Stat |
StatValue for specified StatDefinition on specified GameItem. |
Exceptions
Type | Condition |
---|---|
Argument |
If the gameItemId is null or empty. |
Inventory |
If the gameItemId is not found. |
GetValue(string, string)
Gets specified StatDefinition from specified GameItem.
Declaration
public static StatValue GetValue(string gameItemId, string statDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
string | gameItemId | GameItem upon which StatManager is to get the stat. |
string | statDefinitionId | Id of StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
Stat |
StatValue for specified StatDefinition on specified GameItem. |
Exceptions
Type | Condition |
---|---|
Argument |
If the gameItemId is null or empty. |
Inventory |
If the gameItemId is not found. |
Argument |
If the statDefinitionId is null or empty. |
Stat |
If the StatDefinition is not found. |