MCPcopy Create free account
hub / github.com/cuberite/cuberite / Simulate

Method Simulate

src/Simulator/SimulatorManager.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29void 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

Callers 1

TickMethod · 0.45

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected