Skip to main content

Run Next Run

Hierarchy

  • Feature

    RunNextRun

Methods

vConditionalFunc

vConditionalFunc(): boolean

Returns

boolean

Overrides

Feature.vConditionalFunc

Defined in

packages/isaacscript-common/src/classes/features/other/RunNextRun.ts:16


runNextRun

runNextRun(func): void

Supply a function to run on the next POST_GAME_STARTED callback.

Note that this function will not handle saving and quitting. If a player saving and quitting before the deferred function fires would cause a bug in your mod, then you should handle deferred functions manually using serializable data.

In order to use this function, you must upgrade your mod with ISCFeature.RUN_NEXT_ROOM.

Parameters

NameType
func() => void

Returns

void

Defined in

packages/isaacscript-common/src/classes/features/other/RunNextRun.ts:53