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

Method GetValueChain

CryScriptSystem/ScriptObject.cpp:329–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329bool CScriptObject::GetValueChain(const char *sKey, int &nVal)
330{
331 _GUARD_STACK(m_pLS);
332 bool res=false;
333 lua_pushstring(m_pLS, sKey);
334 GET_FUNCTION(m_pLS, - 2);
335 if (lua_isnumber(m_pLS, - 1))
336 {
337 res = true;
338 nVal =(int)lua_tonumber(m_pLS, - 1);
339 }
340 return res;
341}
342
343bool CScriptObject::GetValue(const char *sKey, int &nVal)
344{

Callers 13

GetMethod · 0.80
SetEaxEnvironmentMethod · 0.80
CreateParticleMethod · 0.80
ReadParticleTableMethod · 0.80
AddDynamicLight2Method · 0.80
CreateParticleEmitterMethod · 0.80
ReadParticleTableMethod · 0.80
SetMoveParamsMethod · 0.80
SetAISpeedMultMethod · 0.80
ReadParamsTableMethod · 0.80
SetWeaponFireParamsMethod · 0.80
HitMethod · 0.80

Calls 8

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

Tested by

no test coverage detected