--------------------------------- TickManager::Tick Start time and performance monitoring, then tick all tickable objects in order of their priority, and finally update the state of input
| 250 | // Start time and performance monitoring, then tick all tickable objects in order of their priority, and finally update the state of input |
| 251 | // |
| 252 | void TickManager::Tick() |
| 253 | { |
| 254 | BaseContext const* const context = ContextManager::GetInstance()->GetActiveContext(); |
| 255 | if (context != nullptr) |
| 256 | { |
| 257 | // start new frame timer and performance |
| 258 | context->time->Update(); |
| 259 | PERFORMANCE->StartFrameTimer(); |
| 260 | } |
| 261 | |
| 262 | // tick all objects |
| 263 | for (Tickable& tickableObject : m_Tickables) |
| 264 | { |
| 265 | tickableObject.tickable->OnTick(); |
| 266 | } |
| 267 | |
| 268 | // Update keystates |
| 269 | InputManager::GetInstance()->Update(); |
| 270 | } |
| 271 | |
| 272 | //--------------------------------- |
| 273 | // TickManager::EndTick |
nothing calls this directly
no test coverage detected