OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
10 #ifndef SCRIPT_SUSPEND_HPP
11 #define SCRIPT_SUSPEND_HPP
A throw-class that is given when the script wants to suspend.
Script_Suspend(int time, Script_SuspendCallbackProc *callback)
Create the suspend exception.
int GetSuspendTime()
Get the amount of ticks the script should be suspended.
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.
void() Script_SuspendCallbackProc(class ScriptInstance *instance)
The callback function when a script suspends.
int time
Amount of ticks to suspend the script.
Script_SuspendCallbackProc * GetSuspendCallback()
Get the callback to call when the script can run again.
Script_SuspendCallbackProc * callback
Callback function to call when the script can run again.