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

Method GetCurrent

CryScriptSystem/ScriptObject.cpp:1197–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1195}
1196
1197bool CScriptObject::GetCurrent(int &nVal)
1198{
1199 if(m_nIterationCounter==-1)
1200 return false;
1201 if (lua_isnumber(m_pLS, -1))
1202 {
1203 nVal =(int)lua_tonumber(m_pLS, -1);
1204 return true;
1205 }
1206 return false;
1207}
1208
1209bool CScriptObject::GetCurrent(float &fVal)
1210{

Callers 5

DrawTriStripMethod · 0.45
Debug_Full_recursiveMethod · 0.45
Debug_ElementsMethod · 0.45
GetStackAndLocalsMethod · 0.45

Calls 6

lua_isnumberFunction · 0.85
lua_tonumberFunction · 0.85
lua_isstringFunction · 0.85
lua_tostringFunction · 0.85
lua_pushvalueFunction · 0.85
AttachMethod · 0.45

Tested by

no test coverage detected