| 486 | } |
| 487 | |
| 488 | static void TimerFinalizeScriptInstance(HScriptWorld script_world) |
| 489 | { |
| 490 | HContext context = GetScriptWorldContext(script_world); |
| 491 | lua_State* L = GetLuaState(context); |
| 492 | DM_LUA_STACK_CHECK(L, 0); |
| 493 | |
| 494 | uintptr_t owner = dmScript::GetInstanceId(L); |
| 495 | HTimerWorld timer_world = GetTimerWorld(script_world); |
| 496 | KillTimers(timer_world, owner); |
| 497 | |
| 498 | lua_pushinteger(L, (lua_Integer)TIMER_WORLD_VALUE_KEY_HASH); |
| 499 | lua_pushnil(L); |
| 500 | SetInstanceContextValue(L); |
| 501 | } |
| 502 | |
| 503 | struct LuaTimerCallbackArgs |
| 504 | { |
nothing calls this directly
no test coverage detected