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

Method cb

engine/script/src/test/test_script_timer.cpp:244–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243 struct Callback {
244 static void cb(dmScript::HTimerWorld timer_world, dmScript::TimerEventType event_type, dmScript::HTimer timer_handle, float time_elapsed, uintptr_t owner, uintptr_t userdata)
245 {
246 ASSERT_EQ(dmScript::TIMER_EVENT_TRIGGER_WILL_DIE, event_type);
247 ASSERT_EQ(handle, timer_handle);
248 ++TimerTestCallback::callback_count;
249 }
250 };
251
252 handle = dmScript::AddTimer(timer_world, 2.f, false, Callback::cb, 0x10, 0x0);

Callers

nothing calls this directly

Calls 2

CancelTimerFunction · 0.85
AddTimerFunction · 0.85

Tested by

no test coverage detected