8 #ifndef JOINLOBBYSYSTEM_HPP_
9 #define JOINLOBBYSYSTEM_HPP_
12 #include "Registry.hpp"
15 #include "Component/CNetworkQueue.hpp"
16 #include "Component/CLobbyId.hpp"
17 #include "Component/CLobbiesToEntities.hpp"
18 #include "Component/CNetIdToClientId.hpp"
Class that handle Element of type Component like a vector which can be holed.
Definition: SparseArray.hpp:22
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
Namespace for systems.
Definition: DirectionSystem.hpp:24
The Join Lobby System class, it handles all packets related to lobby join by the clients.
Definition: JoinLobbySystem.hpp:27
Class that handle ECS.
Definition: Registry.hpp:22
JoinLobbySystem()
Construct a new Join Lobby System object.
Definition: JoinLobbySystem.cpp:18
void operator()(Registry ®istry, 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