My Project
|
The Join Lobby System class, it handles all packets related to lobby join by the clients. More...
#include <JoinLobbySystem.hpp>
Public Member Functions | |
JoinLobbySystem () | |
Construct a new Join Lobby System object. | |
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. More... | |
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. More... | |
The Join Lobby System class, it handles all packets related to lobby join by the clients.
void System::JoinLobbySystem::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.
netClientId | The sparse array of netClientId entities |
newLobbyId | The sparse array of newLobbyId entities |
lobbyId | The sparse array of lobbyId entities |
lobbiesToEntities | The sparse array of lobbiesToEntities entities |
netIdToClientId | The sparse array of netIdToClientId entities |
void System::JoinLobbySystem::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.
registry | The registry of the server |
networkQueue | The sparse array of network entities |
lobbyId | The sparse array of lobbyId entities |
lobbiesToEntities | The sparse array of lobbiesToEntities entities |
netIdToClientId | The sparse array of netIdToClientId entities |