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

Method OnSwitch

CryGame/ScriptObjectUI.cpp:282–299  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

280
281//-------------------------------------------------------------------------------------------------
282int CScriptObjectUI::OnSwitch(bool bIn)
283{
284 HSCRIPTFUNCTION pScriptFunction = m_hOnSwitch;
285
286 if (!pScriptFunction)
287 {
288 return 1;
289 }
290
291 int iResult = 1;
292
293 m_pScriptSystem->BeginCall(pScriptFunction);
294 m_pScriptSystem->PushFuncParam(this->GetScriptObject());
295 m_pScriptSystem->PushFuncParam(bIn);
296 m_pScriptSystem->EndCall(iResult);
297
298 return iResult;
299}
300
301//-------------------------------------------------------------------------------------------------
302int CScriptObjectUI::CanRenderGame()

Callers 5

LoadLevelCSMethod · 0.80
GotoMenuMethod · 0.80
GotoGameMethod · 0.80
MenuOnMethod · 0.80
MenuOffMethod · 0.80

Calls 4

BeginCallMethod · 0.80
PushFuncParamMethod · 0.80
GetScriptObjectMethod · 0.45
EndCallMethod · 0.45

Tested by

no test coverage detected