servatrice/common/pb/game_event.proto
ebbit1q ebe2c494aa
remove the stop dump zone command from the protocol (#4326)
the stop dump zone command was implemented as a courtesy to other
players in order to take into account when they would stop looking at
unknown information

however, this can be abused, a malicious client can send this command
whenever they would like

cockatrice is not a physical tabletop nor does it aim to be, if you can
take a screenshot of your deck and then close the view, you are not
cheating as you have been given this information

in order to prevent anyone from abusing this we should remove the
command from the protocol, this means servers will ignore this message
and clients will get a little invalid command reply in their debug log

the extension id will remain reserved

shuffling your deck will always invalidate any card view looking at
those cards

if players wish to signal that they stopped looking at their deck for
whatever reason they should just use the chat instead, optionally using
one of the chat macros
2021-06-01 21:52:20 -04:00

37 lines
1 KiB
Protocol Buffer

syntax = "proto2";
message GameEvent {
enum GameEventType {
JOIN = 1000;
LEAVE = 1001;
GAME_CLOSED = 1002;
GAME_HOST_CHANGED = 1003;
KICKED = 1004;
GAME_STATE_CHANGED = 1005;
PLAYER_PROPERTIES_CHANGED = 1007;
GAME_SAY = 1009;
CREATE_ARROW = 2000;
DELETE_ARROW = 2001;
CREATE_COUNTER = 2002;
SET_COUNTER = 2003;
DEL_COUNTER = 2004;
DRAW_CARDS = 2005;
REVEAL_CARDS = 2006;
SHUFFLE = 2007;
ROLL_DIE = 2008;
MOVE_CARD = 2009;
FLIP_CARD = 2010;
DESTROY_CARD = 2011;
ATTACH_CARD = 2012;
CREATE_TOKEN = 2013;
SET_CARD_ATTR = 2014;
SET_CARD_COUNTER = 2015;
SET_ACTIVE_PLAYER = 2016;
SET_ACTIVE_PHASE = 2017;
DUMP_ZONE = 2018;
STOP_DUMP_ZONE = 2019; // deprecated
CHANGE_ZONE_PROPERTIES = 2020;
REVERSE_TURN = 2021;
}
optional sint32 player_id = 1 [default = -1];
extensions 100 to max;
}