| 341 | } |
| 342 | |
| 343 | bool CScriptObject::GetValue(const char *sKey, int &nVal) |
| 344 | { |
| 345 | BEGIN_CHECK_STACK |
| 346 | bool res = false; |
| 347 | if (!_GET_THIS()) |
| 348 | return false; |
| 349 | |
| 350 | res=GetValueChain(sKey,nVal); |
| 351 | lua_pop(m_pLS, 1); |
| 352 | END_CHECK_STACK |
| 353 | return res; |
| 354 | } |
| 355 | |
| 356 | bool CScriptObject::GetValueChain(const char *sKey, HSCRIPTFUNCTION &funcVal) |
| 357 | { |
no outgoing calls
no test coverage detected