Skip to main content

Globals

Functions

getDefaultGlobals

getDefaultGlobals(): ReadonlySet<string>

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.

Returns

ReadonlySet<string>

Defined in

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


getNewGlobals

getNewGlobals(): ReadonlyArray<[AnyNotNil, unknown]>

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

Returns

ReadonlyArray<[AnyNotNil, unknown]>

Defined in

packages/isaacscript-common/src/functions/globals.ts:218


logNewGlobals

logNewGlobals(): void

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

Returns

void

Defined in

packages/isaacscript-common/src/functions/globals.ts:235


setLogFunctionsGlobal

setLogFunctionsGlobal(): void

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.

Returns

void

Defined in

packages/isaacscript-common/src/functions/globals.ts:255


setTracebackFunctionsGlobal

setTracebackFunctionsGlobal(): void

Sets the traceback and getTraceback functions to be global functions.

This is useful when editing Lua files when troubleshooting.

Returns

void

Defined in

packages/isaacscript-common/src/functions/globals.ts:271