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

Method Create

CryScriptSystem/ScriptObject.cpp:106–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106bool CScriptObject::Create(CScriptSystem *pScriptSystem)
107{
108 m_pLS=(lua_State *)pScriptSystem->GetScriptHandle();
109 _GUARD_STACK(m_pLS);
110 Detach();
111
112 lua_newtable(m_pLS);
113
114 Attach();
115 return true;
116
117 //return false;
118}
119
120bool CScriptObject::CreateGlobal(CScriptSystem *pScriptSystem, const char *sName)
121{

Callers 1

CreateObjectMethod · 0.45

Calls 2

lua_newtableFunction · 0.85
GetScriptHandleMethod · 0.80

Tested by

no test coverage detected