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

Method GetCurrentKey

CryScriptSystem/ScriptObject.cpp:1313–1325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1311
1312
1313bool CScriptObject::GetCurrentKey(const char* &sKey)
1314{
1315 if(m_nIterationCounter==-1)
1316 return false;
1317
1318// if (lua_isstring(m_pLS, - 2))
1319 if(lua_rawtag(m_pLS, -2)==LUA_TSTRING) // get the internal type without converting it
1320 {
1321 sKey=(char *)lua_tostring(m_pLS, - 2);
1322 return true;
1323 }
1324 return false;
1325}
1326
1327bool CScriptObject::GetCurrentKey(int &nKey)
1328{

Callers 15

Debug_Full_recursiveMethod · 0.45
Debug_ElementsMethod · 0.45
GetStackAndLocalsMethod · 0.45
ReloadWeaponScriptsMethod · 0.45
SavePlayerElementsMethod · 0.45
InitMethod · 0.45
RetrieveTextAttributeMethod · 0.45
CreateObjectFromTableMethod · 0.45
SetupStaticFromTableMethod · 0.45

Calls 3

lua_rawtagFunction · 0.85
lua_tostringFunction · 0.85
lua_tonumberFunction · 0.85

Tested by

no test coverage detected