isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
23 lines (18 loc) • 682 B
text/typescript
import { ModCallback } from "isaac-typescript-definitions";
import type { ModCallbackCustom } from "../../enums/ModCallbackCustom";
import { shouldFireEntity } from "../../shouldFire";
import { CustomCallback } from "../private/CustomCallback";
export class PostEntityRemoveFilter extends CustomCallback<ModCallbackCustom.POST_ENTITY_REMOVE_FILTER> {
constructor() {
super();
this.callbacksUsed = [
// 67
[ModCallback.POST_ENTITY_REMOVE, this.postEntityRemove],
];
}
protected override shouldFire = shouldFireEntity;
// ModCallback.POST_ENTITY_REMOVE (67)
private readonly postEntityRemove = (entity: Entity) => {
this.fire(entity);
};
}