[Server][Game] Make undo draw failure visible in chat

This commit is contained in:
RickyRister 2026-05-13 02:31:57 -07:00
parent 5219cffa6b
commit b4da05e75f
8 changed files with 35 additions and 0 deletions

View file

@ -106,6 +106,7 @@ set(PROTO_FILES
event_set_card_counter.proto
event_set_counter.proto
event_shuffle.proto
event_undo_draw_failed.proto
event_user_joined.proto
event_user_left.proto
event_user_message.proto

View file

@ -0,0 +1,9 @@
syntax = "proto2";
import "game_event.proto";
message Event_UndoDrawFailed {
extend GameEvent {
optional Event_UndoDrawFailed ext = 2022;
}
optional sint32 phase = 1;
}

View file

@ -33,6 +33,7 @@ message GameEvent {
// STOP_DUMP_ZONE = 2019; // obsolete
CHANGE_ZONE_PROPERTIES = 2020;
REVERSE_TURN = 2021;
UNDO_DRAW_FAILED = 2022;
}
optional sint32 player_id = 1 [default = -1];
extensions 100 to max;