ODStat class
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This is an Open Ticket statistic.
This single statistic doesn't do anything except defining the rules of this statistic. Use it in a stats scope to register a new statistic. A statistic can also include a priority to choose the render priority.
It's recommended to use the ODBasicStat & ODDynamicStat classes instead of this one!
Methods
Properties
inherited id class ➜ api.ODId
The id of this data.
priority number ➜ number
The priority of this statistic.
render type ➜ api.ODStatRenderer
The render function of this statistic.
value type ➜ null|api.ODValidStatValue
The value of this statistic.
Methods
constructor() function ➜ api.ODStat
(no description)
View Parameters (4)
id: type ➜api.ODValidId- Parameter Description Lorem Ipsum.priority: number ➜number- Parameter Description Lorem Ipsum.render: type ➜api.ODStatRenderer- Parameter Description Lorem Ipsum.value: type ➜api.ODValidStatValue- Parameter Description Lorem Ipsum.
inherited protected _change() function ➜ void
Trigger an onChange() event in the parent ODManager of this class.
inherited changed() function ➜ void
(❌ SYSTEM ONLY!!) Set the callback executed when a value inside this class changes.
Defaults
We're still working on this part of the documentation!
Examples
We're still working on this part of the documentation!