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

Method GetGlobalObject

CryScriptSystem/ScriptSystem.cpp:1554–1562  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1552//////////////////////////////////////////////////////////////////////
1553//////////////////////////////////////////////////////////////////////
1554IScriptObject *CScriptSystem::GetGlobalObject()
1555{
1556 Validate();
1557 CScriptObject *pObj = CreateScriptObject();
1558 lua_getglobals(m_pLS);
1559 pObj->CreateEmpty(this);
1560 pObj->Attach();
1561 return pObj;
1562}
1563
1564//////////////////////////////////////////////////////////////////////
1565//////////////////////////////////////////////////////////////////////

Callers 1

Calls 3

lua_getglobalsFunction · 0.85
CreateEmptyMethod · 0.45
AttachMethod · 0.45

Tested by

no test coverage detected