pb/match.proto

38 lines
888 B
Protocol Buffer
Raw Normal View History

2025-06-19 21:57:32 +08:00
syntax = "proto3";
package pb;
option go_package = "common/proto/pb";
import "code.proto";
import "user.proto";
import "service.proto";
// 房间匹配
message ReqMatchRoom
{
ServiceTypeId gameId = 1; // 玩法id
int32 roomType = 2; // 房间类型,低级,中级,高级等
}
// 玩家进房间返回 匹配服返回该消息假房间。匹配成功后发给对应玩法服玩法服发NotifyUserEnterRoom才是真房间
message RspMatchRoom
{
// color玩法配置信息
message ColorInfo
{
}
ErrCode code = 1;
ServiceTypeId gameId = 2; // 玩法id
int32 roomType = 3; // 房间类型,低级,中级,高级等
GameUser User = 4; // 玩家数据
ColorInfo colorInfo = 20; // color玩法配置信息
}
message NotifyUserEnterRoom
{
repeated GameUser User = 1; // 玩家进房间广播
}