| 529 | } |
| 530 | |
| 531 | int script_vars_index(lua_State* L) // чтение переменной из скриптов по строковому индексу |
| 532 | { |
| 533 | CScriptVarsTable* svt = lua_tosvt(L, 1); |
| 534 | |
| 535 | LPCSTR k = lua_tostring(L, 2); |
| 536 | |
| 537 | if (!k || !xr_strlen(k) || !svt) |
| 538 | { |
| 539 | lua_pushnil(L); |
| 540 | return 1; |
| 541 | } |
| 542 | |
| 543 | svt->get(L, k, false); |
| 544 | return 1; |
| 545 | } |
| 546 | |
| 547 | int script_vars_release(lua_State* L) |
| 548 | { |
nothing calls this directly
no test coverage detected