public class PacketMethodWrapper extends AbstractControllerMethodWrapper
controller, module, printLogmethodAccess, methodIndex, single| 构造器和说明 |
|---|
PacketMethodWrapper(xyz.noark.reflectasm.MethodAccess methodAccess,
java.lang.Object single,
PacketMethodDefinition md,
Controller controller) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object[] |
analysisParam(java.io.Serializable playerId,
java.lang.Object protocal)
分析参数.
|
java.lang.Object[] |
analysisParam(Session session,
ByteArray bytes)
分析参数.
|
long |
getCallNum()
获取当前被调用的次数.
|
java.lang.Integer |
getOpcode()
获取封包编号.
|
Session.State |
getState()
获取当前方法在什么Session状态才可以被执行.
|
void |
incrCallNum()
调用次数自增
|
boolean |
isDeprecated()
判定当前封包处理方法是否被废弃使用.
|
boolean |
isInner()
是否为内部指令.
|
void |
setDeprecated(boolean deprecated)
设置当前封包处理方法是否被废弃使用.
|
getModule, isPrintLog, logCode, setPrintLog, threadGroupgetOrder, invokepublic PacketMethodWrapper(xyz.noark.reflectasm.MethodAccess methodAccess,
java.lang.Object single,
PacketMethodDefinition md,
Controller controller)
public java.lang.Object[] analysisParam(Session session, ByteArray bytes)
session - Session对象bytes - 协议封包public java.lang.Object[] analysisParam(java.io.Serializable playerId,
java.lang.Object protocal)
playerId - 玩家IDprotocal - 协议对象public boolean isDeprecated()
public void setDeprecated(boolean deprecated)
deprecated - 是否被废弃public java.lang.Integer getOpcode()
public boolean isInner()
如果是内部指令,客户端过来的封包是不可以调用此方法的.
public Session.State getState()
public void incrCallNum()
public long getCallNum()