servatrice/common/pb/serverinfo_zone.proto
Gavin Bisesi 0734b81e6e Remove 'syntax = proto2' from .proto files.
That marker is only recognized by pb3-compatible compilers, meaning that
tools which are otherwise compatible with our files break on them.
Notably, this includes hprotoc (for haskell).
2016-01-14 08:09:40 -05:00

24 lines
928 B
Protocol Buffer

import "serverinfo_card.proto";
message ServerInfo_Zone {
enum ZoneType {
// 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.
PrivateZone = 0;
PublicZone = 1;
HiddenZone = 2;
}
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;
}