| 832 | } |
| 833 | |
| 834 | inline bool SetColor(const char *pszFieldName, const Color &value) |
| 835 | { |
| 836 | GETCHECK_FIELD(); |
| 837 | CHECK_FIELD_TYPE(MESSAGE); |
| 838 | CHECK_FIELD_NOT_REPEATED(); |
| 839 | |
| 840 | CMsgRGBA *msgRGBA = (CMsgRGBA *)msg->GetReflection()->MutableMessage(msg, field); |
| 841 | msgRGBA->set_r(value.r()); |
| 842 | msgRGBA->set_g(value.g()); |
| 843 | msgRGBA->set_b(value.b()); |
| 844 | msgRGBA->set_a(value.a()); |
| 845 | |
| 846 | return true; |
| 847 | } |
| 848 | |
| 849 | inline bool GetRepeatedColor(const char *pszFieldName, int index, Color *out) |
| 850 | { |
no outgoing calls
no test coverage detected