C# 클래스 GameClient

상속: IGameClient, IDisposable
파일 보기 프로젝트 열기: RevenantX/LiteNetLib 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
OnDestroy ( ) : void
Start ( ) : void
Update ( ) : void

메소드 상세

OnNetworkError() 공개 메소드

public OnNetworkError ( NetEndPoint endPoint, int socketErrorCode ) : void
endPoint NetEndPoint
socketErrorCode int
리턴 void

OnNetworkLatencyUpdate() 공개 메소드

public OnNetworkLatencyUpdate ( NetPeer peer, int latency ) : void
peer NetPeer
latency int
리턴 void

OnNetworkReceive() 공개 메소드

public OnNetworkReceive ( NetPeer peer, NetDataReader reader ) : void
peer NetPeer
reader NetDataReader
리턴 void

OnNetworkReceiveUnconnected() 공개 메소드

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

OnPeerConnected() 공개 메소드

public OnPeerConnected ( NetPeer peer ) : void
peer NetPeer
리턴 void

OnPeerDisconnected() 공개 메소드

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