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