This commit is contained in:
aozhiwei 2023-10-10 19:27:30 +08:00
parent 1e79be8460
commit b40d54c1ff
4 changed files with 16 additions and 1 deletions

View File

@ -1599,7 +1599,14 @@ void Human::SendUIUpdate()
notifymsg.set_boss_state(room->pve_data.boss_state);
}
if (room->IsMobaModeRoom()) {
if (room->GetMobaTeamA()) {
notifymsg.set_a_team_id(room->GetMobaTeamA()->GetTeamId());
notifymsg.set_a_kill_count(room->GetMobaTeamA()->GetKillCount());
}
if (room->GetMobaTeamB()) {
notifymsg.set_b_team_id(room->GetMobaTeamB()->GetTeamId());
notifymsg.set_b_kill_count(room->GetMobaTeamB()->GetKillCount());
}
}
SendNotifyMsg(notifymsg);
}

View File

@ -94,6 +94,7 @@ public:
//target_uniid, frameno
std::map<int, long long> report_bullet_hash;
a8::XTimerWp game_over_timer;
a8::XTimerWp moba_over_timer;
#ifdef DEBUG
std::map<int, int> debug_params;
#endif

View File

@ -494,3 +494,8 @@ bool Team::AllIsRunAway()
}
return true;
}
int Team::GetKillCount()
{
return kill_count_;
}

View File

@ -52,6 +52,7 @@ class Team
void RunAway(Human* hum);
bool AllIsRunAway();
bool IsViewTeam() { return is_view_; }
int GetKillCount();
private:
int team_id_ = 0;
@ -61,4 +62,5 @@ class Team
std::set<Human*> members_;
Human* first_member_ = nullptr;
bool auto_fill_ = false;
int kill_count_ = 0;
};