ProxyPlayerImpl

class ProxyPlayerImpl(val id: UUID, var username: String, transferServiceProvider: () -> PlayerTransferService?, messageSenderProvider: () -> (ProxyPlayerImpl, String) -> Boolean) : ProxyPlayer

Mutable proxy player implementation.

Constructors

Link copied to clipboard
constructor(id: UUID, username: String, transferServiceProvider: () -> PlayerTransferService?, messageSenderProvider: () -> (ProxyPlayerImpl, String) -> Boolean)

Properties

Link copied to clipboard
open override var backendId: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: UUID
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var state: PlayerState
Link copied to clipboard
open override var username: String

Functions

Link copied to clipboard
fun bindConnectionMetadata(sessionId: UUID, clientChannel: QuicChannel?, remoteAddress: InetSocketAddress?, protocolCrc: Int, protocolBuildNumber: Int, clientVersion: String, clientType: Byte, language: String)
Link copied to clipboard
open override fun disconnect(reason: String?)
Link copied to clipboard
fun requestPingMillis(onResult: (Long?) -> Unit)
Link copied to clipboard
open override fun sendMessage(message: String)
Link copied to clipboard
open override fun transferTo(backendId: String)