C# Class GameClient

Inheritance: IGameClient, IDisposable
Afficher le fichier Open project: RevenantX/LiteNetLib Class Usage Examples

Méthodes publiques

Méthode Description
OnNetworkError ( NetEndPoint endPoint, int socketErrorCode ) : void
OnNetworkLatencyUpdate ( NetPeer peer, int latency ) : void
OnNetworkReceive ( NetPeer peer, NetDataReader reader ) : void
OnNetworkReceiveUnconnected ( NetEndPoint remoteEndPoint, NetDataReader reader, UnconnectedMessageType messageType ) : void
OnPeerConnected ( NetPeer peer ) : void
OnPeerDisconnected ( NetPeer peer, DisconnectReason, reason, int socketErrorCode ) : void

Private Methods

Méthode Description
OnDestroy ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

OnNetworkError() public méthode

public OnNetworkError ( NetEndPoint endPoint, int socketErrorCode ) : void
endPoint NetEndPoint
socketErrorCode int
Résultat void

OnNetworkLatencyUpdate() public méthode

public OnNetworkLatencyUpdate ( NetPeer peer, int latency ) : void
peer NetPeer
latency int
Résultat void

OnNetworkReceive() public méthode

public OnNetworkReceive ( NetPeer peer, NetDataReader reader ) : void
peer NetPeer
reader NetDataReader
Résultat void

OnNetworkReceiveUnconnected() public méthode

public OnNetworkReceiveUnconnected ( NetEndPoint remoteEndPoint, NetDataReader reader, UnconnectedMessageType messageType ) : void
remoteEndPoint NetEndPoint
reader NetDataReader
messageType UnconnectedMessageType
Résultat void

OnPeerConnected() public méthode

public OnPeerConnected ( NetPeer peer ) : void
peer NetPeer
Résultat void

OnPeerDisconnected() public méthode

public OnPeerDisconnected ( NetPeer peer, DisconnectReason, reason, int socketErrorCode ) : void
peer NetPeer
reason DisconnectReason,
socketErrorCode int
Résultat void