My Project
PositionSystem.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4 ** File description:
5 ** PositionSystem
6 */
7 
8 #ifndef POSITIONSYSTEM_HPP_
9  #define POSITIONSYSTEM_HPP_
10 
11  /* Ecs */
12  #include "Registry.hpp"
13 
14  /* Component */
15  #include "Component/CNetworkQueue.hpp"
16  #include "Component/CPosition.hpp"
17  #include "Component/CServerId.hpp"
18 
22 namespace System {
27  public:
32  ~PositionSystem() = default;
33 
42  void operator()(
43  Registry &registry,
47  );
48 
49  protected:
50  private:
51  };
52 }
53 
54 #endif /* !POSITIONSYSTEM_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
Registry
Class that handle ECS.
Definition: Registry.hpp:22
System::PositionSystem::operator()
void operator()(Registry &registry, Sparse_array< component::cnetwork_queue_t > &network, Sparse_array< component::cposition_t > &position, Sparse_array< component::cserverid_t > &serverIds)
Function that will be automaticaly called while the client is working (on loop)
Definition: PositionSystem.cpp:20
System::PositionSystem::PositionSystem
PositionSystem()
Construct a new Position System object.
Definition: PositionSystem.cpp:16
System::PositionSystem
PositionSystem class that handles the position of the entities.
Definition: PositionSystem.hpp:26