Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Multiplayer

Hierarchy

  • Multiplayer

Implements

Index

Constructors

constructor

  • Returns Multiplayer

Methods

createServer

disconnect

  • disconnect(): void

executeSyncedPacket

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

getOptions

isClient

  • isClient(): boolean

isConnected

  • isConnected(): boolean

isServer

  • isServer(): boolean

joinServer

  • joinServer(channel: string): void
  • Parameters

    • channel: string

    Returns void

kick

  • Parameters

    Returns void

onPlaying

  • onPlaying(): void

sendPacket

setMatchmakingServer

  • setMatchmakingServer(host: string): void

syncPacket

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

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

    Returns void

updatePlayerId

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

    • oldPid: number
    • newPid: number

    Returns void

Generated using TypeDoc