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

Function GetTimerFromHandle

engine/script/src/script_timer.cpp:191–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 }
190
191 static Timer* GetTimerFromHandle(HTimerWorld timer_world, HTimer handle)
192 {
193 uint16_t index = GetIndexFromHandle(handle);
194 Timer* timer = GetTimerFromIndex(timer_world, index);
195 if (!timer)
196 return 0;
197 if (timer->m_Handle != handle)
198 return 0; // Stale handle
199 return timer;
200 }
201
202 static uint32_t CopyIndices(dmSet<uint16_t>& src, dmArray<uint16_t>& tgt)
203 {

Callers 4

CancelTimerFunction · 0.85
LuaTimerCallbackFunction · 0.85
TimerTriggerFunction · 0.85
TimerGetInfoFunction · 0.85

Calls 2

GetIndexFromHandleFunction · 0.85
GetTimerFromIndexFunction · 0.85

Tested by

no test coverage detected