group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PacketType.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <cstdint>
7
PacketType
Identifies the type of a network packet.
Definition PacketType.hpp:10
@ VOICE_FRAME
Client <-> Server: Opus voice frame for proximity chat.
Definition PacketType.hpp:74
@ PONG
Server -> Client: latency measurement reply (echoes timestamp).
Definition PacketType.hpp:16
@ PARTICLE_SPAWN
Server -> All clients: replicated particle/VFX event.
Definition PacketType.hpp:14
@ ASSIGN_CLIENT_ID
Server -> Client: assign the connecting client its entity ID.
Definition PacketType.hpp:12
@ SHOT_DEBUG_REPORT
Server -> single shooter: lag-comp shot debug snapshot.
Definition PacketType.hpp:41
@ UPDATE_REGISTRY_DELTA
Server -> Client: delta against a previously-received full snapshot.
Definition PacketType.hpp:29
@ LOBBY_STATE
Server -> single Client: full lobby snapshot on join. Format: [count:u32][LobbyPlayer*count].
Definition PacketType.hpp:67
@ VOICE_STATE
Client <-> Server: push-to-talk state hint for HUD indicators.
Definition PacketType.hpp:75
@ JOIN_LOBBY
Client -> Server: request to join the lobby (carries player name).
Definition PacketType.hpp:62
@ SHOT_INTENT
Client -> Server: animation-state assertion for a single shot.
Definition PacketType.hpp:60
@ JOIN_FAILED
Server -> Client: lobby join failed (carries error message).
Definition PacketType.hpp:63
@ UPDATE_MATCH_CONFIG
Client -> Server: update match config (e.g. kill threshold to win).
Definition PacketType.hpp:81
@ MATCH_CONFIG
Server -> All clients: broadcast match config on change and on join.
Definition PacketType.hpp:82
@ UPDATE_REGISTRY
Server -> Client: full ECS registry state snapshot.
Definition PacketType.hpp:13
@ START_MATCH
Client -> Server: host requests match start.
Definition PacketType.hpp:69
@ PLAYER_UNREADY
Client -> Server: player cancels ready status.
Definition PacketType.hpp:65
@ REQUEST_SERVER_SHUTDOWN
Client -> Server: current host requests authoritative server shutdown.
Definition PacketType.hpp:85
@ TEXT_CHAT
Server -> Clients: player join/leaves (used for midmatch).
Definition PacketType.hpp:73
@ HOST_READY
Client -> Server: host signals ready to start match.
Definition PacketType.hpp:68
@ LOBBY_UPDATE
Server -> All clients: lobby state update (player list, match start countdown).
Definition PacketType.hpp:66
@ KILL_EVENT
Server -> All clients: player kill notification.
Definition PacketType.hpp:18
@ CANCEL_START_MATCH
Client -> Server: host cancels an active lobby start countdown.
Definition PacketType.hpp:70
@ INPUT
Client -> Server: player input snapshot.
Definition PacketType.hpp:11
@ PLAYER_READY
Client -> Server: player signals ready for match start.
Definition PacketType.hpp:64
@ PHYSICS_DIAG_RECORDING
Client -> Server: start/stop authoritative physics CSV recording.
Definition PacketType.hpp:76
@ UPDATE_DISCOVERY_SETTINGS
Client -> Server: host updates global/LAN advertisement toggles.
Definition PacketType.hpp:83
@ PING
Client -> Server: latency measurement (carries uint64_t timestamp).
Definition PacketType.hpp:15
@ MATCH_STATE
Server -> All clients: match phase transition update.
Definition PacketType.hpp:17
@ LOCAL_SERVER_DISCOVERY_REQUEST
client broadcasts to server, which responds with response below
Definition PacketType.hpp:78
@ LOCAL_SERVER_DISCOVERY_RESPONSE
Definition PacketType.hpp:79
@ ROSTER_UPDATE
Definition PacketType.hpp:71
@ GAMEPLAY_READY
Client -> Server: signals that the client has finished loading and is ready to begin match.
Definition PacketType.hpp:86