C# Class GameClient

Inheritance: IGameClient, IDisposable
Mostrar archivo Open project: RevenantX/LiteNetLib Class Usage Examples

Public Methods

Method 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

Method Description
OnDestroy ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

OnNetworkError() public method

public OnNetworkError ( NetEndPoint endPoint, int socketErrorCode ) : void
endPoint NetEndPoint
socketErrorCode int
return void

OnNetworkLatencyUpdate() public method

public OnNetworkLatencyUpdate ( NetPeer peer, int latency ) : void
peer NetPeer
latency int
return void

OnNetworkReceive() public method

public OnNetworkReceive ( NetPeer peer, NetDataReader reader ) : void
peer NetPeer
reader NetDataReader
return void

OnNetworkReceiveUnconnected() public method

public OnNetworkReceiveUnconnected ( NetEndPoint remoteEndPoint, NetDataReader reader, UnconnectedMessageType messageType ) : void
remoteEndPoint NetEndPoint
reader NetDataReader
messageType UnconnectedMessageType
return void

OnPeerConnected() public method

public OnPeerConnected ( NetPeer peer ) : void
peer NetPeer
return void

OnPeerDisconnected() public method

public OnPeerDisconnected ( NetPeer peer, DisconnectReason, reason, int socketErrorCode ) : void
peer NetPeer
reason DisconnectReason,
socketErrorCode int
return void