|
|
| Line 1: |
Line 1: |
| {{BZFS_API_Doc}}
| | #REDIRECT [[Category:BZFS API Docs]] |
| {{BZFS_API_Events}}
| |
| | |
| ==Overview==
| |
| The '''bz_eMsgDebugEvent''' is an API event called every time packets are sent to the server.
| |
| | |
| ==Data==
| |
| '''bz_eMsgDebugEvent''' returns the '''bz_MsgDebugEventData_V1''' data class.
| |
| | |
| {| border="1" cellpadding="20" cellspacing="0"
| |
| !name
| |
| !type
| |
| !value description
| |
| |-
| |
| |eventType
| |
| |[[Event(API)|bz_eEventType]]
| |
| | bz_eMsgDebugEvent
| |
| |-
| |
| |code
| |
| |char[2]
| |
| |A 2-byte message code to identify what the data is.
| |
| |-
| |
| |len
| |
| |size_t
| |
| |The size of the incoming message.
| |
| |-
| |
| |msg
| |
| |char*
| |
| |The actual message telling the server what the data contains, based on the '''code''' data.
| |
| |-
| |
| |receive
| |
| |bool
| |
| |Whether or not to receive the packets
| |
| |-
| |
| |playerID
| |
| |int
| |
| |The player that sent the data.
| |
| |-
| |
| |eventTime
| |
| |double
| |
| |The server time at which the event occurred (in seconds).
| |
| |}
| |
| | |
| ==Uses==
| |
| Used mostly by developers to watch for packet data. Not particularly useful for plugin developers.
| |
| | |
| [[Category:BZFS_API_Docs]] | |
| [[Category:BZFS_API_Events]]
| |