game/common/pb/match.proto
2025-06-15 22:03:16 +08:00

38 lines
888 B
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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; // 玩家进房间广播
}