isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
19 lines (18 loc) • 816 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PostGridEntityCustomRemove = void 0;
const ISCFeature_1 = require("../../enums/ISCFeature");
const CustomCallback_1 = require("../private/CustomCallback");
class PostGridEntityCustomRemove extends CustomCallback_1.CustomCallback {
constructor() {
super();
this.featuresUsed = [ISCFeature_1.ISCFeature.GRID_ENTITY_UPDATE_DETECTION];
}
shouldFire = (fireArgs, optionalArgs) => {
const [_gridIndex, gridEntityTypeCustom] = fireArgs;
const [callbackGridEntityTypeCustom] = optionalArgs;
return (callbackGridEntityTypeCustom === undefined
|| callbackGridEntityTypeCustom === gridEntityTypeCustom);
};
}
exports.PostGridEntityCustomRemove = PostGridEntityCustomRemove;