static */
| 32 | } |
| 33 | |
| 34 | /* static */ void ScriptController::Sleep(int ticks) |
| 35 | { |
| 36 | if (!ScriptObject::CanSuspend()) { |
| 37 | throw Script_FatalError("You are not allowed to call Sleep in your constructor, Save(), Load(), and any valuator."); |
| 38 | } |
| 39 | |
| 40 | if (ticks <= 0) { |
| 41 | ScriptLog::Warning("Sleep() value should be > 0. Assuming value 1."); |
| 42 | ticks = 1; |
| 43 | } |
| 44 | |
| 45 | throw Script_Suspend(ticks, nullptr); |
| 46 | } |
| 47 | |
| 48 | /* static */ void ScriptController::Break(const std::string &message) |
| 49 | { |
nothing calls this directly
no test coverage detected