|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
A throw-class that is given when the script wants to suspend. More...
#include <script_suspend.hpp>
Public Member Functions | |
| Script_Suspend (int time, Script_SuspendCallbackProc *callback) | |
| Create the suspend exception. | |
| 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. | |
Private Attributes | |
| int | time |
| Amount of ticks to suspend the script. | |
| Script_SuspendCallbackProc * | callback |
| Callback function to call when the script can run again. | |
A throw-class that is given when the script wants to suspend.
Definition at line 21 of file script_suspend.hpp.
|
inline |
|
inline |
Get the callback to call when the script can run again.
Definition at line 43 of file script_suspend.hpp.
References callback.
Referenced by ScriptInstance::GameLoop().
|
inline |
Get the amount of ticks the script should be suspended.
Definition at line 37 of file script_suspend.hpp.
References time.
Referenced by ScriptInstance::GameLoop().
|
private |
Callback function to call when the script can run again.
Definition at line 47 of file script_suspend.hpp.
Referenced by GetSuspendCallback(), and Script_Suspend().
|
private |
Amount of ticks to suspend the script.
Definition at line 46 of file script_suspend.hpp.
Referenced by GetSuspendTime(), and Script_Suspend().