diff --git a/server/gameserver/pbutils.cc b/server/gameserver/pbutils.cc index e6f07538..eac116d6 100644 --- a/server/gameserver/pbutils.cc +++ b/server/gameserver/pbutils.cc @@ -3082,6 +3082,7 @@ void CustomBattle::NotifyState() auto info = notify_msg.mutable_info(); info->set_map_id(GetMapId()); info->set_state(state_); + info->set_is_moba(IsMoba() ? 1 : 0); TraverseTeamList ( [info] (std::shared_ptr team) -> bool diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index d6ca1114..f10c8ad2 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -1535,6 +1535,7 @@ message MFBattlePreInfo repeated MFBattlePreTeam team_list = 1; //成员列表(通过判断account_id获取自己所在队伍,如果是观战则找不到) optional int32 state = 2; //0:准备阶段 1:可以开始 这时服务器会通知后续的SMJoinedNotify和SMMapInfo信息 optional int32 map_id = 3; //地图id + optional int32 is_moba = 4; //是否moba模式 } //游戏内语音击杀信息