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

Method GetVector

core/UserMessagePBHelpers.h:969–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967 }
968
969 inline bool GetVector(const char *pszFieldName, Vector *out)
970 {
971 GETCHECK_FIELD();
972 CHECK_FIELD_TYPE(MESSAGE);
973 CHECK_FIELD_NOT_REPEATED();
974
975 const CMsgVector &msgVec = (const CMsgVector &)msg->GetReflection()->GetMessage(*msg, field);
976 out->Init(
977 msgVec.x(),
978 msgVec.y(),
979 msgVec.z()
980 );
981
982 return true;
983 }
984
985 inline bool SetVector(const char *pszFieldName, Vector &vec)
986 {

Callers 1

smn_PbReadVectorFunction · 0.45

Calls 2

GetMessageMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected