![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
Classes | |
| struct | GameEvent |
Public Attributes | |
| optional sint32 | card_id = 1 [default = -1] |
| optional string | card_name = 2 |
| optional sint32 | start_player_id = 3 [default = -1] |
| optional string | start_zone = 4 |
| optional sint32 | position = 5 [default = -1] |
| optional sint32 | target_player_id = 6 [default = -1] |
| optional string | target_zone = 7 |
| optional sint32 | x = 8 [default = -1] |
| optional sint32 | y = 9 [default = -1] |
| optional sint32 | new_card_id = 10 [default = -1] |
| optional bool | face_down = 11 |
| optional string | new_card_provider_id = 12 |
Sent by the server to signal a single card was moved to update the client state
| optional sint32 Event_MoveCard::card_id = 1 [default = -1] |
The card id in the original zone
| optional string Event_MoveCard::card_name = 2 |
The name of the card in case it was not known yet
| optional bool Event_MoveCard::face_down = 11 |
If the card is face down, face down cards will not show their name
| optional sint32 Event_MoveCard::new_card_id = 10 [default = -1] |
The new id of the card if the card moved zone
| optional string Event_MoveCard::new_card_provider_id = 12 |
The provider id of the card in case it was not known yet. Extends the name to supply a specific printing of that type of card.
| optional sint32 Event_MoveCard::position = 5 [default = -1] |
The original position that the card was at. In zones without y coordinate, this corresponds with the previous x coordinate of the card. In zones with y coordinate, this value is not used.
| optional sint32 Event_MoveCard::start_player_id = 3 [default = -1] |
The player whose zone the card started in
| optional string Event_MoveCard::start_zone = 4 |
The original zone
| optional sint32 Event_MoveCard::target_player_id = 6 [default = -1] |
The player who owns the new zone the card is in
| optional string Event_MoveCard::target_zone = 7 |
The new zone the card is in
| optional sint32 Event_MoveCard::x = 8 [default = -1] |
The new x coordinate (or new position for zones with no y coordinate)
| optional sint32 Event_MoveCard::y = 9 [default = -1] |
The new y coordinate