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

Method SetAt

CryScriptSystem/ScriptObject.cpp:552–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552void CScriptObject::SetAt(int nIdx, int nVal)
553{
554 assert(nIdx>=0); // nIdx=1 -> first element
555
556 _GUARD_STACK(m_pLS);
557 if (!_GET_THIS())
558 return;
559
560 lua_pushnumber(m_pLS, (lua_Number)nVal);
561 lua_rawseti(m_pLS, - 2, nIdx);
562}
563
564void CScriptObject::SetAt(int nIdx, float fVal)
565{

Callers 15

SetMethod · 0.80
EAXPresetMgr.cppFile · 0.80
MakeTagUniqueMethod · 0.80
DumpTableRecursiveMethod · 0.80
OnElementFoundMethod · 0.80
FindKeyboardShortcutMethod · 0.80
CheckSubclassingMethod · 0.80
VarToScriptObjectMethod · 0.80
SetEventsTableMethod · 0.80
ExcludeCommandIDMethod · 0.80
GetMusicThemesMethod · 0.80
GetMusicMoodsMethod · 0.80

Calls 6

lua_pushnumberFunction · 0.85
lua_rawsetiFunction · 0.85
lua_pushnilFunction · 0.85
lua_pushstringFunction · 0.85
lua_xgetrefFunction · 0.85
GetRefMethod · 0.80

Tested by

no test coverage detected