forked from openrs2/openrs2
I'm currently working on a CreateResponse class, which is even more distinct from LoginResponse - so I've decided to separate it. For consistency, separating the JS5 login responses seems sensible too. Signed-off-by: Graham <gpe@openrs2.org>master
parent
e4b5f8b850
commit
851ef8e4e9
@ -0,0 +1,10 @@ |
||||
package org.openrs2.protocol.js5.downstream |
||||
|
||||
import org.openrs2.protocol.EmptyPacketCodec |
||||
import javax.inject.Singleton |
||||
|
||||
@Singleton |
||||
public class Js5ClientOutOfDateCodec : EmptyPacketCodec<Js5LoginResponse.ClientOutOfDate>( |
||||
packet = Js5LoginResponse.ClientOutOfDate, |
||||
opcode = 6 |
||||
) |
@ -0,0 +1,10 @@ |
||||
package org.openrs2.protocol.js5.downstream |
||||
|
||||
import org.openrs2.protocol.EmptyPacketCodec |
||||
import javax.inject.Singleton |
||||
|
||||
@Singleton |
||||
public class Js5IpLimitCodec : EmptyPacketCodec<Js5LoginResponse.IpLimit>( |
||||
packet = Js5LoginResponse.IpLimit, |
||||
opcode = 9 |
||||
) |
@ -0,0 +1,10 @@ |
||||
package org.openrs2.protocol.js5.downstream |
||||
|
||||
import org.openrs2.protocol.Packet |
||||
|
||||
public sealed class Js5LoginResponse : Packet { |
||||
public object Ok : Js5LoginResponse() |
||||
public object ClientOutOfDate : Js5LoginResponse() |
||||
public object ServerFull : Js5LoginResponse() |
||||
public object IpLimit : Js5LoginResponse() |
||||
} |
@ -0,0 +1,10 @@ |
||||
package org.openrs2.protocol.js5.downstream |
||||
|
||||
import org.openrs2.protocol.EmptyPacketCodec |
||||
import javax.inject.Singleton |
||||
|
||||
@Singleton |
||||
public class Js5OkCodec : EmptyPacketCodec<Js5LoginResponse.Ok>( |
||||
packet = Js5LoginResponse.Ok, |
||||
opcode = 0 |
||||
) |
@ -0,0 +1,10 @@ |
||||
package org.openrs2.protocol.js5.downstream |
||||
|
||||
import org.openrs2.protocol.EmptyPacketCodec |
||||
import javax.inject.Singleton |
||||
|
||||
@Singleton |
||||
public class Js5ServerFullCodec : EmptyPacketCodec<Js5LoginResponse.ServerFull>( |
||||
packet = Js5LoginResponse.ServerFull, |
||||
opcode = 7 |
||||
) |
@ -1,10 +0,0 @@ |
||||
package org.openrs2.protocol.login.downstream |
||||
|
||||
import org.openrs2.protocol.EmptyPacketCodec |
||||
import javax.inject.Singleton |
||||
|
||||
@Singleton |
||||
public class Js5OkCodec : EmptyPacketCodec<LoginResponse.Js5Ok>( |
||||
packet = LoginResponse.Js5Ok, |
||||
opcode = 0 |
||||
) |
Loading…
Reference in new issue