My Project
DisconnectionSystem.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4 ** File description:
5 ** DisconnectionSystem
6 */
7 
8 #ifndef DISCONNECTIONSYSTEM_HPP_
9  #define DISCONNECTIONSYSTEM_HPP_
10 
11  /* Ecs */
12  #include "Registry.hpp"
13 
14  /* Component*/
15  #include "Component/CNetworkQueue.hpp"
16  #include "Component/CLobbyId.hpp"
17  #include "Component/CLobbiesToEntities.hpp"
18  #include "Component/CNetIdToClientId.hpp"
19  #include "Component/CDisconnected.hpp"
20 
24 namespace System {
29  public:
34  ~DisconnectionSystem() = default;
35 
46  void operator()(
47  Registry &registry,
53  );
54 
55  protected:
56  private:
57  };
58 }
59 
60 #endif /* !DISCONNECTIONSYSTEM_HPP_ */
Sparse_array
Class that handle Element of type Component like a vector which can be holed.
Definition: SparseArray.hpp:22
System::DisconnectionSystem::operator()
void operator()(Registry &registry, Sparse_array< component::cnetwork_queue_t > &network_queues, 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, Sparse_array< component::cdisconnected_t > &disconnected)
The main handler for the Disconnection System.
Definition: DisconnectionSystem.cpp:26
System
Namespace for systems.
Definition: DirectionSystem.hpp:24
Registry
Class that handle ECS.
Definition: Registry.hpp:22
System::DisconnectionSystem
The Disconnection System class, it handles disconnection of a client.
Definition: DisconnectionSystem.hpp:28
System::DisconnectionSystem::DisconnectionSystem
DisconnectionSystem()
Construct a new Disconnection System object.
Definition: DisconnectionSystem.cpp:22