R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
NetworkEvent.cpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** Created by hugo on 06/12/2025
4** File description:
5** NetworkEvent.cpp
6*/
7
9
10namespace server {
11
12 NetworkEvent::NetworkEvent(Type type, int clientId) : _type(type), _clientId(clientId) {}
13
17
19 return _clientId;
20 }
21
22} // namespace server
NetworkEvent(Type type, int clientId=-1)
Type getType() const
Get the type of the network event.
int getClientId() const
Get the ID of the client related to this event.