MCPcopy Create free account
hub / github.com/ConfettiFX/The-Forge / luaQueueScriptToRun

Function luaQueueScriptToRun

Common_3/Game/Scripting/LuaSystem.cpp:815–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813}
814
815void luaQueueScriptToRun(LuaScriptDesc* pDesc)
816{
817#ifdef ENABLE_FORGE_SCRIPTING
818 ASSERT(pDesc);
819 ASSERT(sRuntimeScriptCount < MAX_NUM_SCRIPTS);
820
821 if (pDesc->pScriptFileName)
822 {
823 strcpy(pRuntimeScripts[sRuntimeScriptCount].pFileName, pDesc->pScriptFileName);
824 pRuntimeScripts[sRuntimeScriptCount].pWaitCondition = pDesc->pWaitCondition;
825 }
826
827 ++sRuntimeScriptCount;
828#else
829 (void)pDesc;
830 LOGF(LogLevel::eWARNING, "Attempting to use Forge Lua Scripting without define!");
831 LOGF(LogLevel::eWARNING, "Make sure to define 'ENABLE_FORGE_SCRIPTING' for Scripting to work!");
832#endif
833}
834
835void luaRegisterWidget(const void* pWidgetHandle)
836{

Callers 11

RunScriptFunction · 0.85
RunScriptFunction · 0.85
LoadMethod · 0.85
RunScriptFunction · 0.85
RunScriptFunction · 0.85
RunScriptFunction · 0.85
RunScriptFunction · 0.85
RunScriptFunction · 0.85
RunScriptFunction · 0.85
RunScriptFunction · 0.85
RunScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected