Globals
Functions
Section titled “Functions”getDefaultGlobals()
Section titled “getDefaultGlobals()”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.
Returns
Section titled “Returns”ReadonlySet<string>
getNewGlobals()
Section titled “getNewGlobals()”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.
Returns
Section titled “Returns”readonly [AnyNotNil, unknown][]
logNewGlobals()
Section titled “logNewGlobals()”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.
Returns
Section titled “Returns”void
setLogFunctionsGlobal()
Section titled “setLogFunctionsGlobal()”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.
Returns
Section titled “Returns”void
setTracebackFunctionsGlobal()
Section titled “setTracebackFunctionsGlobal()”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.
Returns
Section titled “Returns”void
