8 #ifndef NETWORKSYSTEM_HPP_
9 #define NETWORKSYSTEM_HPP_
11 #include <unordered_map>
14 #include "Serialization.hpp"
17 #include "Registry.hpp"
20 #include "Component/CNetworkQueue.hpp"
Class that handle Element of type Component like a vector which can be holed.
Definition: SparseArray.hpp:22
void dispatchUpdateEntityScoreQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the update entity score queue.
Definition: NetworkSystem.cpp:107
Namespace for systems.
Definition: DirectionSystem.hpp:24
NetworkSystem class that handles the communication using queues with the server to send it tasks as p...
Definition: NetworkSystem.hpp:29
void operator()(Registry ®istry, Sparse_array< component::cnetwork_queue_t > &network)
Function that will be automaticaly called while the client is working (on loop)
Definition: NetworkSystem.cpp:40
void dispatchToGetLobbiesQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the get lobbies queue.
Definition: NetworkSystem.cpp:83
NetworkSystem()
Construct a new Network System object.
Definition: NetworkSystem.cpp:23
void dispatchUpdateEntityHealthQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the update entity health queue.
Definition: NetworkSystem.cpp:101
void dispatchToKillEntityQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the kill entity queue.
Definition: NetworkSystem.cpp:71
Class that handle ECS.
Definition: Registry.hpp:22
void dispatchToKillEntityTypeQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the kill entity type queue.
Definition: NetworkSystem.cpp:77
void dispatchToPositionQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the position queue.
Definition: NetworkSystem.cpp:59
void dispatchToNewEntityQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the new entity queue.
Definition: NetworkSystem.cpp:65
void dispatchEndGameQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the end Game queue.
Definition: NetworkSystem.cpp:119
void dispatchNewLevelQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the new level queue.
Definition: NetworkSystem.cpp:113
void dispatchNbPlayersInLobbyQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the Nb Players in queue.
Definition: NetworkSystem.cpp:89
void dispatchNetworkClientIdQueue(std::vector< byte > const &bytes, Sparse_array< component::cnetwork_queue_t > &network)
A method to send informations to the network client id queue.
Definition: NetworkSystem.cpp:95