-------------------------------------------------------------------------------------------------
| 280 | |
| 281 | //------------------------------------------------------------------------------------------------- |
| 282 | int 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 | //------------------------------------------------------------------------------------------------- |
| 302 | int CScriptObjectUI::CanRenderGame() |
no test coverage detected