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

Method GetRepeatedVector

core/UserMessagePBHelpers.h:999–1014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997 }
998
999 inline bool GetRepeatedVector(const char *pszFieldName, int index, Vector *out)
1000 {
1001 GETCHECK_FIELD();
1002 CHECK_FIELD_TYPE(MESSAGE);
1003 CHECK_FIELD_REPEATED();
1004 CHECK_REPEATED_ELEMENT(index);
1005
1006 const CMsgVector &msgVec = (const CMsgVector &)msg->GetReflection()->GetRepeatedMessage(*msg, field, index);
1007 out->Init(
1008 msgVec.x(),
1009 msgVec.y(),
1010 msgVec.z()
1011 );
1012
1013 return true;
1014 }
1015
1016 inline bool SetRepeatedVector(const char *pszFieldName, int index, Vector &vec)
1017 {

Callers 1

smn_PbReadVectorFunction · 0.80

Calls 2

GetRepeatedMessageMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected