toggle menu
openrs2
jvm
switch theme
search in API
openrs2
/
org.openrs2.protocol
/
Protocol
Protocol
@
Singleton
class
Protocol
@
Inject
constructor
(
codecs
:
Set
<
PacketCodec
<
*
>
>
)
Members
Constructors
Protocol
Link copied to clipboard
constructor
(
vararg
codecs
:
PacketCodec
<
*
>
)
@
Inject
constructor
(
codecs
:
Set
<
PacketCodec
<
*
>
>
)
Functions
get
Decoder
Link copied to clipboard
fun
getDecoder
(
opcode
:
Int
)
:
PacketCodec
<
*
>
?
get
Encoder
Link copied to clipboard
fun
<
T
:
Packet
>
getEncoder
(
type
:
Class
<
T
>
)
:
PacketCodec
<
T
>
?