My Project
NewClientSystem.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** Visual Studio Live Share (Workspace)
4 ** File description:
5 ** NewClientSystem
6 */
7 
8 #ifndef NEWCLIENTSYSTEM_HPP_
9  #define NEWCLIENTSYSTEM_HPP_
10 
11  /* Ecs */
12  #include "Registry.hpp"
13 
14  /* Component */
15  #include "Component/CNetIdToClientId.hpp"
16  #include "Component/CNetworkId.hpp"
17  #include "Component/CNetworkQueue.hpp"
18  #include "Component/CLobbiesToEntities.hpp"
19  #include "Component/CNetworkQueue.hpp"
20 
24 namespace System {
29  public:
34  ~NewClientSystem() = default;
35 
44  void operator()(
45  Registry &registry,
49  );
50 
59  protected:
60  private:
61  };
62 }
63 
64 #endif /* !NEWCLIENTSYSTEM_HPP_ */
System::NewClientSystem::operator()
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)
Definition: NewClientSystem.cpp:27
Sparse_array
Class that handle Element of type Component like a vector which can be holed.
Definition: SparseArray.hpp:22
System
Namespace for systems.
Definition: DirectionSystem.hpp:24
System::NewClientSystem::NewClientSystem
NewClientSystem()
Construct a new New Client System object.
Definition: NewClientSystem.cpp:24
Registry
Class that handle ECS.
Definition: Registry.hpp:22
System::NewClientSystem::sendLobbiesStatus
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.
Definition: NewClientSystem.cpp:51
System::NewClientSystem
NewClientSystem class that handles the new client.
Definition: NewClientSystem.hpp:28