46 lines
867 B
Protocol Buffer
46 lines
867 B
Protocol Buffer
syntax = "proto3";
|
||
package pb;
|
||
option go_package = "common/proto/pb";
|
||
|
||
import "code.proto";
|
||
|
||
// 踢出玩家
|
||
message NtfKickOutUser
|
||
{
|
||
ErrCode code = 1; // 踢出原因
|
||
}
|
||
|
||
// 玩家进入房间。首次玩家通过匹配服匹配进入玩法服,不需要发该消息
|
||
// 玩家上线后,lobby服查找玩家在哪个玩法服并通知给玩家
|
||
// 玩家收到消息后,发送ReqEnterRoom进入对应玩法服
|
||
message ReqEnterRoom
|
||
{
|
||
|
||
}
|
||
|
||
// 玩家进房间返回。之后玩法服同步房间信息给玩家
|
||
message RspEnterRoom
|
||
{
|
||
ErrCode code = 1;
|
||
int32 gameId = 2; // 玩法id
|
||
int32 roomType = 3; // 房间类型,低级,中级,高级等
|
||
}
|
||
|
||
// 玩家离开房间
|
||
message ReqLeaveRoom
|
||
{
|
||
|
||
}
|
||
|
||
message RspLeaveRoom
|
||
{
|
||
ErrCode code = 1;
|
||
}
|
||
|
||
|
||
// 加钱或扣钱失败通知
|
||
message NtfPayoutFail
|
||
{
|
||
ErrCode code = 1;
|
||
}
|