2024-04-22 12:47:05 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include "Define.h"
|
2024-04-24 23:29:37 +02:00
|
|
|
#include <MinimalEngine.h>
|
|
|
|
|
#include <Scene/Scene.h>
|
|
|
|
|
#include <System/ComponentSystem.h>
|
|
|
|
|
#include <Component/Camera.h>
|
|
|
|
|
#include <Component/KeyboardInput.h>
|
2024-04-22 12:47:05 +02:00
|
|
|
|
|
|
|
|
class FlyCamSystem : public System::ComponentSystem<
|
|
|
|
|
Component::KeyboardInput,
|
|
|
|
|
Component::Camera,
|
2024-05-16 19:45:44 +02:00
|
|
|
Component::Transform,
|
|
|
|
|
Component::PointLight>
|
2024-04-22 12:47:05 +02:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
FlyCamSystem(PScene scene);
|
|
|
|
|
virtual ~FlyCamSystem();
|
2024-05-16 19:45:44 +02:00
|
|
|
virtual void update(Seele::Component::KeyboardInput& input, Seele::Component::Camera& camera, Seele::Component::Transform& transform, Seele::Component::PointLight& pointLight) override;
|
2024-04-22 12:47:05 +02:00
|
|
|
private:
|
|
|
|
|
float lastMouseX;
|
|
|
|
|
float lastMouseY;
|
|
|
|
|
};
|
|
|
|
|
DEFINE_REF(FlyCamSystem)
|