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

Function SetTimerWorld

engine/script/src/script_timer.cpp:416–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414 }
415
416 static void SetTimerWorld(HScriptWorld script_world, HTimerWorld timer_world)
417 {
418 HContext context = GetScriptWorldContext(script_world);
419 lua_pushinteger(context->m_LuaState, (lua_Integer)TIMER_WORLD_VALUE_KEY_HASH);
420 lua_pushlightuserdata(context->m_LuaState, timer_world);
421 SetScriptWorldContextValue(script_world);
422 }
423
424 static HTimerWorld GetTimerWorld(HScriptWorld script_world)
425 {

Callers 1

TimerDeleteScriptWorldFunction · 0.85

Calls 4

GetScriptWorldContextFunction · 0.85
lua_pushintegerFunction · 0.85
lua_pushlightuserdataFunction · 0.85

Tested by

no test coverage detected