"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DebugDisplayEffect = void 0;
const isaac_typescript_definitions_1 = require("isaac-typescript-definitions");
const render_1 = require("../../../../functions/render");
const Feature_1 = require("../../../private/Feature");
const utils_1 = require("./utils");
class DebugDisplayEffect extends Feature_1.Feature {
    textCallback = utils_1.defaultEntityDisplayCallback;
    constructor() {
        super();
        this.callbacksUsed = [
            // 56
            [isaac_typescript_definitions_1.ModCallback.POST_EFFECT_RENDER, this.postEffectRender],
        ];
    }
    // ModCallback.POST_EFFECT_RENDER (56)
    postEffectRender = (effect) => {
        const text = this.textCallback(effect);
        (0, render_1.renderTextOnEntity)(effect, text);
    };
}
exports.DebugDisplayEffect = DebugDisplayEffect;
