This commit is contained in:
aozhiwei 2021-09-28 14:03:58 +08:00
parent 7e7a8692cc
commit a9f3d4fe12
2 changed files with 13 additions and 2 deletions

View File

@ -199,6 +199,7 @@ void MatchTeam::UpdateMaster()
ChooseLeader();
phase_ = kMatchChoose;
phase_start_tick_ = a8::XGetTickCount();
countdown_ = MetaMgr::Instance()->match_choose_time;
}
}
break;
@ -207,12 +208,21 @@ void MatchTeam::UpdateMaster()
if (phase_left_time_ <= 0) {
phase_ = kMatchLock;
phase_start_tick_ = a8::XGetTickCount();
countdown_ = MetaMgr::Instance()->match_lock_time;
}
}
break;
case kMatchLock:
{
if (phase_left_time_ <= 0) {
phase_ = kMatchStartGame;
phase_start_tick_ = a8::XGetTickCount();
StartGame();
}
}
break;
case kMatchStartGame:
{
}
break;
default:

View File

@ -6,7 +6,8 @@ enum MatchTeamPhase_e
{
kMatchCombining = 1,
kMatchChoose = 2,
kMatchLock = 3
kMatchLock = 3,
kMatchStartGame = 4
};
enum MatchTeamMember_e