Skip to content

Globals

getDefaultGlobals(): ReadonlySet<string>

Defined in: packages/isaacscript-common/src/functions/globals.ts:196

Helper function to get a set containing all of the global variable names that are contained within the Isaac environment by default.

Returns a slightly different set depending on whether the “–luadebug” flag is enabled.

ReadonlySet<string>


getNewGlobals(): readonly [AnyNotNil, unknown][]

Defined in: packages/isaacscript-common/src/functions/globals.ts:214

Helper function to get an array of any added global variables in the Isaac Lua environment. Returns a sorted array of key/value tuples.

readonly [AnyNotNil, unknown][]


logNewGlobals(): void

Defined in: packages/isaacscript-common/src/functions/globals.ts:232

Helper function to log any added global variables in the Isaac Lua environment.

void


setLogFunctionsGlobal(): void

Defined in: packages/isaacscript-common/src/functions/globals.ts:252

Converts every isaacscript-common function that begins with “log” to a global function.

This is useful when printing out variables from the in-game debug console.

void


setTracebackFunctionsGlobal(): void

Defined in: packages/isaacscript-common/src/functions/globals.ts:268

Sets the traceback and getTraceback functions to be global functions.

This is useful when editing Lua files when troubleshooting.

void