isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
23 lines (18 loc) • 670 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 PostEntityKillFilter extends CustomCallback<ModCallbackCustom.POST_ENTITY_KILL_FILTER> {
constructor() {
super();
this.callbacksUsed = [
// 68
[ModCallback.POST_ENTITY_KILL, this.postEntityKill],
];
}
protected override shouldFire = shouldFireEntity;
// ModCallback.POST_ENTITY_KILL (68)
private readonly postEntityKill = (entity: Entity) => {
this.fire(entity);
};
}