StatIdentity
Defines an identity of a stat and sets basic rules for it.
Properties
Name | Description | Type |
---|---|---|
name | The name of the stat. | string |
abbreviation | The abbreviation of the stat name. | string |
type | The type of this stat. | Stat.StatType |
hasMin | If this stat has a min value. | bool |
hasMax | If this stat has a max value. | bool |
minValue | The minimum value the stat can possibly decrease to. | float |
maxValue | The maximum value the stat can possibly increase to. | float |
Methods
Clamp
Return Type: float
Clamps a given value between the min and max values of the stat identity. Returns the clamped value.
Name | Description | Type |
---|---|---|
value | The value to clamp. | float |
Last updated