Method SetStatInt
SetStatInt(string, int)
Sets the Int Stat with corresponding stateDefinitionId to value.
Declaration
public void SetStatInt(string statDefinitionId, int value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | statDefinitionId | Int Stat statDefinitionId to set |
| int | value | value to set stat to |
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | The parameter doesn't exist in the stats catalog |
| InvalidOperationException | The parameter refers to a stat of a different type |
| ArgumentNullException | The parameter is null or empty |
SetStatInt(int, int)
Sets the Int Stat with corresponding statDefinitionHash to value.
Declaration
public void SetStatInt(int statDefinitionHash, int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | statDefinitionHash | Int Stat statDefinitionHash to set |
| int | value | value to set stat to |
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | The parameter doesn't exist in the stats catalog |
| InvalidOperationException | The parameter refers to a stat of a different type |