Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMultiplayer

Hierarchy

  • IMultiplayer

Implemented by

Index

Methods

addAfterSyncChecks

  • addAfterSyncChecks(packet: IPacket): void
  • Parameters

    Returns void

addBeforeSyncChecks

  • addBeforeSyncChecks(packet: IPacket): void
  • Parameters

    Returns void

addSyncCheck

  • Parameters

    Returns void

closeConnection

  • Parameters

    Returns void

createServer

disconnect

disconnectAndResetGameState

displayJoinServerRetryDialog

  • Parameters

    Returns void

getBannedPlayers

  • getBannedPlayers(): string[]
  • Returns string[]

getClients

  • Returns IConnection[]

getConnectedMatchmakingInfo

  • Returns IMatchmakingInfo | undefined

getDedicatedServerMatchmakingInfo

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

    • matchmakingServer: string
    • Optional identifier: string

    Returns IMatchmakingInfo

getDefaultOptions

getOptions

getPlayerIdentifier

  • getPlayerIdentifier(): string
  • Returns string

isClient

  • isClient(): boolean
  • Returns boolean

isConnected

  • isConnected(): boolean
  • Returns boolean

isProcessingPacket

  • isProcessingPacket(): boolean
  • Returns boolean

isReady

  • isReady(): boolean
  • Returns boolean

isServer

  • isServer(): boolean
  • Returns boolean

joinServer

  • Parameters

    Returns void

kick

onLobbyEntered

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

    • success: boolean
    • lobbyId: string

    Returns void

onPlaying

  • onPlaying(): void
  • Returns void

pausePacketProcessing

  • pausePacketProcessing(pause: boolean): void
  • Parameters

    • pause: boolean

    Returns 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
  • Returns void

sendPacket

  • Parameters

    Returns void

sendPacketTo

  • Parameters

    Returns void

setBanned

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

    • identifier: string
    • ban: boolean

    Returns boolean

setOptions

  • Parameters

    Returns void

suppressSyncChecks

  • suppressSyncChecks(suppress: boolean): void
  • Parameters

    • suppress: boolean

    Returns void

syncGameState

  • syncGameState(): void
  • Returns 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

  • Parameters

    Returns void

updatePlayerId

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

    • oldPid: number
    • newPid: number

    Returns void

Generated using TypeDoc