mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 02:53:56 -07:00
Log number of cards revealed to other players. (#3555)
This commit is contained in:
parent
2bf444e4b7
commit
a719e3b306
3 changed files with 4 additions and 1 deletions
|
|
@ -11,4 +11,5 @@ message Event_RevealCards {
|
|||
optional sint32 other_player_id = 3 [default = -1];
|
||||
repeated ServerInfo_Card cards = 4;
|
||||
optional bool grant_write_access = 5;
|
||||
optional uint32 number_of_cards = 6;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1660,6 +1660,7 @@ Server_Player::cmdRevealCards(const Command_RevealCards &cmd, ResponseContainer
|
|||
Event_RevealCards eventOthers;
|
||||
eventOthers.set_grant_write_access(cmd.grant_write_access());
|
||||
eventOthers.set_zone_name(zone->getName().toStdString());
|
||||
eventOthers.set_number_of_cards(cardsToReveal.size());
|
||||
if (cmd.has_card_id())
|
||||
eventOthers.set_card_id(cmd.card_id());
|
||||
if (cmd.has_player_id())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue