UNPKG

isaacscript-common

Version:

Helper functions and features for IsaacScript mods.

20 lines (19 loc) 868 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostGridEntityRemove = void 0; const ISCFeature_1 = require("../../enums/ISCFeature"); const CustomCallback_1 = require("../private/CustomCallback"); class PostGridEntityRemove extends CustomCallback_1.CustomCallback { constructor() { super(); this.featuresUsed = [ISCFeature_1.ISCFeature.GRID_ENTITY_UPDATE_DETECTION]; } shouldFire = (fireArgs, optionalArgs) => { const [_gridIndex, gridEntityType, variant] = fireArgs; const [callbackGridEntityType, callbackVariant] = optionalArgs; return ((callbackGridEntityType === undefined || callbackGridEntityType === gridEntityType) && (callbackVariant === undefined || callbackVariant === variant)); }; } exports.PostGridEntityRemove = PostGridEntityRemove;