"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PostDoorRender = void 0;
const isaac_typescript_definitions_1 = require("isaac-typescript-definitions");
const doors_1 = require("../../functions/doors");
const shouldFire_1 = require("../../shouldFire");
const CustomCallback_1 = require("../private/CustomCallback");
class PostDoorRender extends CustomCallback_1.CustomCallback {
    constructor() {
        super();
        this.callbacksUsed = [
            // 2
            [isaac_typescript_definitions_1.ModCallback.POST_RENDER, this.postRender],
        ];
    }
    shouldFire = shouldFire_1.shouldFireDoor;
    // ModCallback.POST_RENDER (2)
    postRender = () => {
        for (const door of (0, doors_1.getDoors)()) {
            this.fire(door);
        }
    };
}
exports.PostDoorRender = PostDoorRender;
