group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PacketType.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5enum class PacketType : uint8_t
6{
7 // Client -> Server
8 INPUT,
9
10 // Server -> Client
13
14 // Server -> All clients (particle effect replication)
16
17 // Bidirectional (latency measurement)
18 PING, // Client -> Server (carries uint64_t timestamp)
19 PONG, // Server -> Client (echoes timestamp back)
20
21 // Server -> All clients (match status updates)
23};
PacketType
Definition PacketType.hpp:6