My Project
JoinLobbySystem.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4 ** File description:
5 ** JoinLobbySystem
6 */
7 
8 #ifndef JOINLOBBYSYSTEM_HPP_
9  #define JOINLOBBYSYSTEM_HPP_
10 
11  /* Ecs */
12  #include "Registry.hpp"
13 
14  /* Component */
15  #include "Component/CNetworkQueue.hpp"
16  #include "Component/CLobbyId.hpp"
17  #include "Component/CLobbiesToEntities.hpp"
18  #include "Component/CNetIdToClientId.hpp"
19 
23 namespace System {
28  public:
33  ~JoinLobbySystem() = default;
34 
44  void operator()(
45  Registry &registry,
50  );
51 
62 
63  protected:
64  private:
65  };
66 }
67 
68 #endif /* !JOINLOBBYSYSTEM_HPP_ */
Sparse_array
Class that handle Element of type Component like a vector which can be holed.
Definition: SparseArray.hpp:22
System::JoinLobbySystem::changeClientLobby
void changeClientLobby(int netClientId, int newLobbyId, Sparse_array< component::clobby_id_t > &lobbyId, Sparse_array< component::clobbies_to_entities_t > &lobbiesToEntities, Sparse_array< component::cnet_id_to_client_id_t > &netIdToClientId)
Function to change client Lobby.
Definition: JoinLobbySystem.cpp:22
System
Namespace for systems.
Definition: DirectionSystem.hpp:24
System::JoinLobbySystem
The Join Lobby System class, it handles all packets related to lobby join by the clients.
Definition: JoinLobbySystem.hpp:27
Registry
Class that handle ECS.
Definition: Registry.hpp:22
System::JoinLobbySystem::JoinLobbySystem
JoinLobbySystem()
Construct a new Join Lobby System object.
Definition: JoinLobbySystem.cpp:18
System::JoinLobbySystem::operator()
void operator()(Registry &registry, Sparse_array< component::cnetwork_queue_t > &networkQueue, Sparse_array< component::clobby_id_t > &lobbyId, Sparse_array< component::clobbies_to_entities_t > &lobbiesToEntities, Sparse_array< component::cnet_id_to_client_id_t > &netIdToClientId)
The main handler for the JoinLobby System.
Definition: JoinLobbySystem.cpp:45