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