Table of Contents

Interface INetworkEventHandler

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

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

peer IPlayer

The player representing the connected peer.

OnPeerDisconnect(IPlayer, PeerDisconnectReason)

Called when a peer disconnects from the network.

void OnPeerDisconnect(IPlayer peer, PeerDisconnectReason reason)

Parameters

peer IPlayer

The player representing the disconnected peer.

reason PeerDisconnectReason

The reason for the disconnection.