mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05:10 -07:00
[Server][Game] Make undo draw failure visible in chat (#6889)
* [Server][Game] Make undo draw failure visible in chat * genericize the proto
This commit is contained in:
parent
5219cffa6b
commit
10b9a65f17
8 changed files with 54 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
// Notifies clients of an event that happened, and which could safely be dropped without affect the game state.
|
||||
// This mostly just means events that should cause a message to be logged to chat.
|
||||
message Event_GameLogNotice {
|
||||
|
||||
// The type of the notice.
|
||||
// Clients who do not recognize the type should drop the event.
|
||||
enum NoticeType {
|
||||
// Player's "undo draw" command failed due to losing track of recent draw
|
||||
UNDO_DRAW_FAILED = 1;
|
||||
}
|
||||
|
||||
extend GameEvent {
|
||||
optional Event_GameLogNotice ext = 2022;
|
||||
}
|
||||
|
||||
optional NoticeType notice_type = 1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue