unreliable packets
All checks were successful
Linux arm64 / Build (pull_request) Successful in 1m37s

This commit is contained in:
2024-08-20 19:27:20 +02:00
parent f557d0dd2d
commit 03b6e577ea
5 changed files with 144 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ namespace protocol {
* \enum PacketSender
* \brief Indicate who should send a packet
*/
enum class PacketSender {
enum class PacketSenderType {
/** Sent by clients and server */
Both,
/** Sent by clients to the server */
@@ -36,7 +36,7 @@ enum class PacketSender {
DeclarePacket(PlayerLeave, Reliable, Server) \
DeclarePacket(PlayerList, Reliable, Server) \
DeclarePacket(PlayerLogin, Reliable, Client) \
DeclarePacket(PlayerPositionAndRotation, Reliable, Both) \
DeclarePacket(PlayerPositionAndRotation, Unreliable, Both) \
DeclarePacket(PlayerShoot, Reliable, Both) \
DeclarePacket(PlayerStats, Reliable, Server) \
DeclarePacket(ServerConfig, Reliable, Server) \