PacketRegistry

open class PacketRegistry

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun byType(type: Int): Packet<out Any>
Link copied to clipboard
open fun getType(packet: Packet<out Any>): Int
Link copied to clipboard
open fun register(packetId: Int, clazz: Class<out Packet<out Any>>)