C# Class llbc.IFacade

Service facade base class encapsulation.
Afficher le fichier Open project: lailongwei/llbc

Méthodes publiques

Méthode 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 méthode

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

OnDestroy() public méthode

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

OnIdle() public méthode

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

OnInit() public méthode

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

OnProtoReport() public méthode

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

OnSessionCreate() public méthode

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

OnSessionDestroy() public méthode

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

OnStart() public méthode

When service startup, will call this method.
public OnStart ( ) : void
Résultat void

OnStop() public méthode

When service stop, will call this method.
public OnStop ( ) : void
Résultat void

OnUnHandledPacket() public méthode

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

OnUpdate() public méthode

Service update handler.
public OnUpdate ( ) : void
Résultat void