GameClient

class GameClient(logger: Logger, socket: Socket, connectionPool: ConnectionPool, assemblers: Map<KClass<*>, PacketAssembler<Packet>>, disassemblers: Map<Int, PacketDisassembler<Packet>>, handlers: Map<KClass<*>, PacketHandler<ProxyPacket>>, proxies: Map<KClass<*>, ProxyPacketHandler<Packet, ProxyPacket>>) : Client

Author

Jordan Abraham

Constructors

Link copied to clipboard
constructor(logger: Logger, socket: Socket, connectionPool: ConnectionPool, assemblers: Map<KClass<*>, PacketAssembler<Packet>>, disassemblers: Map<Int, PacketDisassembler<Packet>>, handlers: Map<KClass<*>, PacketHandler<ProxyPacket>>, proxies: Map<KClass<*>, ProxyPacketHandler<Packet, ProxyPacket>>)

Functions

Link copied to clipboard
open suspend override fun accept()
Link copied to clipboard
open override fun authenticate(userId: Int)
Link copied to clipboard
open suspend override fun awaitPacket(): Packet?
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun connected(): Boolean
Link copied to clipboard
open override fun player(): Player?
Link copied to clipboard
open override fun processReadPool()
Link copied to clipboard
open override fun processWritePool()
Link copied to clipboard
open override fun socketAddress(): SocketAddress
Link copied to clipboard
open override fun writePacket(packet: Packet)