Package crow.game.ha0.proto
Class UserCountHandler
java.lang.Object
crow.game.ha0.proto.UserCountHandler
- All Implemented Interfaces:
PacketHandler<UserCount>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromPacket(Context ctx, PacketReader reader) Convert the given buffer to the type.voidWrites the object of type T to the byte buffer.
-
Constructor Details
-
UserCountHandler
public UserCountHandler()
-
-
Method Details
-
fromPacket
Description copied from interface:PacketHandlerConvert the given buffer to the type.- Specified by:
fromPacketin interfacePacketHandler<UserCount>- Parameters:
ctx- The calling context.reader- The input buffer stream reader.- Returns:
- The POJO object
- Throws:
Exception- on errors
-
toPacket
Description copied from interface:PacketHandlerWrites the object of type T to the byte buffer.- Specified by:
toPacketin interfacePacketHandler<UserCount>- 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<UserCount>- Parameters:
ctx- The calling context.- Returns:
- The packet rule object which specifies when this packet handler should be called.
- See Also:
-