Interface INetworkEventHandler
Provides the events for GetEventDispatcher().
[OpenMpEventHandler]
public interface INetworkEventHandler : IEventHandler<INetworkEventHandler>
- Inherited Members
Methods
OnPeerConnect(IPlayer)
Called when a peer connects to the network.
void OnPeerConnect(IPlayer peer)
Parameters
peerIPlayerThe player representing the connected peer.
OnPeerDisconnect(IPlayer, PeerDisconnectReason)
Called when a peer disconnects from the network.
void OnPeerDisconnect(IPlayer peer, PeerDisconnectReason reason)
Parameters
peerIPlayerThe player representing the disconnected peer.
reasonPeerDisconnectReasonThe reason for the disconnection.