Options
All
  • Public
  • Public/Protected
  • All
Menu

Class YGameSession

Hierarchy

  • YGameSession

Index

Constructors

constructor

Methods

Static dispatchReservedSession

  • dispatchReservedSession(sessionObject: void): void
  • Parameters

    • sessionObject: void

    Returns void

Static enablePlayerJoin

  • enablePlayerJoin(enable: boolean): void
  • Parameters

    • enable: boolean

    Returns void

Static endGame

  • endGame(): void
  • Returns void

Static getPlayers

  • Parameters

    • onlineOnly: boolean

    Returns YCharacter[]

Static isMobileOnlyServer

  • isMobileOnlyServer(): boolean
  • Returns boolean

Static matchmakingCancel

Static matchmakingGetReserveGameId

  • matchmakingGetReserveGameId(sessionObject: void): string
  • Parameters

    • sessionObject: void

    Returns string

Static matchmakingStart

  • matchmakingStart(guids: string[], player: YCharacter, priority: number, onReserved: (sessionObject: void) => void, onReservationFailed: (failReason: YMatchmakingError) => void): void
  • Parameters

    • guids: string[]
    • player: YCharacter
    • priority: number
    • onReserved: (sessionObject: void) => void
        • (sessionObject: void): void
        • Parameters

          • sessionObject: void

          Returns void

    • onReservationFailed: (failReason: YMatchmakingError) => void

    Returns void

Static reserveSession

  • reserveSession(guid: string, players: YCharacter[], onReserved: (sessionObject: void) => void, onReservationFailed: (failReason: YReservationError) => void): void
  • Parameters

    Returns void

Static restartGame

  • restartGame(rejoinPlayers: boolean): void
  • restartGame(playersToRejoin: YCharacter[]): void
  • Parameters

    • rejoinPlayers: boolean

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc