Network/ENet: Add DisconnectTimeout event

This commit is contained in:
SirLynix
2022-09-09 12:56:50 +02:00
parent 3f38c52455
commit e063c7b45e
5 changed files with 19 additions and 11 deletions

View File

@@ -119,14 +119,19 @@ namespace Nz
None,
/** a peer has disconnected. This event is generated on a successful
* completion of a disconnect initiated by enet_peer_disconnect, if
* a peer has timed out, or if a connection request initialized by
* enet_host_connect has timed out. The peer field contains the peer
* which disconnected. The data field contains user supplied data
* completion of a disconnect initiated by enet_peer_disconnect.
* The peer field contains the peer which disconnected.
* The data field contains user supplied data
* describing the disconnection, or 0, if none is available.
*/
Disconnect,
/** a peer has timed out. This event is generated if a connected peer timed out
* or if a enet_host_connected has timed out. The peer field contains the peer
* which disconnected.
*/
DisconnectTimeout,
/** a connection request initiated by enet_host_connect from this host has completed.
* The peer field contains the peer which successfully connected.
*/