My Project
DrawTextSystem.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4 ** File description:
5 ** DrawTextSystem
6 */
7 
8 #ifndef DRAWTEXTSYSTEM_HPP_
9  #define DRAWTEXTSYSTEM_HPP_
10 
11  #include "Registry.hpp"
12  #include "GraphicalLib.hpp"
13 
14  /* Component */
15  #include "Component/CPosition.hpp"
16  #include "Component/CSceneId.hpp"
17  #include "Component/CScale.hpp"
18  #include "Component/CColor.hpp"
19  #include "Component/CText.hpp"
20 
24 namespace System {
30  public:
36  ~DrawTextSystem() = default;
37 
48  void operator()(Registry &registry,
54 
55  protected:
56  private:
57  std::shared_ptr<rtype::GraphicalLib> _graphicLib;
58  };
59 }
60 
61 #endif /* !DRAWTEXTSYSTEM_HPP_ */
Sparse_array
Class that handle Element of type Component like a vector which can be holed.
Definition: SparseArray.hpp:22
System::DrawTextSystem::DrawTextSystem
DrawTextSystem()
Construct a new Event System object.
Definition: DrawTextSystem.cpp:11
System
Namespace for systems.
Definition: DirectionSystem.hpp:24
Registry
Class that handle ECS.
Definition: Registry.hpp:22
System::DrawTextSystem::operator()
void operator()(Registry &registry, Sparse_array< component::cposition_t > &positions, Sparse_array< component::csceneid_t > &scenesId, Sparse_array< component::cscale_t > &scales, Sparse_array< component::ccolor_t > &colors, Sparse_array< component::ctext_t > &texts)
Update the DrawTextSystem.
Definition: DrawTextSystem.cpp:16
System::DrawTextSystem
DrawTextSystem class that handles the drawing of all the sprite entities.
Definition: DrawTextSystem.hpp:29