bz_eMsgDebugEvent
This event is called every time packets are sent to the server
Data Object Type
2.4.0 bz_MsgDebugEventData_V1
Parameters
These are the values accessible in the bz_EventData
variable that's made available in the Event
method.
Data Type | Name | Description |
---|---|---|
char[2] |
code
|
A 2-byte message code to identify what the data is. |
size_t |
len
|
The size of the incoming message. |
char* |
msg
|
The actual message telling the server what the data contains, based on the code data. |
bool |
receive
|
Whether or not to receive the packets |
int |
playerID
|
The player that sent the data. |
double |
eventTime
|
The current server time |
Plug-in Usage
There are no plug-ins in the official distribution that make use of this event. Browse the Plug-in Releases forum for plug-ins which may make use of this event.
Plug-in Example
This block of code can be used to get started when implementing the Event()
function of your plug-in.
bz_MsgDebugEventData_V1* dataObject = (bz_MsgDebugEventData_V1*)eventData;
// Data
// ---
// (char[2]) code - A 2-byte message code to identify what the data is.
// (size_t) len - The size of the incoming message.
// (char*) msg - The actual message telling the server what the data contains, based on the code data.
// (bool) receive - Whether or not to receive the packets
// (int) playerID - The player that sent the data.
// (double) eventTime - The current server time
Other Logging Events
This content is maintained on GitHub. We welcome any feedback and improvements!