Core api
IToolkitScheduler
IToolkitScheduler
IToolkitScheduler
NextFrame(owner, task)
Executes a task on the next frame.
Parameters
- owner PluginId — Plugin the task belongs to
- task std::function<void()>&& — Callback function
Timer* AddTimer(owner, interval, callback, flags)
Adds a timer.
Parameters
- owner PluginId — Plugin the timer belongs to
- interval float — Time in seconds between executions
- callback TimerCallback — Function to execute
- flags int — Timer behavior flags
KillTimer(timer)
Removes a timer.
Parameters
- timer Timer* — Timer instance