Class FVTTVersion

Provides a helper class to determine the version of the Foundry platform starting a version 9.

Note: You must use any of these utility methods after the Foundry init hook.

Constructors

Methods

Constructors

Methods

  • Returns true when Foundry is at least the specific major version number provided.

    Note: game must be initialized for correct comparison; use after Foundry init hook.

    Parameters

    • version: number

      Major version to check against.

    Returns boolean

    Foundry version is at least the major version specified.

  • Returns true when Foundry is inclusively between the min / max major version numbers provided.

    Parameters

    • min: number

      Major minimum version to check against.

    • max: number

      Major maximum version to check against.

    Returns boolean

    Foundry version is at least the major version specified.