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

Method GetRepeatedVector2D

core/UserMessagePBHelpers.h:926–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

924 }
925
926 inline bool GetRepeatedVector2D(const char *pszFieldName, int index, Vector2D *out)
927 {
928 GETCHECK_FIELD();
929 CHECK_FIELD_TYPE(MESSAGE);
930 CHECK_FIELD_REPEATED();
931 CHECK_REPEATED_ELEMENT(index);
932
933 const CMsgVector2D &msgVec2d = (const CMsgVector2D &)msg->GetReflection()->GetRepeatedMessage(*msg, field, index);
934 out->Init(
935 msgVec2d.x(),
936 msgVec2d.y()
937 );
938
939 return true;
940 }
941
942 inline bool SetRepeatedVector2D(const char *pszFieldName, int index, Vector2D &vec)
943 {

Callers 1

smn_PbReadVector2DFunction · 0.80

Calls 2

GetRepeatedMessageMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected