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

Function GetTimerFromIndex

engine/script/src/script_timer.cpp:181–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179 }
180
181 static Timer* GetTimerFromIndex(HTimerWorld timer_world, uint16_t index)
182 {
183 assert(timer_world != 0x0);
184 if (!timer_world->m_Instances.Contains(index))
185 {
186 return 0;
187 }
188 return &timer_world->m_Timers.Get(index);
189 }
190
191 static Timer* GetTimerFromHandle(HTimerWorld timer_world, HTimer handle)
192 {

Callers 4

GetTimerFromHandleFunction · 0.85
UpdateTimersFunction · 0.85
KillTimersFunction · 0.85
GetAliveTimersFunction · 0.85

Calls 3

assertFunction · 0.50
ContainsMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected