Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMultiplayer

Hierarchy

  • IMultiplayer

Implemented by

Index

Methods

addSyncCheck

  • Parameters

    Returns void

createServer

  • Parameters

    Returns void

disconnect

  • disconnect(): void
  • Returns void

executeSyncedPacket

  • executeSyncedPacket(packetObjectOrType: Packet | PacketType): number | undefined | void
  • Parameters

    Returns number | undefined | void

getOptions

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

  • Parameters

    Returns void

onLobbyEntered

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

    • success: boolean
    • lobbyId: string

    Returns void

onPlaying

  • onPlaying(): void
  • Returns void

sendPacket

  • Parameters

    Returns void

syncPacket

  • syncPacket(packet: Packet, clientSide?: function, checkPacketType?: boolean): any
  • Parameters

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

    • Optional checkPacketType: boolean

    Returns any

updatePlayerId

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

    • oldPid: number
    • newPid: number

    Returns void

Generated using TypeDoc