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

Function CheckTimerWorld

engine/script/src/script_timer.cpp:558–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556 }
557
558 static dmScript::HTimerWorld CheckTimerWorld(lua_State* L)
559 {
560 dmScript::HTimerWorld timer_world = GetTimerWorld(L);
561 if (timer_world == 0x0)
562 {
563 luaL_error(L, "Unable to trigger callback, the lua context does not have a timer world");
564 return 0;
565 }
566 return timer_world;
567 }
568
569 /*# create a timer
570 * Adds a timer and returns a unique handle.

Callers 4

TimerDelayFunction · 0.85
TimerCancelFunction · 0.85
TimerTriggerFunction · 0.85
TimerGetInfoFunction · 0.85

Calls 2

GetTimerWorldFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected