NetMsg::Make

Build a serialized network message of the given type from its payload.

Synopsis

Declared in <netmessagemaker.h>

template<typename... Args>
CSerializedNetMsg
Make(
    std::string msg_type,
    Args&&... args);

Return Value

The serialized network message ready to be sent.

Parameters

NameDescription
msg_typeThe network message type string (command name).
argsThe message payload fields, serialized in order into the message body.