Cockatrice/libcockatrice_protocol/libcockatrice/protocol/pb/serverinfo_room.proto
BruebachL be38e8d429
[Protocol] Add room chat channel extensions and catalog payload (#7475)
* [Protocol] Add room chat channel extensions and catalog payload

* [Protocol] Add per-channel write level and banner to room channel catalog

Adds two optional fields to ServerInfo_RoomChannel:

- write_access_level: minimum privilege level required to send to the
  channel. When unset, writing requires the same level as reading
  (access_level), preserving the previous single-level behavior. This
  allows read-mostly channels such as a developer news feed: readable
  by everyone, writable only by developers.
- banner_message: static notice shown at the top of the channel,
  analogous to the room join message on Main. Empty means none.

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-10-16 22:46:37 +02:00

20 lines
673 B
Protocol Buffer

syntax = "proto2";
import "serverinfo_game.proto";
import "serverinfo_user.proto";
import "serverinfo_gametype.proto";
import "serverinfo_room_channel.proto";
message ServerInfo_Room {
optional sint32 room_id = 1;
optional string name = 2;
optional string description = 3;
optional uint32 game_count = 4;
optional uint32 player_count = 5;
optional bool auto_join = 6;
repeated ServerInfo_Game game_list = 7;
repeated ServerInfo_User user_list = 8;
repeated ServerInfo_GameType gametype_list = 9;
optional string permissionlevel = 10;
optional string privilegelevel = 11;
repeated ServerInfo_RoomChannel channel_list = 12;
}