C# Класс llbc.IFacade

Service facade base class encapsulation.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

OnAsyncConnResult() публичный Метод

When a Service.AsyncConn result, will call this handler to process.
public OnAsyncConnResult ( AsyncConnResult asyncConnResult ) : void
asyncConnResult AsyncConnResult async-connect result info
Результат void

OnDestroy() публичный Метод

When service destroy, will call this method to destroy Facade.
public OnDestroy ( ) : void
Результат void

OnIdle() публичный Метод

Service per-frame idle handler.
public OnIdle ( int idleTime ) : void
idleTime int idle time, in milli-seconds
Результат void

OnInit() публичный Метод

When facade first start, will call this method to initialize Facade before OnStart method call.
public OnInit ( ) : void
Результат void

OnProtoReport() публичный Метод

When proto-stack has message to report, will call this handler to process.
public OnProtoReport ( ProtoReport report ) : void
report ProtoReport report message info
Результат void

OnSessionCreate() публичный Метод

When new session create, will call this handler to process.
public OnSessionCreate ( SessionInfo sessionInfo ) : void
sessionInfo SessionInfo new session info
Результат void

OnSessionDestroy() публичный Метод

When session destroyed, will call this handler to process.
public OnSessionDestroy ( SessionDestroyInfo destroyInfo ) : void
destroyInfo SessionDestroyInfo destroy info
Результат void

OnStart() публичный Метод

When service startup, will call this method.
public OnStart ( ) : void
Результат void

OnStop() публичный Метод

When service stop, will call this method.
public OnStop ( ) : void
Результат void

OnUnHandledPacket() публичный Метод

When one packet unhandled, will call this handler to process.
public OnUnHandledPacket ( Packet packet ) : void
packet Packet
Результат void

OnUpdate() публичный Метод

Service update handler.
public OnUpdate ( ) : void
Результат void