FindSendPropInfo
Given a ServerClass name, finds a networkable send property offset.
This information is cached for future calls.
native int FindSendPropInfo(const char[] cls, const char[] prop, PropFieldType& type = view_as<PropFieldType>(0), int& num_bits = 0, int& local_offset = 0, int& array_size = 0)
Parameters
const char[] cls
Classname.
const char[] prop
Property name.
PropFieldType& type
Optional parameter to store the type.
int& num_bits
Optional parameter to store the number of bits the field
uses, if applicable (otherwise 0 is stored). The number
of bits varies for integers and floats, and is always 0
for strings.
int& local_offset
Optional parameter to store the local offset, as
FindSendPropOffs() would return.
int& array_size
Optional parameter to store array size, 0 if not an array.
Return Value
int On success, returns an absolutely computed offset.
If no offset is available, 0 is returned.
If the property is not found, -1 is returned.