Hierarchy

Constructors

  • Creates an instance of wrapper.

    Parameters

    • config: Config = ...

      Configuration

    Returns Wrapper

Properties

activated: boolean = false

Weather or not the wrapper is activated.

config: Config

Configuration for the wrapper.

pluginInfo: undefined | PluginInfo

Latest PluginInfo from the wrapper.

kartEventInfo: undefined | KartEventInfo

Latest KartEventInfo from the wrapper.

kartSessionInfo: undefined | KartSessionInfo

Latest KartSessionInfo from the wrapper.

kartLapsInfo: undefined | KartLapsInfo

Latest KartLapsInfo from the wrapper.

kartSplitsInfo: undefined | KartSplitsInfo

Latest KartSplitsInfo from the wrapper.

kartTelemetryInfo: undefined | KartTelemetryInfo

Latest KartTelemetryInfo from the wrapper.

trackSegmentsInfo: undefined | TrackSegmentsInfo

Latest TrackSegmentsInfo from the wrapper.

raceEventInfo: undefined | RaceEventInfo

Latest RaceEventInfo from the wrapper.

raceEntriesInfo: undefined | RaceEntriesInfo

Latest RaceEntriesInfo from the wrapper.

raceSessionInfo: undefined | RaceSessionInfo

Latest RaceSessionInfo from the wrapper.

raceLapsInfo: undefined | RaceLapsInfo

Latest RaceLapsInfo from the wrapper.

raceSplitsInfo: undefined | RaceSplitsInfo

Latest RaceSplitsInfo from the wrapper.

raceSpeedsInfo: undefined | RaceSpeedsInfo

Latest RaceSpeedsInfo from the wrapper.

raceCommunicationsInfo: undefined | RaceCommunicationsInfo

Latest RaceCommunicationsInfo from the wrapper.

raceClassificationInfo: undefined | RaceClassificationInfo

Latest RaceClassificationInfo from the wrapper.

raceTrackPositionsInfo: undefined | RaceTrackPositionsInfo

Latest RaceTrackPositionsInfo from the wrapper.

raceVehiclesDataInfo: undefined | RaceVehiclesDataInfo

Latest RaceVehiclesDataInfo from the wrapper.

camerasInfo: undefined | CamerasInfo

Latest CamerasInfo from the wrapper.

defaultMaxListeners: number

Methods

  • Returns if the wrapper is connected.

    Returns boolean

  • Private

    Tries to connect the wrapper.

    Returns void

  • Private

    Disconnects the wrapper.

    Parameters

    • reason: string = ""

      Reason for disconnect

    Returns void

  • Private

    Checks if plugin is still alive.

    Returns void

  • Private

    Updates the KartEventInfo Event.

    Returns void

  • Private

    Updates the KartSessionInfo Event.

    Returns void

  • Private

    Updates the KartLapsInfo Event.

    Returns void

  • Private

    Updates the KartSplitsInfo Event.

    Returns void

  • Private

    Updates the KartTelemetryInfo Event.

    Returns void

  • Private

    Updates the TrackSegmentsInfo Event.

    Returns void

  • Private

    Updates the RaceEventInfo Event.

    Returns void

  • Private

    Updates the RaceEntriesInfo Event.

    Returns void

  • Private

    Updates the RaceSessionInfo Event.

    Returns void

  • Private

    Updates the RaceLapsInfo Event.

    Returns void

  • Private

    Updates the RaceSplitsInfo Event.

    Returns void

  • Private

    Updates the RaceSpeedsInfo Event.

    Returns void

  • Private

    Updates the RaceClassificationInfo Event.

    Returns void

  • Private

    Updates the RaceTrackPositionsInfo Event.

    Returns void

  • Private

    Updates the RaceVehiclesDataInfo Event.

    Returns void

  • Private

    Updates the CamerasInfo Event.

    Returns void

  • Set the vehicle to spectate.

    Parameters

    • vehicle: number

      The vehicle id to spectate.

    Returns void

  • Set the camera to spectate.

    Parameters

    • camera: number

      The camera id to spectate.

    Returns void

  • Type Parameters

    Parameters

    Returns this

  • Type Parameters

    Parameters

    Returns this

  • Type Parameters

    Parameters

    Returns this

  • Type Parameters

    Parameters

    Returns this

  • Parameters

    • Optional event: keyof Events

    Returns this

  • Type Parameters

    Parameters

    Returns this

  • Type Parameters

    Parameters

    Returns this

  • Type Parameters

    Parameters

    Returns this

  • Type Parameters

    Parameters

    • event: U
    • Rest ...args: Parameters<Events[U]>

    Returns boolean

  • Type Parameters

    Returns U[]

  • Parameters

    Returns number

  • Type Parameters

    Parameters

    • type: U

    Returns Events[U][]

  • Type Parameters

    Parameters

    • type: U

    Returns Events[U][]

  • Returns number

  • Parameters

    • n: number

    Returns this

Generated using TypeDoc