This commit is contained in:
aozhiwei 2020-07-22 20:44:43 +08:00
parent 889e95bf4c
commit 904243bf53
2 changed files with 6 additions and 0 deletions

View File

@ -796,6 +796,10 @@ void Room::FillSMUiUpdate(cs::SMUiUpdate& msg)
TypeConvert::ToPb(pair.second.pos, car->mutable_pos());
}
}
if (GetRoomMode() == kZombieMode) {
msg.set_zombie_num(zombie_alive_count_);
msg.set_human_num(human_alive_count_);
}
}
std::set<Human*>* Room::GetAliveTeam()

View File

@ -234,6 +234,8 @@ private:
int elapsed_time_ = 0;
int alive_count_ = 0;
long long alive_count_chged_frameno_ = 0;
int zombie_alive_count_ = 0;
int human_alive_count_ = 0;
MetaData::AirLine* airline_ = nullptr;
a8::XTimerAttacher xtimer_attacher_;
size_t airdrop_times_ = 0;