1
This commit is contained in:
parent
9a9cd8165d
commit
f664d01c53
@ -263,9 +263,7 @@ enum PropertyType_e
|
||||
kPropBulletNum = 8,
|
||||
kPropItem = 9,
|
||||
kPropWeaponAmmo = 10,
|
||||
kPropLevel = 20,
|
||||
kPropExp = 21,
|
||||
kPropRace = 22,
|
||||
|
||||
kPropZombieId = 23,
|
||||
};
|
||||
|
||||
|
@ -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()) {
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user