This commit is contained in:
aozhiwei 2022-12-14 15:26:29 +08:00
parent 451ad39251
commit 3408e23e82

View File

@ -14,15 +14,26 @@ namespace TypeConvert
void ToPb(const Position& v, cs::MFVec2* pb_obj)
{
#ifdef SXY
pb_obj->set_x(v.x);
pb_obj->set_y(v.z);
#else
pb_obj->set_x(v.x);
pb_obj->set_y(v.y);
#endif
}
void ToPb(const Position v, cs::MFVec3* pb_obj)
{
#ifdef SXY
pb_obj->set_x(v.x);
pb_obj->set_y(v.z);
pb_obj->set_z(v.y);
#else
pb_obj->set_x(v.x);
pb_obj->set_y(v.y);
pb_obj->set_z(v.z);
#endif
}
void ToPb(const a8::Vec2& v, cs::MFVec3* pb_obj)