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

Method GetVector2D

core/UserMessagePBHelpers.h:898–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896 }
897
898 inline bool GetVector2D(const char *pszFieldName, Vector2D *out)
899 {
900 GETCHECK_FIELD();
901 CHECK_FIELD_TYPE(MESSAGE);
902 CHECK_FIELD_NOT_REPEATED();
903
904 const CMsgVector2D &msgVec2d = (const CMsgVector2D &)msg->GetReflection()->GetMessage(*msg, field);
905 out->Init(
906 msgVec2d.x(),
907 msgVec2d.y()
908 );
909
910 return true;
911 }
912
913 inline bool SetVector2D(const char *pszFieldName, Vector2D &vec)
914 {

Callers 1

smn_PbReadVector2DFunction · 0.80

Calls 2

GetMessageMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected