You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
826 B
Protocol Buffer

syntax = "proto3";
package pb.room;
option go_package = "dcg/game/pb/room;pbRoom";
// GameType 游戏类型
enum GameType {
ZHG = 0; // 指挥官
ZHGHZ = 1; // 指挥官-海战
ZHGFB = 2; // 指挥官-副本
ZHGZD = 3; // 指挥官-阵地
ZHGWW2 = 4; // 指挥官-二战
TEST = 10; // 测试
}
message CreateRoomReq {
GameType GameType = 1; // 游戏类型(游戏类型)
}
message JoinRoomReq {
message LiveRoom {
int64 liveRoomId = 1; // 直播间ID
string platform = 2; // 直播间对应平台
}
repeated LiveRoom liveRooms = 1; // 客户端对应直播间列表
GameType GameType = 2; // 游戏类型(游戏类型)
int64 roomId = 3; // 现有游戏房间ID 0表示加入默认房间 否则将直接加入对应ID房间
}
message JoinRoomResp {
int64 Code = 1;
string Result = 2;
}