PokéRogue
    Preparing search index...

    The SpeciesDataRegistry is a singleton class responsible for managing and querying species-related information.

    Index

    Constructors

    Properties

    Accessors

    Methods

    • Helper to validate a form index or retrieve the form index associated with a form key.

      Parameters

      • speciesId: SpeciesId

        The SpeciesId of the species to get the form index for

      • form: string | number

        The formIndex or formKey of the form to get the form index for.

      Returns number

      The form index

    • Helper to get the form key for a given species and formIndex or formKey. Also validates that the form exists and falls back to the base form if it doesn't.

      Parameters

      • speciesId: SpeciesId

        The SpeciesId of the species to get the form key for

      • Optionalform: string | number

        (Optional) The formIndex or formKey of the form to get the form key for. Uses the base form if not specified.

      Returns string

      The formKey

    • Get all available level moves for a given species and form.

      Parameters

      • speciesId: SpeciesId

        The SpeciesId of the species to get level moves for

      • Optionalform: string | number

        (Optional) The formIndex or formKey of the form to get level moves for. Uses the base form if not specified.

      Returns LevelMoves

      An array of all level moves available

    • Get the starter cost for a given species.

      Parameters

      Returns 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10

      The starter cost of the species

    • Get all available TMs for a given species and form.

      Parameters

      • speciesId: SpeciesId

        The SpeciesId of the species to get TMs for

      • Optionalform: string | number

        (Optional) The formIndex or formKey of the form to get TMs for. Uses the base form if not specified.

      Returns MoveId[]

      An array of all TMs available