| 881 | } |
| 882 | |
| 883 | inline bool AddColor(const char *pszFieldName, const Color &value) |
| 884 | { |
| 885 | GETCHECK_FIELD(); |
| 886 | CHECK_FIELD_TYPE(MESSAGE); |
| 887 | CHECK_FIELD_REPEATED(); |
| 888 | |
| 889 | CMsgRGBA *msgRGBA = (CMsgRGBA *)msg->GetReflection()->AddMessage(msg, field); |
| 890 | msgRGBA->set_r(value.r()); |
| 891 | msgRGBA->set_g(value.g()); |
| 892 | msgRGBA->set_b(value.b()); |
| 893 | msgRGBA->set_a(value.a()); |
| 894 | |
| 895 | return true; |
| 896 | } |
| 897 | |
| 898 | inline bool GetVector2D(const char *pszFieldName, Vector2D *out) |
| 899 | { |
no test coverage detected