Options
All
  • Public
  • Public/Protected
  • All
Menu

Collection of Game related API functions

Index

Variables

Const onDidLaunchAddApp

onDidLaunchAddApp: Event<AdditionalApp>

Const onDidLaunchCurationAddApp

onDidLaunchCurationAddApp: Event<AdditionalApp>

Const onDidLaunchCurationGame

onDidLaunchCurationGame: Event<Game>

Const onDidLaunchGame

onDidLaunchGame: Event<Game>

Const onDidRemoveGame

onDidRemoveGame: Event<Game>

Const onDidRemovePlaylistGame

onDidRemovePlaylistGame: Event<PlaylistGame>

Const onDidUpdateGame

onDidUpdateGame: Event<{ newGame: Game; oldGame: Game }>

Const onDidUpdatePlaylist

onDidUpdatePlaylist: Event<{ newPlaylist: Playlist; oldPlaylist: Playlist }>

Const onDidUpdatePlaylistGame

onDidUpdatePlaylistGame: Event<{ newGame: PlaylistGame; oldGame: PlaylistGame }>

Const onWillImportGame

onWillImportGame: Event<CurationImportState>

Const onWillLaunchAddApp

onWillLaunchAddApp: Event<AdditionalApp>

Const onWillLaunchCurationAddApp

onWillLaunchCurationAddApp: Event<AdditionalApp>

Const onWillLaunchCurationGame

onWillLaunchCurationGame: Event<GameLaunchInfo>

Const onWillLaunchGame

onWillLaunchGame: Event<GameLaunchInfo>

Functions

countGames

  • countGames(): Promise<number>

createPlaylistFromJson

  • createPlaylistFromJson(jsonData: any, library?: undefined | string): Playlist
  • Parses a Playlist JSON file and returns an object you can save later.

    Parameters

    • jsonData: any

      Raw JSON data of the Playlist file

    • Optional library: undefined | string

      Library to use instead of Playlist defined library

    Returns Playlist

findGame

  • findGame(id: string): Promise<Game | undefined>

findGames

findGamesWithTag

  • findGamesWithTag(tag: Tag): Promise<Game[]>

findPlatforms

  • findPlatforms(library: string): Promise<string[]>

findPlaylist

  • findPlaylist(playlistId: string, join?: undefined | false | true): Promise<Playlist | undefined>
  • Finds a playlist given its ID

    Parameters

    • playlistId: string

      ID of the Playlist

    • Optional join: undefined | false | true

      Whether to include Playlist Games in the result

    Returns Promise<Playlist | undefined>

findPlaylistByName

  • findPlaylistByName(playlistName: string, join?: undefined | false | true): Promise<Playlist | undefined>
  • Finds a playlist given its name

    Parameters

    • playlistName: string

      Name of the Playlist

    • Optional join: undefined | false | true

      Whether to include Playlist Games in the result

    Returns Promise<Playlist | undefined>

findPlaylistGame

  • findPlaylistGame(playlistId: string, gameId: string): Promise<PlaylistGame | undefined>

findPlaylists

  • findPlaylists(showExtreme: boolean): Promise<Playlist[]>

removeGameAndAddApps

  • removeGameAndAddApps(gameId: string): Promise<Game | undefined>

removePlaylist

  • removePlaylist(playlistId: string): Promise<Playlist | undefined>

removePlaylistGame

  • removePlaylistGame(playlistId: string, gameId: string): Promise<PlaylistGame | undefined>

updateGame

updateGames

  • updateGames(games: Game[]): Promise<void>

updatePlaylist

updatePlaylistGame

updatePlaylistGames

  • updatePlaylistGames(playlistGames: PlaylistGame[]): Promise<void>

Generated using TypeDoc