Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
game_event.proto
Go to the documentation of this file.
1
syntax
=
"proto2"
;
2
3
// Sent every time something happens in the game to update the client's state
4
message
GameEvent
{
5
enum
GameEventType
{
6
JOIN
= 1000;
7
LEAVE
= 1001;
8
GAME_CLOSED
= 1002;
9
GAME_HOST_CHANGED
= 1003;
10
KICKED
= 1004;
11
GAME_STATE_CHANGED
= 1005;
12
PLAYER_PROPERTIES_CHANGED
= 1007;
13
GAME_SAY
= 1009;
14
CREATE_ARROW
= 2000;
15
DELETE_ARROW
= 2001;
16
CREATE_COUNTER
= 2002;
17
SET_COUNTER
= 2003;
18
DEL_COUNTER
= 2004;
19
DRAW_CARDS
= 2005;
20
REVEAL_CARDS
= 2006;
21
SHUFFLE
= 2007;
22
ROLL_DIE
= 2008;
23
MOVE_CARD
= 2009;
24
FLIP_CARD
= 2010;
25
DESTROY_CARD
= 2011;
26
ATTACH_CARD
= 2012;
27
CREATE_TOKEN
= 2013;
28
SET_CARD_ATTR
= 2014;
29
SET_CARD_COUNTER
= 2015;
30
SET_ACTIVE_PLAYER
= 2016;
31
SET_ACTIVE_PHASE
= 2017;
32
DUMP_ZONE
= 2018;
33
// STOP_DUMP_ZONE = 2019; // obsolete
34
CHANGE_ZONE_PROPERTIES
= 2020;
35
REVERSE_TURN
= 2021;
36
GAME_LOG_NOTICE
= 2022;
37
}
38
optional sint32 player_id = 1 [
default
= -1];
39
extensions 100 to
max
;
40
}
syntax
syntax
Definition
admin_commands.proto:1
GameEvent
Definition
game_event.proto:4
GameEvent::max
extensions to max
Definition
game_event.proto:40
GameEvent::player_id
optional sint32 player_id
Definition
game_event.proto:39
GameEvent::GameEventType
GameEventType
Definition
game_event.proto:5
GameEvent::DRAW_CARDS
@ DRAW_CARDS
Definition
game_event.proto:19
GameEvent::SHUFFLE
@ SHUFFLE
Definition
game_event.proto:21
GameEvent::FLIP_CARD
@ FLIP_CARD
Definition
game_event.proto:24
GameEvent::PLAYER_PROPERTIES_CHANGED
@ PLAYER_PROPERTIES_CHANGED
Definition
game_event.proto:12
GameEvent::ROLL_DIE
@ ROLL_DIE
Definition
game_event.proto:22
GameEvent::SET_CARD_ATTR
@ SET_CARD_ATTR
Definition
game_event.proto:28
GameEvent::GAME_CLOSED
@ GAME_CLOSED
Definition
game_event.proto:8
GameEvent::CHANGE_ZONE_PROPERTIES
@ CHANGE_ZONE_PROPERTIES
Definition
game_event.proto:35
GameEvent::GAME_HOST_CHANGED
@ GAME_HOST_CHANGED
Definition
game_event.proto:9
GameEvent::DELETE_ARROW
@ DELETE_ARROW
Definition
game_event.proto:15
GameEvent::DUMP_ZONE
@ DUMP_ZONE
Definition
game_event.proto:32
GameEvent::DEL_COUNTER
@ DEL_COUNTER
Definition
game_event.proto:18
GameEvent::CREATE_TOKEN
@ CREATE_TOKEN
Definition
game_event.proto:27
GameEvent::GAME_LOG_NOTICE
@ GAME_LOG_NOTICE
Definition
game_event.proto:37
GameEvent::GAME_STATE_CHANGED
@ GAME_STATE_CHANGED
Definition
game_event.proto:11
GameEvent::CREATE_COUNTER
@ CREATE_COUNTER
Definition
game_event.proto:16
GameEvent::ATTACH_CARD
@ ATTACH_CARD
Definition
game_event.proto:26
GameEvent::SET_ACTIVE_PLAYER
@ SET_ACTIVE_PLAYER
Definition
game_event.proto:30
GameEvent::SET_ACTIVE_PHASE
@ SET_ACTIVE_PHASE
Definition
game_event.proto:31
GameEvent::REVEAL_CARDS
@ REVEAL_CARDS
Definition
game_event.proto:20
GameEvent::JOIN
@ JOIN
Definition
game_event.proto:6
GameEvent::DESTROY_CARD
@ DESTROY_CARD
Definition
game_event.proto:25
GameEvent::CREATE_ARROW
@ CREATE_ARROW
Definition
game_event.proto:14
GameEvent::KICKED
@ KICKED
Definition
game_event.proto:10
GameEvent::SET_COUNTER
@ SET_COUNTER
Definition
game_event.proto:17
GameEvent::SET_CARD_COUNTER
@ SET_CARD_COUNTER
Definition
game_event.proto:29
GameEvent::LEAVE
@ LEAVE
Definition
game_event.proto:7
GameEvent::GAME_SAY
@ GAME_SAY
Definition
game_event.proto:13
GameEvent::MOVE_CARD
@ MOVE_CARD
Definition
game_event.proto:23
GameEvent::REVERSE_TURN
@ REVERSE_TURN
Definition
game_event.proto:36
libcockatrice_protocol
libcockatrice
protocol
pb
game_event.proto
Generated by
1.18.0