Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMultiplayer

Hierarchy

  • IMultiplayer

Implemented by

Index

Methods

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

isServer

  • isServer(): boolean
  • Returns boolean

joinServer

  • joinServer(serverId: string): void
  • Parameters

    • serverId: string

    Returns void

kick

  • Parameters

    Returns void

onPlaying

  • onPlaying(): void
  • Returns void

sendPacket

  • Parameters

    Returns void

setMatchmakingServer

  • setMatchmakingServer(host: string): void
  • Parameters

    • host: string

    Returns void

syncPacket

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

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

    Returns any

updatePlayerId

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

    • oldPid: number
    • newPid: number

    Returns void

Generated using TypeDoc