Skip to main content

Dimensions

Functions

getDimension

getDimension(): Dimension

Helper function to get the current dimension. Most of the time, this will be Dimension.MAIN, but it can change if e.g. the player is in the mirror world of Downpour/Dross.

Returns

Dimension

Defined in

packages/isaacscript-common/src/functions/dimensions.ts:10


inDimension

inDimension(dimension): boolean

Parameters

NameType
dimensionDimension

Returns

boolean

Defined in

packages/isaacscript-common/src/functions/dimensions.ts:31