From fb5d7f37cd0d2e75e8725513b78d0144a6eb1b60 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 12 Mar 2024 21:05:29 +0800 Subject: [PATCH] 1 --- server/matchserver/constant/constant.go | 6 ++++++ server/matchserver/proto/cs_msgid.proto | 1 + server/matchserver/proto/cs_proto.proto | 14 ++++++++++++++ 3 files changed, 21 insertions(+) diff --git a/server/matchserver/constant/constant.go b/server/matchserver/constant/constant.go index b846dd19..b60221c9 100644 --- a/server/matchserver/constant/constant.go +++ b/server/matchserver/constant/constant.go @@ -16,6 +16,12 @@ const ( IM_WSP_CLOSE = f5.IM_CUSTOM_MSG_BEGIN + 1 ) +const ( + TEAM_STAET_INIT = 0 + TEAM_STAET_STARTED = 1 + TEAM_STAET_MATCHING = 2 +) + const ( MAX_PACKET_LEN = 1024 * 64 ) diff --git a/server/matchserver/proto/cs_msgid.proto b/server/matchserver/proto/cs_msgid.proto index 9a07cd6e..271ffc51 100644 --- a/server/matchserver/proto/cs_msgid.proto +++ b/server/matchserver/proto/cs_msgid.proto @@ -35,4 +35,5 @@ enum SMMessageId_e _SMGrantInvitePermission = 114; _SMTeamUpdateNotify = 1001; + _SMTeamStateNotify = 1002; } diff --git a/server/matchserver/proto/cs_proto.proto b/server/matchserver/proto/cs_proto.proto index 1fe710dd..aa781d6d 100644 --- a/server/matchserver/proto/cs_proto.proto +++ b/server/matchserver/proto/cs_proto.proto @@ -111,6 +111,13 @@ message MFHero optional int32 quality = 2; //英雄品阶 } +//加入房间消息 +message MFJoinMsg +{ + optional string team_uuid = 1; //用于发CMMove + optional string payload = 2; //透传数据 +} + //队伍成员 message MFTeamMember { @@ -273,3 +280,10 @@ message SMTeamUpdateNotify { optional MFTeam team_info = 1; //队伍信息 } + +//队伍状态通知(会发多次!!!) +message SMTeamStateNotify +{ + optional int32 state = 1; //0:已取消 1:已开始 2:正在匹配(moba模式) + optional MFJoinMsg join_msg = 2; //进入房间传的字段(只有一开始才生效) +}