MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / SetGlobalValue

Method SetGlobalValue

CryScriptSystem/ScriptSystem.cpp:1518–1523  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1516//////////////////////////////////////////////////////////////////////
1517//////////////////////////////////////////////////////////////////////
1518void CScriptSystem::SetGlobalValue(const char *sKey, int nVal)
1519{
1520 Validate();
1521 lua_pushnumber(m_pLS, (lua_Number)nVal);
1522 lua_setglobal(m_pLS, sKey);
1523}
1524
1525//////////////////////////////////////////////////////////////////////
1526//////////////////////////////////////////////////////////////////////

Callers 15

SetScriptValueMethod · 0.80
InitMethod · 0.80
InitializeTemplateMethod · 0.80
InitMethod · 0.80
InitializeTemplateMethod · 0.80
InitMethod · 0.80
UpdateMethod · 0.80
InitMethod · 0.80
InitializeTemplateMethod · 0.80
InitMethod · 0.80
ProcessKeysMethod · 0.80
InitConsoleVarsMethod · 0.80

Calls 5

lua_pushnumberFunction · 0.85
lua_setglobalFunction · 0.85
lua_pushstringFunction · 0.85
lua_xgetrefFunction · 0.85
GetRefMethod · 0.80

Tested by

no test coverage detected