10#ifndef SCRIPT_SUSPEND_HPP
11#define SCRIPT_SUSPEND_HPP
Runtime information about a script like a pointer to the squirrel vm and the current state.
SQObject * instance
Squirrel-pointer to the script main class.
A throw-class that is given when the script wants to suspend.
Script_SuspendCallbackProc * callback
Callback function to call when the script can run again.
int time
Amount of ticks to suspend the script.
int GetSuspendTime()
Get the amount of ticks the script should be suspended.
Script_SuspendCallbackProc * GetSuspendCallback()
Get the callback to call when the script can run again.
Script_Suspend(int time, Script_SuspendCallbackProc *callback)
Create the suspend exception.
void() Script_SuspendCallbackProc(class ScriptInstance *instance)
The callback function when a script suspends.