Open-source multiplayer game server compatible with the RuneScape client https://www.openrs2.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
openrs2/protocol/src/main/kotlin/org/openrs2/protocol/login/InitJs5RemoteConnectionCode...

19 lines
622 B

package org.openrs2.protocol.login
import io.netty.buffer.ByteBuf
import org.openrs2.protocol.PacketCodec
public object InitJs5RemoteConnectionCodec : PacketCodec<LoginRequest.InitJs5RemoteConnection>(
type = LoginRequest.InitJs5RemoteConnection::class.java,
opcode = 15,
length = 4
) {
override fun decode(input: ByteBuf): LoginRequest.InitJs5RemoteConnection {
val version = input.readInt()
return LoginRequest.InitJs5RemoteConnection(version)
}
override fun encode(input: LoginRequest.InitJs5RemoteConnection, output: ByteBuf) {
output.writeInt(input.version)
}
}