| 27 | |
| 28 | |
| 29 | void cSimulatorManager::Simulate(float a_Dt) |
| 30 | { |
| 31 | m_Ticks++; |
| 32 | for (cSimulators::iterator itr = m_Simulators.begin(); itr != m_Simulators.end(); ++itr ) |
| 33 | { |
| 34 | if ((m_Ticks % itr->second) == 0) |
| 35 | { |
| 36 | itr->first->Simulate(a_Dt); |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | |
| 42 |