22442708cc
"how does this even work lol"
30 lines
679 B
C++
30 lines
679 B
C++
#ifndef DebugSystem_h__
|
|
#define DebugSystem_h__
|
|
|
|
#include "System.h"
|
|
#include "Components/Transform.h"
|
|
#include "Events/KeyDown.h"
|
|
#include "Events/PlaySound.h"
|
|
|
|
namespace Systems
|
|
{
|
|
|
|
class DebugSystem : public System
|
|
{
|
|
public:
|
|
DebugSystem(World* world, std::shared_ptr<::EventBroker> eventBroker, std::shared_ptr<::ResourceManager> resourceManager)
|
|
: System(world, eventBroker, resourceManager)
|
|
{ }
|
|
|
|
void Initialize() override;
|
|
|
|
void Update(double dt) override;
|
|
|
|
EventRelay<DebugSystem, Events::KeyDown> m_EKeyDown;
|
|
bool OnKeyDown(const Events::KeyDown &event);
|
|
|
|
//void UpdateEntity(double dt, EntityID entity, EntityID parent) override;
|
|
};
|
|
|
|
}
|
|
#endif // DebugSystem_h__
|