This commit is contained in:
aozhiwei 2022-10-17 13:31:37 +08:00
parent 732695b044
commit f0419e05f6

View File

@ -7,6 +7,8 @@
#include "hero.h" #include "hero.h"
#include "player.h" #include "player.h"
#include "cs_proto.pb.h"
void Incubator::Init() void Incubator::Init()
{ {
xtimer_attacher_.xtimer = &room->xtimer; xtimer_attacher_.xtimer = &room->xtimer;
@ -323,7 +325,7 @@ void Incubator::SpawnWaveMon(int wave)
if (!hero) { if (!hero) {
A8_ABORT(); A8_ABORT();
} }
#ifdef DEBUG #ifdef DEBUG1
{ {
room->xtimer.AddDeadLineTimerAndAttach room->xtimer.AddDeadLineTimerAndAttach
( (
@ -403,5 +405,18 @@ void Incubator::NextWave()
int remain_time = room->xtimer.GetRemainTime(timer); int remain_time = room->xtimer.GetRemainTime(timer);
room->xtimer.ModifyTimer(timer, remain_time - acc_time); room->xtimer.ModifyTimer(timer, remain_time - acc_time);
} }
#if 1
room->TraversePlayerList
(
a8::XParams(),
[this] (Player* hum, a8::XParams& param)
{
cs::SMPvePassWave notify_msg;
notify_msg.set_new_wave(hum->room->pve_data.GetWave());
notify_msg.set_pve_max_wave(room->pve_data.max_wave);
hum->SendNotifyMsg(notify_msg);
return true;
});
#endif
} }
} }