My Project
Client
Source
System
SetNbPlayerInLobbySystem
SetNbPlayerInLobbySystem.hpp
1
/*
2
** EPITECH PROJECT, 2022
3
** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4
** File description:
5
** SetNbPlayerInLobbySystem
6
*/
7
8
#ifndef SETNBPLAYERINLOBBYSYSTEM_HPP_
9
#define SETNBPLAYERINLOBBYSYSTEM_HPP_
10
11
/* Ecs */
12
#include "Registry.hpp"
13
14
/* Component */
15
#include "Component/CNetworkQueue.hpp"
16
20
namespace
System
{
24
class
SetNbPlayerInLobbySystem
{
25
public
:
29
SetNbPlayerInLobbySystem
();
30
~
SetNbPlayerInLobbySystem
() =
default
;
31
38
void
operator()
(
39
Registry
®istry,
40
Sparse_array<component::cnetwork_queue_t>
&networkQueue
41
);
42
43
protected
:
44
private
:
45
};
46
}
47
48
#endif
/* !SETNBPLAYERINLOBBYSYSTEM_HPP_ */
Sparse_array
Class that handle Element of type Component like a vector which can be holed.
Definition:
SparseArray.hpp:22
System::SetNbPlayerInLobbySystem::SetNbPlayerInLobbySystem
SetNbPlayerInLobbySystem()
Set the Nb Player In Lobby System object.
Definition:
SetNbPlayerInLobbySystem.cpp:13
System
Namespace for systems.
Definition:
DirectionSystem.hpp:24
Registry
Class that handle ECS.
Definition:
Registry.hpp:22
System::SetNbPlayerInLobbySystem
System that set number of player in Lobby.
Definition:
SetNbPlayerInLobbySystem.hpp:24
System::SetNbPlayerInLobbySystem::operator()
void operator()(Registry ®istry, Sparse_array< component::cnetwork_queue_t > &networkQueue)
Function that will be automaticaly called while the client is working (on loop)
Definition:
SetNbPlayerInLobbySystem.cpp:17
Generated by
1.8.17