StartMenu system now sets the main menu camera to active as long as it exists.

This commit is contained in:
Tleety
2016-03-09 15:29:42 +01:00
parent a76a04260f
commit 49040e9c4b
4 changed files with 36 additions and 4 deletions
+5
View File
@@ -5,6 +5,7 @@
#include "Core/ResourceManager.h"
#include "Core/Event.h"
#include "Core/EventBroker.h"
#include "Rendering/ESetCamera.h"
class StartSystem : public ImpureSystem
{
@@ -13,6 +14,10 @@ public:
virtual void Update(double dt) override;
private:
EntityWrapper m_activeCamera = EntityWrapper::Invalid;
EventRelay<StartSystem, Events::SetCamera> m_ECameraActivated;
bool OnCameraActivated(const Events::SetCamera& e);
};
#endif