添加飞机当前位置

This commit is contained in:
aozhiwei 2021-06-22 13:57:18 +08:00
parent df0b8571b0
commit 226a5735bf
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ cs::SMUpdate* FrameMaker::MakeUpdateMsg(Human* hum)
cs::MFPlane* p = msg->mutable_plane(); cs::MFPlane* p = msg->mutable_plane();
TypeConvert::ToPb(room->plane.start_point, p->mutable_start_point()); TypeConvert::ToPb(room->plane.start_point, p->mutable_start_point());
TypeConvert::ToPb(room->plane.end_point, p->mutable_end_point()); TypeConvert::ToPb(room->plane.end_point, p->mutable_end_point());
TypeConvert::ToPb(room->plane.curr_pos, p->mutable_pos());
} }
for (auto& itr : hum->new_objects) { for (auto& itr : hum->new_objects) {
#ifdef DEBUG #ifdef DEBUG

View File

@ -760,6 +760,7 @@ message MFPlane
{ {
optional MFVec2 start_point = 1; // optional MFVec2 start_point = 1; //
optional MFVec2 end_point = 2; // optional MFVec2 end_point = 2; //
optional MFVec2 pos = 3; //
} }
// //