This commit is contained in:
aozhiwei 2020-07-30 15:01:54 +08:00
parent 9a9cd8165d
commit f664d01c53
2 changed files with 1 additions and 33 deletions

View File

@ -263,9 +263,7 @@ enum PropertyType_e
kPropBulletNum = 8,
kPropItem = 9,
kPropWeaponAmmo = 10,
kPropLevel = 20,
kPropExp = 21,
kPropRace = 22,
kPropZombieId = 23,
};

View File

@ -197,36 +197,6 @@ cs::SMUpdate* FrameMaker::MakeUpdateMsg(const Human* hum)
}
}
}
for (size_t idx : hum->chged_level_) {
if (idx < room->frame_event.chged_levels_.size()) {
{
auto p = msg->add_chged_property_list();
p->set_obj_id(hum->GetEntityUniId());
p->set_property_type(kPropLevel);
p->set_value(hum->level_);
}
}
}
for (size_t idx : hum->chged_exp_) {
if (idx < room->frame_event.chged_exps_.size()) {
{
auto p = msg->add_chged_property_list();
p->set_obj_id(hum->GetEntityUniId());
p->set_property_type(kPropExp);
p->set_value(hum->exp_);
}
}
}
for (size_t idx : hum->chged_race_) {
if (idx < room->frame_event.chged_races_.size()) {
{
auto p = msg->add_chged_property_list();
p->set_obj_id(hum->GetEntityUniId());
p->set_property_type(kPropRace);
p->set_value(hum->race_);
}
}
}
for (size_t idx : hum->chged_zombieid_) {
if (idx < room->frame_event.chged_zombieids_.size()) {
{