Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
serverinfo_zone.proto
Go to the documentation of this file.
1syntax = "proto2";
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.
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;
syntax
Definition admin_commands.proto:1
Definition serverinfo_card.proto:5
Definition serverinfo_zone.proto:3
repeated ServerInfo_Card card_list
Definition serverinfo_zone.proto:26
optional string name
Definition serverinfo_zone.proto:22
optional bool always_look_at_top_card
Definition serverinfo_zone.proto:32
optional bool with_coords
Definition serverinfo_zone.proto:24
optional ZoneType type
Definition serverinfo_zone.proto:23
optional bool always_reveal_top_card
Definition serverinfo_zone.proto:29
optional sint32 card_count
Definition serverinfo_zone.proto:25
ZoneType
Definition serverinfo_zone.proto:4
@ PrivateZone
Definition serverinfo_zone.proto:18
@ PublicZone
Definition serverinfo_zone.proto:19
@ HiddenZone
Definition serverinfo_zone.proto:20