Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
DontMoveBehavior.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
component/Camera.hpp
"
4
#include "
component/Transform.hpp
"
5
#include "
core/Core.hpp
"
6
#include "
resource/CameraManager.hpp
"
7
#include "
utils/CameraBehavior.hpp
"
8
9
namespace
CameraMovement::Utils
{
10
14
class
DontMoveBehavior
:
public
ICameraBehavior
{
15
public
:
16
DontMoveBehavior
() =
default
;
17
~DontMoveBehavior
()
override
=
default
;
18
19
void
Update
(
Engine::Core
&core,
Resource::CameraManager
&manager,
Object::Component::Transform
&transform,
20
Object::Component::Camera
&camera,
float
deltaTime)
override
21
{
22
// Intentionally does nothing to keep the camera static
23
}
24
};
25
26
}
// namespace CameraMovement::Utils
CameraBehavior.hpp
CameraManager.hpp
Camera.hpp
Core.hpp
Transform.hpp
CameraMovement::Resource::CameraManager
CameraManager is a resource that manages the active camera entity.
Definition
CameraManager.hpp:24
CameraMovement::Utils::DontMoveBehavior::Update
void Update(Engine::Core &core, Resource::CameraManager &manager, Object::Component::Transform &transform, Object::Component::Camera &camera, float deltaTime) override
Update the camera behavior.
Definition
DontMoveBehavior.hpp:19
CameraMovement::Utils::DontMoveBehavior::DontMoveBehavior
DontMoveBehavior()=default
CameraMovement::Utils::DontMoveBehavior::~DontMoveBehavior
~DontMoveBehavior() override=default
CameraMovement::Utils::ICameraBehavior::ICameraBehavior
ICameraBehavior()=default
Engine::Core
The core is the place where all the data of the engine is stored. It contains the registry (entities)...
Definition
Core.hpp:33
CameraMovement::Utils
Definition
CameraManager.hpp:12
Object::Component::Camera
Definition
Camera.hpp:10
Object::Component::Transform
Definition
Transform.hpp:18
src
plugin
camera-movement
src
utils
DontMoveBehavior.hpp
Generated by
1.16.1