Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a specific game from the CF-Core api.

Hierarchy

  • CFObject
    • Game

Index

Constructors

Properties

apiStatus: CoreApiStatus

The api status for the game.

readonly
assets: GameAssets

Assets related to the game.

readonly
dateModified: Date

the Date when the game got last modified. Does not include changes in the mods.

readonly
id: number

The id of the game.

readonly
name: string

The name of the game.

readonly
slug: string

The slug of the game. a slug is a string identifier.

readonly
status: CoreStatus

The game status.

readonly

Methods

  • Get the categories for this game.

    Parameters

    • Optional classId: number | Category

      Optional TopLevel id of the category to get from.

    Returns Promise<Category[]>

    a list of categories.

  • get_featured(gameVersionType?: number | GameVersionType, excludedMods?: number[]): Promise<{ featured: Mod[]; popular: Mod[]; recentlyUpdated: Mod[] }>
  • Parameters

    • Optional gameVersionType: number | GameVersionType

      Optional game version type to look for.

    • Optional excludedMods: number[]

      a list of mods to not include.

    Returns Promise<{ featured: Mod[]; popular: Mod[]; recentlyUpdated: Mod[] }>

    an object with multiple lists of Mod

  • Search for "mods" related to this game. Mods also by default includes things like Resource packs / mod packs / custom worlds. Make sure to use the proper Top-Level Category if you only wants to find game modifications.

    Parameters

    Returns Promise<Mod[] & { paging: Pagination }>

    a list of found Mod as well as a paging value for Pagination.

Generated using TypeDoc