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_zone.proto
Go to the documentation of this file.
1
syntax
=
"proto2"
;
2
import
"
serverinfo_card.proto
";
3
4
message
ServerInfo_Zone
{
5
enum
ZoneType
{
6
// PrivateZone: Contents of the zone are always visible to the owner,
7
// but not to anyone else.
8
// PublicZone: Contents of the zone are always visible to anyone.
9
// HiddenZone: Contents of the zone are never visible to anyone.
10
// However, the owner of the zone can issue a dump_zone command,
11
// setting beingLookedAt to true.
12
// Cards in a zone with the type HiddenZone are referenced by their
13
// list index, whereas cards in any other zone are referenced by their ids.
14
//
15
// WARNING: Adding new zone types will break compatibility with older
16
// clients. Older clients will read new zone types as PrivateZone, which
17
// is likely *NOT* what you want.
18
19
PrivateZone
= 0;
20
PublicZone
= 1;
21
HiddenZone
= 2;
22
}
23
optional
string
name
= 1;
24
optional
ZoneType
type
= 2;
25
optional
bool
with_coords
= 3;
26
optional sint32
card_count
= 4;
27
repeated
ServerInfo_Card
card_list
= 5;
28
// Reveal top card to all players.
29
optional
bool
always_reveal_top_card
= 10;
30
// reveal top card to the owner.
31
optional
bool
always_look_at_top_card
= 11;
32
}
syntax
syntax
Definition
admin_commands.proto:1
serverinfo_card.proto
ServerInfo_Card
Definition
serverinfo_card.proto:5
ServerInfo_Zone
Definition
serverinfo_zone.proto:3
ServerInfo_Zone::card_list
repeated ServerInfo_Card card_list
Definition
serverinfo_zone.proto:26
ServerInfo_Zone::name
optional string name
Definition
serverinfo_zone.proto:22
ServerInfo_Zone::always_look_at_top_card
optional bool always_look_at_top_card
Definition
serverinfo_zone.proto:32
ServerInfo_Zone::with_coords
optional bool with_coords
Definition
serverinfo_zone.proto:24
ServerInfo_Zone::type
optional ZoneType type
Definition
serverinfo_zone.proto:23
ServerInfo_Zone::always_reveal_top_card
optional bool always_reveal_top_card
Definition
serverinfo_zone.proto:29
ServerInfo_Zone::card_count
optional sint32 card_count
Definition
serverinfo_zone.proto:25
ServerInfo_Zone::ZoneType
ZoneType
Definition
serverinfo_zone.proto:4
ServerInfo_Zone::PrivateZone
@ PrivateZone
Definition
serverinfo_zone.proto:18
ServerInfo_Zone::PublicZone
@ PublicZone
Definition
serverinfo_zone.proto:19
ServerInfo_Zone::HiddenZone
@ HiddenZone
Definition
serverinfo_zone.proto:20
libcockatrice_protocol
libcockatrice
protocol
pb
serverinfo_zone.proto
Generated by
1.18.0