Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Multiplayer

Hierarchy

  • Multiplayer

Implements

Index

Constructors

constructor

  • Returns Multiplayer

Methods

addAfterSyncChecks

  • addAfterSyncChecks(packet: IPacket): void

addBeforeSyncChecks

  • addBeforeSyncChecks(packet: IPacket): void

addSyncCheck

closeConnection

createServer

disconnect

disconnectAndResetGameState

displayJoinServerRetryDialog

  • displayJoinServerRetryDialog(matchmakingInfo: IMatchmakingInfo): Promise<void>

getBannedPlayers

  • getBannedPlayers(): string[]

getClients

getConnectedMatchmakingInfo

getDedicatedServerMatchmakingInfo

  • getDedicatedServerMatchmakingInfo(matchmakingServer: string, identifier?: string): IMatchmakingInfo

getDefaultOptions

getOptions

getPlayerIdentifier

  • getPlayerIdentifier(): string

isClient

  • isClient(): boolean

isConnected

  • isConnected(): boolean

isProcessingPacket

  • isProcessingPacket(): boolean

isReady

  • isReady(): boolean
  • Returns boolean

isServer

  • isServer(): boolean

isSyncCheckEnabled

  • Parameters

    Returns boolean

joinServer

kick

onLobbyEntered

  • onLobbyEntered(success: boolean, lobbyId: string): void
  • Parameters

    • success: boolean
    • lobbyId: string

    Returns void

onPlaying

  • onPlaying(): void

pausePacketProcessing

  • pausePacketProcessing(pause: boolean): void

queueSyncPacket

  • queueSyncPacket(packet: IPacket, clientSide?: function, checkId?: boolean, waitId?: number): void
  • Parameters

    • packet: IPacket
    • Optional clientSide: function
        • (): any
        • Returns any

    • Optional checkId: boolean
    • Optional waitId: number

    Returns void

resetSyncPacketsWaiting

  • resetSyncPacketsWaiting(): void

sendPacket

sendPacketTo

setBanned

  • setBanned(identifier: string, ban: boolean): boolean
  • Parameters

    • identifier: string
    • ban: boolean

    Returns boolean

setOptions

suppressSyncChecks

  • suppressSyncChecks(suppress: boolean): void

syncGameState

  • syncGameState(): void

syncPacket

  • syncPacket(packet: IPacket, clientSide?: function, checkId?: boolean, waitId?: number): any
  • Parameters

    • packet: IPacket
    • Optional clientSide: function
        • (): any
        • Returns any

    • Optional checkId: boolean
    • Optional waitId: number

    Returns any

updateOptions

updatePlayerId

  • updatePlayerId(oldPid: number, newPid: number): void
  • Parameters

    • oldPid: number
    • newPid: number

    Returns void

Generated using TypeDoc