UNPKG

isaacscript-common

Version:

Helper functions and features for IsaacScript mods.

25 lines (24 loc) 899 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostRockRender = void 0; const isaac_typescript_definitions_1 = require("isaac-typescript-definitions"); const gridEntitiesSpecific_1 = require("../../functions/gridEntitiesSpecific"); const shouldFire_1 = require("../../shouldFire"); const CustomCallback_1 = require("../private/CustomCallback"); class PostRockRender extends CustomCallback_1.CustomCallback { constructor() { super(); this.callbacksUsed = [ // 2 [isaac_typescript_definitions_1.ModCallback.POST_RENDER, this.postRender], ]; } shouldFire = shouldFire_1.shouldFireRock; // ModCallback.POST_RENDER (2) postRender = () => { for (const rock of (0, gridEntitiesSpecific_1.getRocks)()) { this.fire(rock); } }; } exports.PostRockRender = PostRockRender;