Changeset 10413 for code/branches/core7/src/libraries/core/Core.cc
- Timestamp:
- May 2, 2015, 11:20:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/Core.cc
r10407 r10413 79 79 #include "object/ObjectList.h" 80 80 #include "module/ModuleInstance.h" 81 #include "UpdateListener.h" 81 82 82 83 namespace orxonox … … 481 482 void Core::preUpdate(const Clock& time) 482 483 { 483 // Update singletons before general ticking 484 ScopedSingletonManager::preUpdate<ScopeID::Root>(time); 484 // Update UpdateListeners before general ticking 485 for (ObjectList<UpdateListener>::iterator it = ObjectList<UpdateListener>::begin(); it != ObjectList<UpdateListener>::end(); ++it) 486 it->preUpdate(time); 485 487 if (this->bGraphicsLoaded_) 486 488 { … … 489 491 // Update GUI 490 492 this->guiManager_->preUpdate(time); 491 // Update singletons before general ticking492 ScopedSingletonManager::preUpdate<ScopeID::Graphics>(time);493 493 } 494 494 // Process console events and status line … … 501 501 void Core::postUpdate(const Clock& time) 502 502 { 503 // Update singletons just before rendering 504 ScopedSingletonManager::postUpdate<ScopeID::Root>(time); 503 // Update UpdateListeners just before rendering 504 for (ObjectList<UpdateListener>::iterator it = ObjectList<UpdateListener>::begin(); it != ObjectList<UpdateListener>::end(); ++it) 505 it->postUpdate(time); 505 506 if (this->bGraphicsLoaded_) 506 507 { 507 // Update singletons just before rendering508 ScopedSingletonManager::postUpdate<ScopeID::Graphics>(time);509 508 // Render (doesn't throw) 510 509 this->graphicsManager_->postUpdate(time);
Note: See TracChangeset
for help on using the changeset viewer.