Method ResetToDefaultValue
ResetToDefaultValue(GameItem, StatDefinition)
Reset Stat to the correct default value.
Declaration
public static StatValue ResetToDefaultValue(GameItem gameItem, StatDefinition statDefinition)
Parameters
Type | Name | Description |
---|---|---|
Game |
gameItem | GameItem to reset to default value. |
Stat |
statDefinition | StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
Stat |
Default value of specified StatDefinition on specified GameItem. |
Exceptions
Type | Condition |
---|---|
Argument |
If the gameItem argument is null. |
Argument |
If the statDefinition argument is null. |
Stat |
If the StatDefinition is not found. |
Invalid |
If the StatValueType doesn't match StatDefinition. |
Detail |
If the StatDetail is not found on GameItem. |
ResetToDefaultValue(GameItem, string)
Reset Stat to the correct default value.
Declaration
public static StatValue ResetToDefaultValue(GameItem gameItem, string statDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
Game |
gameItem | GameItem upon which Stat is to be reset. |
string | statDefinitionId | Id of StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
Stat |
Default value of 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. |
Invalid |
If the StatValueType doesn't match StatDefinition. |
Detail |
If the StatDetail is not found on GameItem. |
ResetToDefaultValue(string, StatDefinition)
Reset Stat to the correct default value.
Declaration
public static StatValue ResetToDefaultValue(string gameItemId, StatDefinition statDefinition)
Parameters
Type | Name | Description |
---|---|---|
string | gameItemId | GameItem upon which StatManager is to reset stat value. |
Stat |
statDefinition | StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
Stat |
Default value of specified StatDefinition on specified GameItem. |
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. |
Stat |
If the StatDefinition is not found. |
Invalid |
If the StatValueType doesn't match StatDefinition. |
Detail |
If the StatDetail is not found on GameItem. |
ResetToDefaultValue(string, string)
Reset Stat to the correct default value.
Declaration
public static StatValue ResetToDefaultValue(string gameItemId, string statDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
string | gameItemId | GameItem upon which StatManager is to reset stat value. |
string | statDefinitionId | Id of StatDefinition this method is to act upon. |
Returns
Type | Description |
---|---|
Stat |
Default value of 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. |
Invalid |
If the StatValueType doesn't match StatDefinition. |
Detail |
If the StatDetail is not found on GameItem. |