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

Method AddVector2D

core/UserMessagePBHelpers.h:956–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954 }
955
956 inline bool AddVector2D(const char *pszFieldName, Vector2D &vec)
957 {
958 GETCHECK_FIELD();
959 CHECK_FIELD_TYPE(MESSAGE);
960 CHECK_FIELD_REPEATED();
961
962 CMsgVector2D *msgVec2d = (CMsgVector2D *)msg->GetReflection()->AddMessage(msg, field);
963 msgVec2d->set_x(vec.x);
964 msgVec2d->set_y(vec.y);
965
966 return true;
967 }
968
969 inline bool GetVector(const char *pszFieldName, Vector *out)
970 {

Callers 1

smn_PbAddVector2DFunction · 0.80

Calls 1

AddMessageMethod · 0.80

Tested by

no test coverage detected