Network/ENet: Separate Connect event into OutgoingConnect and IncomingConnect
This commit is contained in:
@@ -118,11 +118,6 @@ namespace Nz
|
||||
/** no event occurred within the specified time limit */
|
||||
None,
|
||||
|
||||
/** a connection request initiated by enet_host_connect has completed.
|
||||
* The peer field contains the peer which successfully connected.
|
||||
*/
|
||||
Connect,
|
||||
|
||||
/** 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
|
||||
@@ -132,11 +127,20 @@ namespace Nz
|
||||
*/
|
||||
Disconnect,
|
||||
|
||||
/** a connection request initiated by enet_host_connect from this host has completed.
|
||||
* The peer field contains the peer which successfully connected.
|
||||
*/
|
||||
OutgoingConnect,
|
||||
|
||||
/** a connection request initiated by enet_host_connect from another host has completed.
|
||||
* The peer field contains the peer which successfully connected.
|
||||
*/
|
||||
IncomingConnect,
|
||||
|
||||
/** a packet has been received from a peer. The peer field specifies the
|
||||
* peer which sent the packet. The channelID field specifies the channel
|
||||
* number upon which the packet was received. The packet field contains
|
||||
* the packet that was received; this packet must be destroyed with
|
||||
* enet_packet_destroy after use.
|
||||
* the packet that was received;
|
||||
*/
|
||||
Receive
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user