Method ResetStat
ResetStat(StatDefinition)
Resets the stat to the default value of its given definition.
Declaration
public StatValue ResetStat(StatDefinition statDefinition)
Parameters
| Type | Name | Description |
|---|---|---|
| StatDefinition | statDefinition | The StatDefinition to reset for this GameItem instance. |
Returns
| Type | Description |
|---|---|
| StatValue |
|
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | If this GameItem has been discarded |
| ArgumentNullException | If the
|
ResetStat(string)
Resets the stat to the default value of its given definition.
Declaration
public StatValue ResetStat(string statDefinitionId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | statDefinitionId | The identifier of the StatDefinition to reset for this GameItem instance. |
Returns
| Type | Description |
|---|---|
| StatValue |
|
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | If this GameItem has been discarded |
| ArgumentNullException | If the
|