mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-06 01:53:25 -08:00
Add distinct random hand reveals with private recipient delivery
This commit is contained in:
parent
e08402ac94
commit
ccdee18db2
14 changed files with 418 additions and 8 deletions
|
|
@ -10,3 +10,13 @@ message Command_RevealCards {
|
|||
optional bool grant_write_access = 4;
|
||||
optional sint32 top_cards = 5 [default = -1];
|
||||
}
|
||||
|
||||
// Separate extension so older servers reject the operation without revealing any cards.
|
||||
message Command_RevealRandomCards {
|
||||
extend GameCommand {
|
||||
optional Command_RevealRandomCards ext = 1036;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 number_of_cards = 2;
|
||||
optional sint32 player_id = 3 [default = -1];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -180,6 +180,11 @@ message GameCommand {
|
|||
/// Server: Server_Player::cmdSetPlaymat
|
||||
/// Client: reflected via player properties changed event
|
||||
SET_PLAYMAT = 1035;
|
||||
|
||||
/// Reveal a distinct random sample without exposing identities to other recipients.
|
||||
/// Server: Server_AbstractPlayer::cmdRevealCards
|
||||
/// Client: PlayerEventHandler::eventRevealCards
|
||||
REVEAL_RANDOM_CARDS = 1036;
|
||||
}
|
||||
|
||||
extensions 100 to max;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue