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

Function luaDefineScripts

Common_3/Game/Scripting/LuaSystem.cpp:791–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791void luaDefineScripts(LuaScriptDesc* pDescs, uint32_t count)
792{
793#ifdef ENABLE_FORGE_SCRIPTING
794 ASSERT(pDescs);
795 ASSERT(sTestScriptCount + count < MAX_NUM_SCRIPTS);
796
797 for (uint32_t i = 0; i < count; ++i)
798 {
799 if (pDescs[i].pScriptFileName)
800 {
801 strcpy(pTestScripts[sTestScriptCount].pFileName, pDescs[i].pScriptFileName);
802 pTestScripts[sTestScriptCount].pWaitCondition = pDescs[i].pWaitCondition;
803 }
804
805 ++sTestScriptCount;
806 }
807#else
808 (void)pDescs;
809 (void)count;
810 LOGF(LogLevel::eWARNING, "Attempting to use Forge Lua Scripting without define!");
811 LOGF(LogLevel::eWARNING, "Make sure to define 'ENABLE_FORGE_SCRIPTING' for Scripting to work!");
812#endif
813}
814
815void luaQueueScriptToRun(LuaScriptDesc* pDesc)
816{

Callers 15

initBaseSubsystemsFunction · 0.85
setupPlatformUIFunction · 0.85
initBaseSubsystemsFunction · 0.85
setupPlatformUIFunction · 0.85
initBaseSubsystemsFunction · 0.85
setupPlatformUIFunction · 0.85
InitMethod · 0.85
LoadMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected