Add distinct random hand reveals with private recipient delivery

This commit is contained in:
Bryce! 2026-11-01 21:59:21 -05:00
parent e08402ac94
commit ccdee18db2
14 changed files with 418 additions and 8 deletions

View file

@ -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];
}

View file

@ -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;