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

System in charge of handle start of game. More...

#include <StartGameSystem.hpp>

Public Member Functions

 StartGameSystem ()
 Construct a new Start Game System object.
 
Entity createSpaceShip (Registry &registry, int lobbyId)
 Create a Space Ship object. More...
 
void operator() (Registry &registry, Sparse_array< component::cnetwork_queue_t > &netqueue, Sparse_array< component::clobby_id_t > &LobbyId, Sparse_array< component::cnet_id_to_client_id_t > &netIdToClientId, Sparse_array< component::clobbies_to_entities_t > &lobbiesToEntities, Sparse_array< component::cposition_t > &position, Sparse_array< component::ctype_t > &type, Sparse_array< component::clobbies_status_t > &lobbiesStatus, Sparse_array< component::chealth_t > &health)
 The main handler for the StartGame System. More...
 

Detailed Description

System in charge of handle start of game.

Member Function Documentation

◆ createSpaceShip()

Entity System::StartGameSystem::createSpaceShip ( Registry registry,
int  lobbyId 
)

Create a Space Ship object.

Parameters
registryThe registry that contains all the ECS
Returns
Entity The new spaceShip entity

◆ operator()()

void System::StartGameSystem::operator() ( Registry registry,
Sparse_array< component::cnetwork_queue_t > &  netqueue,
Sparse_array< component::clobby_id_t > &  LobbyId,
Sparse_array< component::cnet_id_to_client_id_t > &  netIdToClientId,
Sparse_array< component::clobbies_to_entities_t > &  lobbiesToEntities,
Sparse_array< component::cposition_t > &  position,
Sparse_array< component::ctype_t > &  type,
Sparse_array< component::clobbies_status_t > &  lobbiesStatus,
Sparse_array< component::chealth_t > &  health 
)

The main handler for the StartGame System.

Parameters
registryThe registry that contains all the ECS
netqueueThe sparse array of network entities
LobbyIdThe sparse array of lobbyId entities
netIdToClientIdThe sparse array of netIdToClientId entities
lobbiesToEntitiesThe sparse array of lobbiesToEntities entities
positionThe sparse array of position entities
typeThe sparse array of type entities
lobbiesStatusThe sparse array of lobbiesStatus entities

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