pb/common.proto
2025-06-19 21:57:32 +08:00

46 lines
867 B
Protocol Buffer
Raw Permalink 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";
// 踢出玩家
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;
}