Method | Description | |
---|---|---|
GetInstance ( ) : |
||
OnRecvMessage ( |
解包处理
|
|
RegisterMessageHandler ( int command, NetOnRecvMessageDelegate del ) : void |
注册消息监听
|
|
SetRecvMsgCB ( Action |
设置收到消息时的回调函数
|
|
UnRegisterMessageHandler ( int command ) : void |
注销消息监听 - 注销所有此消息号的监听 (如果消息不是模块独有,不推荐使用次方法 by Rect)
|
|
UnRegisterMessageHandler ( int command, NetOnRecvMessageDelegate del ) : void |
注销消息监听 - 注销消息号指定的委托类
|
Method | Description | |
---|---|---|
NetMessageRecieveHandle ( ) : System |
public static GetInstance ( ) : |
||
return |
public OnRecvMessage ( |
||
packet | ||
return | void |
public RegisterMessageHandler ( int command, NetOnRecvMessageDelegate del ) : void | ||
command | int | 消息号ID |
del | NetOnRecvMessageDelegate | 消息接收回调委托 |
return | void |
public UnRegisterMessageHandler ( int command ) : void | ||
command | int | 消息号ID |
return | void |
public UnRegisterMessageHandler ( int command, NetOnRecvMessageDelegate del ) : void | ||
command | int | |
del | NetOnRecvMessageDelegate | |
return | void |