Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
ServerInfo_Zone Struct Reference
Collaboration diagram for ServerInfo_Zone:
[legend]

Public Types

enum  ZoneType { PrivateZone = 0 , PublicZone = 1 , HiddenZone = 2 }

Public Attributes

optional string name = 1
optional ZoneType type = 2
optional bool with_coords = 3
optional sint32 card_count = 4
repeated ServerInfo_Card card_list = 5
optional bool always_reveal_top_card = 10
optional bool always_look_at_top_card = 11

Member Enumeration Documentation

◆ ZoneType

Enumerator
PrivateZone 

PrivateZone: Contents of the zone are always visible to the owner, but not to anyone else. PublicZone: Contents of the zone are always visible to anyone. HiddenZone: Contents of the zone are never visible to anyone. However, the owner of the zone can issue a dump_zone command, setting beingLookedAt to true. Cards in a zone with the type HiddenZone are referenced by their list index, whereas cards in any other zone are referenced by their ids.

WARNING: Adding new zone types will break compatibility with older clients. Older clients will read new zone types as PrivateZone, which is likely NOT what you want.

PublicZone 
HiddenZone 

Member Data Documentation

◆ always_look_at_top_card

optional bool ServerInfo_Zone::always_look_at_top_card = 11

reveal top card to the owner.

◆ always_reveal_top_card

optional bool ServerInfo_Zone::always_reveal_top_card = 10

Reveal top card to all players.

◆ card_count

optional sint32 ServerInfo_Zone::card_count = 4

◆ card_list

repeated ServerInfo_Card ServerInfo_Zone::card_list = 5

◆ name

optional string ServerInfo_Zone::name = 1

◆ type

optional ZoneType ServerInfo_Zone::type = 2

◆ with_coords

optional bool ServerInfo_Zone::with_coords = 3

The documentation for this struct was generated from the following file: