| 954 | } |
| 955 | |
| 956 | inline bool AddVector2D(const char *pszFieldName, Vector2D &vec) |
| 957 | { |
| 958 | GETCHECK_FIELD(); |
| 959 | CHECK_FIELD_TYPE(MESSAGE); |
| 960 | CHECK_FIELD_REPEATED(); |
| 961 | |
| 962 | CMsgVector2D *msgVec2d = (CMsgVector2D *)msg->GetReflection()->AddMessage(msg, field); |
| 963 | msgVec2d->set_x(vec.x); |
| 964 | msgVec2d->set_y(vec.y); |
| 965 | |
| 966 | return true; |
| 967 | } |
| 968 | |
| 969 | inline bool GetVector(const char *pszFieldName, Vector *out) |
| 970 | { |
no test coverage detected