Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Event_GameStateChanged Struct Reference
Collaboration diagram for Event_GameStateChanged:
[legend]

Classes

struct  GameEvent

Public Attributes

repeated ServerInfo_Player player_list = 1
optional bool game_started = 2
optional sint32 active_player_id = 3
optional sint32 active_phase = 4
optional uint32 seconds_elapsed = 5

Detailed Description

Signals that the game state has changed. If a field is present in this message, it will overwrite the client's game state. Also used to provide the entire game state when joining a game.

Member Data Documentation

◆ active_phase

optional sint32 Event_GameStateChanged::active_phase = 4

the current phase

◆ active_player_id

optional sint32 Event_GameStateChanged::active_player_id = 3

the player who is currently holding the turn

◆ game_started

optional bool Event_GameStateChanged::game_started = 2

if the game has started

◆ player_list

repeated ServerInfo_Player Event_GameStateChanged::player_list = 1

the list of players. Players contain their zones which contain all cards in the game

◆ seconds_elapsed

optional uint32 Event_GameStateChanged::seconds_elapsed = 5

the amount of seconds since the game started


The documentation for this struct was generated from the following file: