MCPcopy Create free account
hub / github.com/adventuregamestudio/ags / TryRunScriptHandler

Function TryRunScriptHandler

Engine/script/script.cpp:337–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337void TryRunScriptHandler(ScriptType sc_type, const String &script_module,
338 const ScriptEventHandler &handler, size_t param_count, const RuntimeScriptValue *params)
339{
340 if (handler.IsEnabled())
341 RunScriptFunctionAuto(sc_type, ScriptFunctionRef(script_module, handler.FunctionName), param_count, params);
342}
343
344// Run a script function on a non-blocking script thread
345static bool DoRunScriptFuncCantBlock(const RuntimeScript *script, NonBlockingScriptFunction* funcToRun, bool hasTheFunc)

Callers 1

process_interface_clickFunction · 0.85

Calls 3

RunScriptFunctionAutoFunction · 0.85
ScriptFunctionRefClass · 0.85
IsEnabledMethod · 0.45

Tested by

no test coverage detected