添加飞机当前位置
This commit is contained in:
parent
df0b8571b0
commit
226a5735bf
@ -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
|
||||||
|
@ -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; //飞机当前位置
|
||||||
}
|
}
|
||||||
|
|
||||||
//载具信息(用于小地图显示)
|
//载具信息(用于小地图显示)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user