My Project
DirectionSystem.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4 ** File description:
5 ** DirectionSystem
6 */
7 
8 #ifndef DIRECTIONSYSTEM_HPP_
9  #define DIRECTIONSYSTEM_HPP_
10 
11  /* Ecs */
12  #include "Registry.hpp"
13 
14  /* Component */
15  #include "Component/CNetworkQueue.hpp"
16  #include "Component/CDirection.hpp"
17  #include "Component/CPosition.hpp"
18  #include "Component/CLobbyId.hpp"
19  #include "Component/CNetIdToClientId.hpp"
20 
24 namespace System {
29  public:
34  ~DirectionSystem() = default;
35 
45  void operator()(
46  Registry &registry,
53  );
54 
55  protected:
56  private:
57  };
58 }
59 
60 #endif /* !DIRECTIONSYSTEM_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::DirectionSystem
The Direction System class, it handles all packets related to movement by the clients.
Definition: DirectionSystem.hpp:28
System::DirectionSystem::DirectionSystem
DirectionSystem()
Construct a new Direction System object.
Definition: DirectionSystem.cpp:20
Registry
Class that handle ECS.
Definition: Registry.hpp:22
System::DirectionSystem::operator()
void operator()(Registry &registry, Sparse_array< component::cnetwork_queue_t > &netqueue, Sparse_array< component::cdirection_t > &direction, Sparse_array< component::cposition_t > &position, Sparse_array< component::cvelocity_t > &velocity, Sparse_array< component::clobby_id_t > &lobbyId, Sparse_array< component::cnet_id_to_client_id_t > &networkToClientId)
The main handler for the Direction System.
Definition: DirectionSystem.cpp:24