This commit is contained in:
aozhiwei 2021-04-21 16:39:09 +08:00
parent a7218d9849
commit c84e3b88ac
3 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,7 @@ void Human::FillMFObjectPart(Room* room, Human* hum, cs::MFObjectPart* part_data
part_data->set_object_type(ET_Player);
cs::MFPlayerPart* p = part_data->mutable_union_obj_1();
p->set_obj_uniid(GetEntityUniId());
p->set_speed(GetSpeed());
TypeConvert::ToPb(GetPos(), p->mutable_pos());
TypeConvert::ToPb(attack_dir, p->mutable_dir());
}
@ -161,6 +162,7 @@ void Human::FillMFObjectFull(Room* room, Human* hum, cs::MFObjectFull* full_data
p->set_disconnected(disconnected);
p->set_anim_type(anim_type);
p->set_anim_seq(anim_seq);
p->set_speed(GetSpeed());
for (auto itr : skins) {
auto skin = p->add_skin();
itr.ToPB(skin);

View File

@ -348,6 +348,7 @@ private:
Entity* last_collision_door_ = nullptr;
long long jump_frameno_ = 0;
float old_sync_speed = 0;
friend class FrameMaker;
friend class FrameEvent;

View File

@ -191,6 +191,7 @@ message MFPlayerPart
optional int32 obj_uniid = 1; //id
optional MFVec2 pos = 2; //
optional MFVec2 dir = 3; //
optional float speed = 4; //
}
//-
@ -241,6 +242,7 @@ message MFPlayerFull
//
optional int32 charid = 44; //id
optional float speed = 45; //
optional string user_data = 60 [default = ""]; //
}