diff options
author | Mattes D <github@xoft.cz> | 2017-07-14 16:18:33 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2017-07-16 10:01:19 +0200 |
commit | 167c4bf2e691e22240a3c41ebc7181a03933fdb4 (patch) | |
tree | 562d5ac29ef39b1fa2b94fad3825333e39204e69 /src/Simulator/SimulatorManager.cpp | |
parent | Handle middle mouse drag (#3847) (diff) | |
download | cuberite-167c4bf2e691e22240a3c41ebc7181a03933fdb4.tar cuberite-167c4bf2e691e22240a3c41ebc7181a03933fdb4.tar.gz cuberite-167c4bf2e691e22240a3c41ebc7181a03933fdb4.tar.bz2 cuberite-167c4bf2e691e22240a3c41ebc7181a03933fdb4.tar.lz cuberite-167c4bf2e691e22240a3c41ebc7181a03933fdb4.tar.xz cuberite-167c4bf2e691e22240a3c41ebc7181a03933fdb4.tar.zst cuberite-167c4bf2e691e22240a3c41ebc7181a03933fdb4.zip |
Diffstat (limited to 'src/Simulator/SimulatorManager.cpp')
-rw-r--r-- | src/Simulator/SimulatorManager.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Simulator/SimulatorManager.cpp b/src/Simulator/SimulatorManager.cpp index e74642fc0..78c02fc07 100644 --- a/src/Simulator/SimulatorManager.cpp +++ b/src/Simulator/SimulatorManager.cpp @@ -70,6 +70,18 @@ void cSimulatorManager::WakeUp(int a_BlockX, int a_BlockY, int a_BlockZ, cChunk +void cSimulatorManager::WakeUpArea(const cCuboid & a_Area) +{ + for (cSimulators::iterator itr = m_Simulators.begin(); itr != m_Simulators.end(); ++itr) + { + itr->first->WakeUpArea(a_Area); + } +} + + + + + void cSimulatorManager::RegisterSimulator(cSimulator * a_Simulator, int a_Rate) { m_Simulators.push_back(std::make_pair(a_Simulator, a_Rate)); |