For testing
| 398 | |
| 399 | // For testing |
| 400 | uint32_t GetAliveTimers(HTimerWorld timer_world) |
| 401 | { |
| 402 | assert(timer_world != 0x0); |
| 403 | |
| 404 | uint32_t alive_timers = 0u; |
| 405 | uint32_t size = timer_world->m_Instances.Size(); |
| 406 | for (uint32_t i = 0; i < size; ++i) |
| 407 | { |
| 408 | uint16_t index = timer_world->m_Instances[i]; // the pool indices |
| 409 | Timer* timer = GetTimerFromIndex(timer_world, index); |
| 410 | |
| 411 | alive_timers += timer->m_IsAlive != 0 ? 1 : 0; |
| 412 | } |
| 413 | return alive_timers; |
| 414 | } |
| 415 | |
| 416 | static void SetTimerWorld(HScriptWorld script_world, HTimerWorld timer_world) |
| 417 | { |