MCPcopy Create free account
hub / github.com/defold/defold / GetTimerWorld

Function GetTimerWorld

engine/script/src/script_timer.cpp:424–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 5

TimerDeleteScriptWorldFunction · 0.85
TimerUpdateScriptWorldFunction · 0.85
CheckTimerWorldFunction · 0.85

Calls 7

GetScriptWorldContextFunction · 0.85
lua_pushintegerFunction · 0.85
lua_touserdataFunction · 0.85
GetInstanceContextValueFunction · 0.85
lua_typeFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected