CachedClasses
Variables
Section titled “Variables”
constgame:Game
Defined in: packages/isaacscript-common/src/core/cachedClasses.ts:11
A cached version of the class returned from the Game() constructor.
Use this instead of invoking the constructor again for a miniscule performance increase.
Caching the results of this constructor is safe, but caching other classes (like Level or
Room) is not safe and can lead to the game crashing in certain situations.
itemConfig
Section titled “itemConfig”
constitemConfig:ItemConfig
Defined in: packages/isaacscript-common/src/core/cachedClasses.ts:21
A cached version of the class returned from the Isaac.GetItemConfig() constructor.
Use this instead of invoking the constructor again for a miniscule performance increase.
Caching the results of this constructor is safe, but caching other classes (like Level or
Room) is not safe and can lead to the game crashing in certain situations.
musicManager
Section titled “musicManager”
constmusicManager:MusicManager
Defined in: packages/isaacscript-common/src/core/cachedClasses.ts:31
A cached version of the class returned from the MusicManager() constructor.
Use this instead of invoking the constructor again for a miniscule performance increase.
Caching the results of this constructor is safe, but caching other classes (like Level or
Room) is not safe and can lead to the game crashing in certain situations.
sfxManager
Section titled “sfxManager”
constsfxManager:SFXManager
Defined in: packages/isaacscript-common/src/core/cachedClasses.ts:41
A cached version of the class returned from the SFXManager() constructor.
Use this instead of invoking the constructor again for a miniscule performance increase.
Caching the results of this constructor is safe, but caching other classes (like Level or
Room) is not safe and can lead to the game crashing in certain situations.
constfonts:object
Defined in: packages/isaacscript-common/src/core/cachedClasses.ts:49
An object containing all 7 vanilla fonts that are pre-loaded and ready to use.
For more information on the vanilla fonts and to see what they look like, see: https://wofsauge.github.io/IsaacDocs/rep/tutorials/Tutorial-Rendertext.html
Type Declaration
Section titled “Type Declaration”
readonlydroid:Font
pfTempestaSevenCondensed
Section titled “pfTempestaSevenCondensed”
readonlypfTempestaSevenCondensed:Font
teamMeatFont10
Section titled “teamMeatFont10”
readonlyteamMeatFont10:Font
teamMeatFont12
Section titled “teamMeatFont12”
readonlyteamMeatFont12:Font
teamMeatFont16Bold
Section titled “teamMeatFont16Bold”
readonlyteamMeatFont16Bold:Font
terminus
Section titled “terminus”
readonlyterminus:Font
upheaval
Section titled “upheaval”
readonlyupheaval:Font
