My Project
Public Member Functions | List of all members
System::JoinLobbySystem Class Reference

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 &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. 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...
 

Detailed Description

The Join Lobby System class, it handles all packets related to lobby join by the clients.

Member Function Documentation

◆ changeClientLobby()

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.

Parameters
netClientIdThe sparse array of netClientId entities
newLobbyIdThe sparse array of newLobbyId entities
lobbyIdThe sparse array of lobbyId entities
lobbiesToEntitiesThe sparse array of lobbiesToEntities entities
netIdToClientIdThe sparse array of netIdToClientId entities

◆ operator()()

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.

Parameters
registryThe registry of the server
networkQueueThe sparse array of network entities
lobbyIdThe sparse array of lobbyId entities
lobbiesToEntitiesThe sparse array of lobbiesToEntities entities
netIdToClientIdThe sparse array of netIdToClientId entities

The documentation for this class was generated from the following files: