R-Type
CameraComponent.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** R-Type
4 ** File description:
5 ** CameraComponent
6 */
7 
8 #ifndef CAMERACOMPONENT_HPP_
9 #define CAMERACOMPONENT_HPP_
10 #include <optional>
11 #include "utils/SfmlTypes.hpp"
12 #include "Entity.hpp"
13 
14 namespace GameEngine
15 {
17  {
19  std::optional<size_t> target;
20  bool follow_x = false;
21  bool follow_y = false;
22  bool isActive = true;
23  };
24 } // namespace GameEngine
25 
26 #endif /* !CAMERACOMPONENT_HPP_ */
Class representing a view wrapper for sf::View.
Definition: SfmlTypes.hpp:81
Definition: AssetManager.hpp:15
Definition: CameraComponent.hpp:17
bool follow_y
Definition: CameraComponent.hpp:21
bool isActive
Definition: CameraComponent.hpp:22
View view
Definition: CameraComponent.hpp:18
std::optional< size_t > target
Definition: CameraComponent.hpp:19
bool follow_x
Definition: CameraComponent.hpp:20