This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Bz eMsgDebugEvent: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Sigonasr2 (talk | contribs)
m Data: Include time of event.
Zehra (talk | contribs)
redirect, since events are in official docs
Tag: New redirect
 
(2 intermediate revisions by one other user not shown)
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
  |
  |-
  |playerID
  |int
  |The player that sent the data.
  |-
  |time
  |double
  |The current server time
  |}
 
==Uses==
Used mostly by developers to watch for packet data. Not particularly useful for plugin developers.
 
[[Category:BZFS_API_Docs]]
[[Category:BZFS_API_Events]]

Latest revision as of 02:16, 27 November 2025