C# Class llbc.IFacade

Service facade base class encapsulation.
Exibir arquivo Open project: lailongwei/llbc

Public Methods

Method Description
OnAsyncConnResult ( AsyncConnResult asyncConnResult ) : void

When a Service.AsyncConn result, will call this handler to process.

OnDestroy ( ) : void

When service destroy, will call this method to destroy Facade.

OnIdle ( int idleTime ) : void

Service per-frame idle handler.

OnInit ( ) : void

When facade first start, will call this method to initialize Facade before OnStart method call.

OnProtoReport ( ProtoReport report ) : void

When proto-stack has message to report, will call this handler to process.

OnSessionCreate ( SessionInfo sessionInfo ) : void

When new session create, will call this handler to process.

OnSessionDestroy ( SessionDestroyInfo destroyInfo ) : void

When session destroyed, will call this handler to process.

OnStart ( ) : void

When service startup, will call this method.

OnStop ( ) : void

When service stop, will call this method.

OnUnHandledPacket ( Packet packet ) : void

When one packet unhandled, will call this handler to process.

OnUpdate ( ) : void

Service update handler.

Method Details

OnAsyncConnResult() public method

When a Service.AsyncConn result, will call this handler to process.
public OnAsyncConnResult ( AsyncConnResult asyncConnResult ) : void
asyncConnResult AsyncConnResult async-connect result info
return void

OnDestroy() public method

When service destroy, will call this method to destroy Facade.
public OnDestroy ( ) : void
return void

OnIdle() public method

Service per-frame idle handler.
public OnIdle ( int idleTime ) : void
idleTime int idle time, in milli-seconds
return void

OnInit() public method

When facade first start, will call this method to initialize Facade before OnStart method call.
public OnInit ( ) : void
return void

OnProtoReport() public method

When proto-stack has message to report, will call this handler to process.
public OnProtoReport ( ProtoReport report ) : void
report ProtoReport report message info
return void

OnSessionCreate() public method

When new session create, will call this handler to process.
public OnSessionCreate ( SessionInfo sessionInfo ) : void
sessionInfo SessionInfo new session info
return void

OnSessionDestroy() public method

When session destroyed, will call this handler to process.
public OnSessionDestroy ( SessionDestroyInfo destroyInfo ) : void
destroyInfo SessionDestroyInfo destroy info
return void

OnStart() public method

When service startup, will call this method.
public OnStart ( ) : void
return void

OnStop() public method

When service stop, will call this method.
public OnStop ( ) : void
return void

OnUnHandledPacket() public method

When one packet unhandled, will call this handler to process.
public OnUnHandledPacket ( Packet packet ) : void
packet Packet
return void

OnUpdate() public method

Service update handler.
public OnUpdate ( ) : void
return void