MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Script_IsLoaded

Function Script_IsLoaded

src/script/script.c:298–305  ·  view source on GitHub ↗

* Check if a script is loaded in an engine. If returning true it means that * the engine is actively executing a script. * * @param script The script engine to check on. * @return Returns true if and only if the script engine is actively executing a script. */

Source from the content-addressed store, hash-verified

296 * @return Returns true if and only if the script engine is actively executing a script.
297 */
298bool Script_IsLoaded(ScriptEngine *script)
299{
300 if (script == NULL) return false;
301 if (script->script == NULL) return false;
302 if (script->scriptInfo == NULL) return false;
303
304 return true;
305}
306
307/**
308 * Run the next opcode of a script.

Callers 5

GameLoop_StructureFunction · 0.85
GameLoop_TeamFunction · 0.85
GameLoop_UnitFunction · 0.85
Script_RunFunction · 0.85
Script_LoadAsSubroutineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected