isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
18 lines • 675 B
TypeScript
import { Feature } from "../../private/Feature";
export declare class RerunDetection extends Feature {
private readonly postGameStartedReordered;
private readonly postNewLevelReordered;
/**
* Helper function to detect if the current run was starting using the "Rerun" option from the
* main menu.
*
* Under the hood, this assumes that any run that is past the first floor and continues in the
* starting room of the run is a rerun.
*
* In order to use this function, you must upgrade your mod with `ISCFeature.RERUN_DETECTION`.
*
* @public
*/
onRerun(): boolean;
}
//# sourceMappingURL=RerunDetection.d.ts.map