mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
* [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>
13 lines
302 B
Protocol Buffer
13 lines
302 B
Protocol Buffer
syntax = "proto2";
|
|
message RoomEvent {
|
|
enum RoomEventType {
|
|
LEAVE_ROOM = 1000;
|
|
JOIN_ROOM = 1001;
|
|
ROOM_SAY = 1002;
|
|
LIST_GAMES = 1003;
|
|
REMOVE_MESSAGES = 1004;
|
|
ROOM_CHANNEL_SAY = 1005;
|
|
}
|
|
optional sint32 room_id = 1;
|
|
extensions 100 to max;
|
|
}
|