Method SetStat
SetStat(StatDefinition, StatValue)
Sets the value of the given statDefinition
for this GameItem instance.
Declaration
public void SetStat(StatDefinition statDefinition, StatValue value)
Parameters
Type | Name | Description |
---|---|---|
StatDefinition | statDefinition | The StatDefinition to set a value for this GameItem instance. |
StatValue | value | The value to assign to the
|
Exceptions
Type | Condition |
---|---|
NullReferenceException | If this GameItem instance has been discarded. |
ArgumentNullException | If the
|
SetStat(string, StatValue)
Sets the value of the StatDefinition by its given
statDefinitionId
for this
GameItem instance.
Declaration
public void SetStat(string statDefinitionId, StatValue value)
Parameters
Type | Name | Description |
---|---|---|
string | statDefinitionId | Identifier of the StatDefinition to set a value to. |
StatValue | value | The value to assign to the StatDefinition entry of this GameItem instance. |
Exceptions
Type | Condition |
---|---|
NullReferenceException | If this GameItem instance has been discarded. |
ArgumentNullException | If the
|