called from gotolevel(do.c) */
| 1834 | |
| 1835 | /* called from gotolevel(do.c) */ |
| 1836 | void |
| 1837 | tutorial(boolean entering) |
| 1838 | { |
| 1839 | l_nhcore_call(entering ? NHCORE_ENTER_TUTORIAL : NHCORE_LEAVE_TUTORIAL); |
| 1840 | |
| 1841 | if (!entering) { /* after leaving, can't go back */ |
| 1842 | nhcore_call_available[NHCORE_ENTER_TUTORIAL] |
| 1843 | = nhcore_call_available[NHCORE_LEAVE_TUTORIAL] |
| 1844 | = FALSE; |
| 1845 | } |
| 1846 | } |
| 1847 | |
| 1848 | static const struct luaL_Reg nhl_functions[] = { |
| 1849 | { "test", nhl_test }, |
no test coverage detected