PbAddVector2D Function

Add an XY vector to a protobuf message repeated field.

void PbAddVector2D(Handle pb, const char[] field, const float vec[2])

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

const float[2] vec

Vector value to add.

Errors

Invalid or incorrect Handle, non-existent field, or incorrect field type.