Class FVTTVersion
Index
Constructors
Methods
Constructors
constructor
- new FVTTVersion(): FVTTVersion
Returns FVTTVersion
Methods
Static
isAtLeast
- is
At (version): booleanLeast Returns true when Foundry is at least the specific major version number provided.
Note:
game
must be initialized for correct comparison; use after Foundryinit
hook.Parameters
- version: number
Major version to check against.
Returns boolean
Foundry version is at least the major version specified.
- version: number
Static
isBetween
- is
Between (min, max): boolean 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.
- min: number
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.