Package crow.game.ha0.proto
Class AccountReg2ResponseHandler
java.lang.Object
crow.game.ha0.proto.AccountReg2ResponseHandler
- All Implemented Interfaces:
PacketHandler<AccountReg2Response>
public class AccountReg2ResponseHandler
extends Object
implements PacketHandler<AccountReg2Response>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromPacket(Context ctx, PacketReader buffer) Convert the given buffer to the type.voidtoPacket(Context ctx, io.netty.buffer.ByteBuf buffer, AccountReg2Response src) Writes the object of type T to the byte buffer.
-
Constructor Details
-
AccountReg2ResponseHandler
public AccountReg2ResponseHandler()
-
-
Method Details
-
fromPacket
Description copied from interface:PacketHandlerConvert the given buffer to the type.- Specified by:
fromPacketin interfacePacketHandler<AccountReg2Response>- Parameters:
ctx- The calling context.buffer- The input buffer stream reader.- Returns:
- The POJO object
- Throws:
Exception- on errors
-
toPacket
public void toPacket(Context ctx, io.netty.buffer.ByteBuf buffer, AccountReg2Response src) throws Exception Description copied from interface:PacketHandlerWrites the object of type T to the byte buffer.- Specified by:
toPacketin interfacePacketHandler<AccountReg2Response>- Parameters:
ctx- The calling context.buffer- The destination buffer.src- The source object we are converting.- Throws:
Exception- on errors
-
rule
- Specified by:
rulein interfacePacketHandler<AccountReg2Response>- Parameters:
ctx- The calling context.- Returns:
- The packet rule object which specifies when this packet handler should be called.
- See Also:
-