1
This commit is contained in:
parent
29eb427f82
commit
445470a06f
@ -1778,6 +1778,12 @@ void Human::SendUIUpdate()
|
||||
notifymsg.set_alive_count(room->AliveCount());
|
||||
notifymsg.set_kill_count(stats.kills);
|
||||
room->FillSMUiUpdate(notifymsg);
|
||||
if (room->IsPveRoom()) {
|
||||
notifymsg.set_score(stats.pve_score);
|
||||
notifymsg.set_wave(room->pve_data.wave);
|
||||
notifymsg.set_max_wave(room->pve_data.max_wave);
|
||||
notifymsg.set_mon_num(room->pve_data.mon_num);
|
||||
}
|
||||
SendNotifyMsg(notifymsg);
|
||||
}
|
||||
|
||||
|
@ -73,6 +73,13 @@ struct CarObject
|
||||
bool taken = false;
|
||||
};
|
||||
|
||||
struct PveData
|
||||
{
|
||||
int wave = 0;
|
||||
int max_wave = 0;
|
||||
int mon_num = 0;
|
||||
};
|
||||
|
||||
class MatchTeam;
|
||||
class Room
|
||||
{
|
||||
@ -92,6 +99,7 @@ public:
|
||||
std::map<int, RoomObstacleWeakPtr> mine_objects;
|
||||
MetaData::PveGeminiMode* pve_mode_meta = nullptr;
|
||||
MetaData::PveGemini* pve_instance = nullptr;
|
||||
PveData pve_data;
|
||||
|
||||
~Room();
|
||||
void InitData(RoomInitInfo& init_info);
|
||||
|
Loading…
x
Reference in New Issue
Block a user