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

NewClientSystem class that handles the new client. More...

#include <NewClientSystem.hpp>

Public Member Functions

 NewClientSystem ()
 Construct a new New Client System object.
 
void operator() (Registry &registry, Sparse_array< component::cnetwork_queue_t > &netqueue, Sparse_array< component::cnet_id_to_client_id_t > &netIdToClientId, Sparse_array< component::clobbies_to_entities_t > &lobbiesToEntities)
 Function that will be automaticaly called while the client is working (on loop) More...
 
void sendLobbiesStatus (int clientId, Sparse_array< component::cnetwork_queue_t > &networkQueue, Sparse_array< component::clobbies_to_entities_t > &lobbiesToEntities)
 Function that send lobbies status to network queue. More...
 

Detailed Description

NewClientSystem class that handles the new client.

Member Function Documentation

◆ operator()()

void System::NewClientSystem::operator() ( Registry registry,
Sparse_array< component::cnetwork_queue_t > &  netqueue,
Sparse_array< component::cnet_id_to_client_id_t > &  netIdToClientId,
Sparse_array< component::clobbies_to_entities_t > &  lobbiesToEntities 
)

Function that will be automaticaly called while the client is working (on loop)

Parameters
registryRegistry of the client
netqueueThe sparse array of network entities
netIdToClientIdThe sparse array of netIdToClientId entities
lobbiesToEntitiesThe sparse array of lobbiesToEntities entities

◆ sendLobbiesStatus()

void System::NewClientSystem::sendLobbiesStatus ( int  clientId,
Sparse_array< component::cnetwork_queue_t > &  networkQueue,
Sparse_array< component::clobbies_to_entities_t > &  lobbiesToEntities 
)

Function that send lobbies status to network queue.

Parameters
clientIdThe sparse array of clientId entities
networkQueueThe sparse array of network entities
lobbiesToEntitiesThe sparse array of lobbiesToEntities entities

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