Module types

Module types 

Source
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§

AdminGameInfo
Admin game info (for admin panel).
DebugPlayerInfo
Player info in debug state response.
DebugWebsocketContext
WebSocket connection context in debug state response.
GameConfig
Configuration options for starting a new game.
GamePlayerInfo
Player info specifically for GameStarted message (includes turn order).
GameSnapshot
Complete snapshot of the game state.
GameSummary
Summary of a game visible from the lobby.
GridCell
A single cell in the game grid.
LobbyGameInfo
Game info as shown in lobby games list.
LobbyGamePlayerInfo
Player info in lobby game list (simplified).
LobbyPlayerInfo
Player information in the lobby (pre-game).
PlayerInfo
Player information during a game.
Position
Grid position (row, column).
ScoreInfo
Score information for results/leaderboards.
SpectatorInfo
Spectator information.

Enums§

DebugBackendGameState
Backend game state in debug state response.
DebugHandlerGameState
Handler game state in debug state response.
DebugLobbyState
Lobby state in debug state response.
ErrorCode
Standard error codes for protocol errors.
GameChange
Changes to game state (for delta updates).
GameMode
Game mode variants.
GameState
High-level game state (not the full game data).
GameType
Game type for game pools within a lobby.
LobbyChange
Changes to lobby state (for delta updates instead of full snapshots).
LobbyType
Type of lobby - determines how players join.
Multiplier
Letter multiplier on a grid cell.
RematchCountdownState
State of the auto-rematch countdown after a game ends.
TimerVoteState
State of the timer vote system.

Type Aliases§

Grid
The 5x5 game grid.