diff options
| -rw-r--r-- | src/crepe/Component.h | 2 | ||||
| -rw-r--r-- | src/crepe/api/LoopManager.cpp | 3 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/src/crepe/Component.h b/src/crepe/Component.h index 060ff00..eff5a58 100644 --- a/src/crepe/Component.h +++ b/src/crepe/Component.h @@ -50,8 +50,6 @@ public:  	 * \return The maximum number of instances for this component  	 */  	virtual int get_instances_max() const { return -1; } -	//! Only ComponentManager needs to know the max instance count -	friend class ComponentManager;  };  } // namespace crepe diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp index 88243c4..3e9e21c 100644 --- a/src/crepe/api/LoopManager.cpp +++ b/src/crepe/api/LoopManager.cpp @@ -1,4 +1,5 @@  #include "../system/AnimatorSystem.h" +#include "../system/AudioSystem.h"  #include "../system/CollisionSystem.h"  #include "../system/InputSystem.h"  #include "../system/ParticleSystem.h" @@ -20,6 +21,7 @@ LoopManager::LoopManager() {  	this->load_system<RenderSystem>();  	this->load_system<ScriptSystem>();  	this->load_system<InputSystem>(); +	this->load_system<AudioSystem>();  }  void LoopManager::process_input() { this->get_system<InputSystem>().update(); } @@ -37,6 +39,7 @@ void LoopManager::fixed_update() {  	this->get_system<ScriptSystem>().update();  	this->get_system<PhysicsSystem>().update();  	this->get_system<CollisionSystem>().update(); +	this->get_system<AudioSystem>().update();  }  void LoopManager::loop() { |