Cached Classes
Variables
game
• Const
game: Game
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.
Defined in
packages/isaacscript-common/src/core/cachedClasses.ts:9
itemConfig
• Const
itemConfig: ItemConfig
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.
Defined in
packages/isaacscript-common/src/core/cachedClasses.ts:19
musicManager
• Const
musicManager: MusicManager
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.
Defined in
packages/isaacscript-common/src/core/cachedClasses.ts:29
sfxManager
• Const
sfxManager: SFXManager
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.
Defined in
packages/isaacscript-common/src/core/cachedClasses.ts:39
fonts
• Const
fonts: Object
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
Name | Type |
---|---|
droid | Font |
pfTempestaSevenCondensed | Font |
teamMeatFont10 | Font |
teamMeatFont12 | Font |
teamMeatFont16Bold | Font |
terminus | Font |
upheaval | Font |