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