Method HasValue
HasValue(GameItem, StatDefinition)
Determines if specified GameItem has a value for the specified StatDefinition.
Declaration
public static bool HasValue(GameItem gameItem, StatDefinition statDefinition)
Parameters
Type | Name | Description |
---|---|---|
Game |
gameItem | The GameItem to check for a stat. |
Stat |
statDefinition | StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
bool | True if the specified GameItem has a value for the specified StatDefinition. |
Exceptions
Type | Condition |
---|---|
Argument |
If the gameItem argument is null. |
Argument |
If the statDefinition argument is null. |
Detail |
If the StatDetail is not found. |
Stat |
If the StatDefinition is not found. |
HasValue(GameItem, string)
Determines if specified GameItem has a value for the specified StatDefinition.
Declaration
public static bool HasValue(GameItem gameItem, string statDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
Game |
gameItem | The GameItem to check for a stat. |
string | statDefinitionId | Id of StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
bool | True if the specified GameItem has a value for the specified StatDefinition. |
Exceptions
Type | Condition |
---|---|
Argument |
If the gameItem argument is null. |
Argument |
If the statDefinitionId is null or empty. |
Detail |
If the StatDetail is not found. |
Stat |
If the StatDefinition is not found. |
HasValue(string, StatDefinition)
Determines if specified GameItem has a value for the specified StatDefinition.
Declaration
public static bool HasValue(string gameItemId, StatDefinition statDefinition)
Parameters
Type | Name | Description |
---|---|---|
string | gameItemId | GameItem upon which StatManager is to check for stat. |
Stat |
statDefinition | StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
bool | True if the specified GameItem has a value for the specified StatDefinition. |
Exceptions
Type | Condition |
---|---|
Argument |
If the statDefinition argument is null. |
Argument |
If the gameItemId is null or empty. |
Inventory |
If the gameItemId is not found. |
Detail |
If the StatDetail is not found. |
Stat |
If the StatDefinition is not found. |
HasValue(string, string)
Determines if specified GameItem has a value for the specified StatDefinition.
Declaration
public static bool HasValue(string gameItemId, string statDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
string | gameItemId | GameItem upon which StatManager is to check for stat. |
string | statDefinitionId | Id of StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
bool | True if specified GameItem has specified Stat. |
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. |
Detail |
If the StatDetail is not found. |
Stat |
If the StatDefinition is not found. |