Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
serverinfo_card.proto
Go to the documentation of this file.
1syntax = "proto2";
3
4// Container for all the properties of a single card
6 // unique card id in this zone
7 optional sint32 id = 1 [default = -1];
9 // name of this kind of card
10 optional string name = 2;
12 // x coordinate in zone
13 optional sint32 x = 3 [default = -1];
15 // y coordinate in zone
16 optional sint32 y = 4 [default = -1];
18 // if the card is face_down, hiding its information
19 optional bool face_down = 5;
21 // if the card is tapped, turned sideways
22 optional bool tapped = 6;
24 // if the card is marked as attacking
25 optional bool attacking = 7;
27 // the card's color
28 optional string color = 8;
30 // the power/toughness field, displayed on the bottom right
31 optional string pt = 9;
33 // an optional string placed over the card
34 optional string annotation = 10;
36 // whether the card should be deleted when removed from the table, like a token
37 optional bool destroy_on_zone_change = 11;
39 // whether the card should not be untapped when the untap command is sent
40 optional bool doesnt_untap = 12;
42 // list of counters on the card
45 // the player that owns the card this is attached to
46 optional sint32 attach_player_id = 14 [default = -1];
48 // the zone of the card this is attached to
49 optional string attach_zone = 15;
51 // the unique id of the card in that zone
52 optional sint32 attach_card_id = 16 [default = -1];
54 // unique id of this kind of card, extends the name to specify a specific printing of a card
55 optional string provider_id = 17;
syntax
Definition admin_commands.proto:1
Definition serverinfo_cardcounter.proto:2
Definition serverinfo_card.proto:5
optional string name
Definition serverinfo_card.proto:11
optional bool destroy_on_zone_change
Definition serverinfo_card.proto:38
optional string provider_id
Definition serverinfo_card.proto:56
optional bool face_down
Definition serverinfo_card.proto:20
optional string attach_zone
Definition serverinfo_card.proto:50
optional sint32 y
Definition serverinfo_card.proto:17
optional sint32 attach_player_id
Definition serverinfo_card.proto:47
optional bool attacking
Definition serverinfo_card.proto:26
optional string pt
Definition serverinfo_card.proto:32
repeated ServerInfo_CardCounter counter_list
Definition serverinfo_card.proto:44
optional bool tapped
Definition serverinfo_card.proto:23
optional sint32 attach_card_id
Definition serverinfo_card.proto:53
optional bool doesnt_untap
Definition serverinfo_card.proto:41
optional sint32 x
Definition serverinfo_card.proto:14
optional string annotation
Definition serverinfo_card.proto:35
optional string color
Definition serverinfo_card.proto:29