Expand description
Shared types used in protocol messages.
These types are used by both client and server messages and represent the core data structures of the game.
Structs§
- Admin
Game Info - Admin game info (for admin panel).
- Debug
Player Info - Player info in debug state response.
- Debug
Websocket Context - WebSocket connection context in debug state response.
- Game
Config - Configuration options for starting a new game.
- Game
Player Info - Player info specifically for
GameStartedmessage (includes turn order). - Game
Snapshot - Complete snapshot of the game state.
- Game
Summary - Summary of a game visible from the lobby.
- Grid
Cell - A single cell in the game grid.
- Lobby
Game Info - Game info as shown in lobby games list.
- Lobby
Game Player Info - Player info in lobby game list (simplified).
- Lobby
Player Info - Player information in the lobby (pre-game).
- Player
Info - Player information during a game.
- Position
- Grid position (row, column).
- Score
Info - Score information for results/leaderboards.
- Spectator
Info - Spectator information.
Enums§
- Debug
Backend Game State - Backend game state in debug state response.
- Debug
Handler Game State - Handler game state in debug state response.
- Debug
Lobby State - Lobby state in debug state response.
- Error
Code - Standard error codes for protocol errors.
- Game
Change - Changes to game state (for delta updates).
- Game
Mode - Game mode variants.
- Game
State - High-level game state (not the full game data).
- Game
Type - Game type for game pools within a lobby.
- Lobby
Change - Changes to lobby state (for delta updates instead of full snapshots).
- Lobby
Type - Type of lobby - determines how players join.
- Multiplier
- Letter multiplier on a grid cell.
- Rematch
Countdown State - State of the auto-rematch countdown after a game ends.
- Timer
Vote State - State of the timer vote system.
Type Aliases§
- Grid
- The 5x5 game grid.