| 422 | } |
| 423 | |
| 424 | static HTimerWorld GetTimerWorld(HScriptWorld script_world) |
| 425 | { |
| 426 | assert(script_world != 0x0); |
| 427 | HContext context = GetScriptWorldContext(script_world); |
| 428 | assert(context != 0x0); |
| 429 | lua_State* L = context->m_LuaState; |
| 430 | assert(L != 0x0); |
| 431 | DM_LUA_STACK_CHECK(L, 0); |
| 432 | |
| 433 | lua_pushinteger(L, (lua_Integer)TIMER_WORLD_VALUE_KEY_HASH); |
| 434 | GetScriptWorldContextValue(script_world); |
| 435 | HTimerWorld timer_world = (HTimerWorld)lua_touserdata(L, -1); |
| 436 | lua_pop(L, 1); |
| 437 | return timer_world; |
| 438 | } |
| 439 | |
| 440 | static void TimerNewScriptWorld(HScriptWorld script_world) |
| 441 | { |
no test coverage detected