1
This commit is contained in:
parent
1e79be8460
commit
b40d54c1ff
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -494,3 +494,8 @@ bool Team::AllIsRunAway()
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
int Team::GetKillCount()
|
||||
{
|
||||
return kill_count_;
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user