MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / GetColor

Method GetColor

core/UserMessagePBHelpers.h:817–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815 }
816
817 inline bool GetColor(const char *pszFieldName, Color *out)
818 {
819 GETCHECK_FIELD();
820 CHECK_FIELD_TYPE(MESSAGE);
821 CHECK_FIELD_NOT_REPEATED();
822
823 const CMsgRGBA &msgRGBA = (const CMsgRGBA &)msg->GetReflection()->GetMessage(*msg, field);
824 out->SetColor(
825 msgRGBA.r(),
826 msgRGBA.g(),
827 msgRGBA.b(),
828 msgRGBA.a()
829 );
830
831 return true;
832 }
833
834 inline bool SetColor(const char *pszFieldName, const Color &value)
835 {

Callers 2

smn_PbReadColorFunction · 0.80
smn_KvGetColorFunction · 0.80

Calls 2

GetMessageMethod · 0.80
SetColorMethod · 0.80

Tested by

no test coverage detected