C# Class LLApiClient

Inheritance: IDisposable
显示文件 Open project: buronix/LLApi-Basic-Implementation

Public Methods

Method Description
AddOutPutMessageToQueue ( OutputMessage, message ) : void
Connect ( NetworkError &error ) : bool
Dispose ( ) : void
LLApiClient ( string endPoint, int port, GameClient, gameClient ) : UnityEngine
Listen ( ) : void
RegisterHandler ( Subjects, subject, SubjectDelegate handler ) : void
RemoveHandler ( Subjects, subject, SubjectDelegate handler ) : bool
SendOutputMessages ( ) : void
Stop ( ) : void

Private Methods

Method Description
MessagesConsumer ( ) : void
SendMessage ( NetworkWriter writer, NetworkError &error ) : bool
SendMessage ( NetworkWriter writer, int channelId, NetworkError &error ) : bool
addMessageToQueue ( InputMessage message ) : void

Method Details

AddOutPutMessageToQueue() public method

public AddOutPutMessageToQueue ( OutputMessage, message ) : void
message OutputMessage,
return void

Connect() public method

public Connect ( NetworkError &error ) : bool
error NetworkError
return bool

Dispose() public method

public Dispose ( ) : void
return void

LLApiClient() public method

public LLApiClient ( string endPoint, int port, GameClient, gameClient ) : UnityEngine
endPoint string
port int
gameClient GameClient,
return UnityEngine

Listen() public method

public Listen ( ) : void
return void

RegisterHandler() public method

public RegisterHandler ( Subjects, subject, SubjectDelegate handler ) : void
subject Subjects,
handler SubjectDelegate
return void

RemoveHandler() public method

public RemoveHandler ( Subjects, subject, SubjectDelegate handler ) : bool
subject Subjects,
handler SubjectDelegate
return bool

SendOutputMessages() public method

public SendOutputMessages ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void