1
This commit is contained in:
parent
c07ee02788
commit
0dbd6af8f4
@ -235,6 +235,7 @@ void MatchTeam::SyncMatchInfo()
|
|||||||
}
|
}
|
||||||
notifymsg.mutable_info()->set_phase(phase_);
|
notifymsg.mutable_info()->set_phase(phase_);
|
||||||
notifymsg.mutable_info()->set_countdown(phase_left_time_);
|
notifymsg.mutable_info()->set_countdown(phase_left_time_);
|
||||||
|
notifymsg.mutable_info()->set_predict_time(MetaMgr::Instance()->match_team_time);
|
||||||
for (auto& member : curr_member_hash_) {
|
for (auto& member : curr_member_hash_) {
|
||||||
if (member->socket_handle != 0) {
|
if (member->socket_handle != 0) {
|
||||||
GGListener::Instance()->SendToClient(member->socket_handle, 0, notifymsg);
|
GGListener::Instance()->SendToClient(member->socket_handle, 0, notifymsg);
|
||||||
|
@ -890,6 +890,7 @@ message MFMatchInfo
|
|||||||
repeated MFMatchTeamMember members = 1; //成员列表
|
repeated MFMatchTeamMember members = 1; //成员列表
|
||||||
optional int32 phase = 2; //阶段 1:合并队伍(匹配中) 2:选择角色 3:锁定(已准备)
|
optional int32 phase = 2; //阶段 1:合并队伍(匹配中) 2:选择角色 3:锁定(已准备)
|
||||||
optional int32 countdown = 3; //倒计时(单位秒)
|
optional int32 countdown = 3; //倒计时(单位秒)
|
||||||
|
optional int32 predict_time = 4; //预计时间(单位秒)
|
||||||
}
|
}
|
||||||
|
|
||||||
//end mfmsg
|
//end mfmsg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user