My Project
RectSystem.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4 ** File description:
5 ** RectSystem
6 */
7 
8 #ifndef RECTSYSTEM_HPP_
9  #define RECTSYSTEM_HPP_
10 
11  /* Ecs */
12  #include "Registry.hpp"
13 
14  /* Component */
15  #include "Component/CRect.hpp"
16  #include "Component/CTimer.hpp"
17  #include "Component/CAsset.hpp"
18  #include "Component/CAssetId.hpp"
19 
23 namespace System {
27  class RectSystem {
28  public:
32  RectSystem();
33  ~RectSystem() = default;
34 
44  void operator()(
45  Registry &registry,
50  );
51 
52  protected:
53  private:
54  };
55 }
56 
57 #endif /* !RECTSYSTEM_HPP_ */
Sparse_array
Class that handle Element of type Component like a vector which can be holed.
Definition: SparseArray.hpp:22
System
Namespace for systems.
Definition: DirectionSystem.hpp:24
System::RectSystem
System that draws a part of all entities.
Definition: RectSystem.hpp:27
Registry
Class that handle ECS.
Definition: Registry.hpp:22
System::RectSystem::operator()
void operator()(Registry &registry, Sparse_array< component::crect_t > &rectangles, Sparse_array< component::ctimer_t > &timer, Sparse_array< component::casset_t > &assets, Sparse_array< component::cassetid_t > &assetid)
Function that will be automaticaly called while the client is working (on loop)
Definition: RectSystem.cpp:17
System::RectSystem::RectSystem
RectSystem()
Construct a new Rect System object.
Definition: RectSystem.cpp:13