syntax = "proto3"; package pb; option go_package = "common/proto/pb"; import "code.proto"; import "user.proto"; // 房间匹配 message C2SMatchRoom { int32 PlayType = 1; // 玩法id int32 RoomType = 2; // 房间类型,低级,中级,高级等 } // 玩家进房间返回 匹配服返回该消息,假房间。匹配成功后发给对应玩法服,玩法服发NotifyUserEnterRoom才是真房间 message S2CMatchRoom { // color玩法配置信息 message ColorInfo { } ErrCode code = 1; int32 PlayType = 2; // 玩法id int32 RoomType = 3; // 房间类型,低级,中级,高级等 GameUser User = 4; // 玩家数据 ColorInfo colorInfo = 20; // color玩法配置信息 } message NotifyUserEnterRoom { repeated GameUser User = 1; // 玩家进房间广播 }