UNPKG

isaacscript-common

Version:

Helper functions and features for IsaacScript mods.

22 lines (21 loc) 823 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostKnifeRenderFilter = void 0; const isaac_typescript_definitions_1 = require("isaac-typescript-definitions"); const shouldFire_1 = require("../../shouldFire"); const CustomCallback_1 = require("../private/CustomCallback"); class PostKnifeRenderFilter extends CustomCallback_1.CustomCallback { constructor() { super(); this.callbacksUsed = [ // 52 [isaac_typescript_definitions_1.ModCallback.POST_KNIFE_RENDER, this.postKnifeRender], ]; } shouldFire = shouldFire_1.shouldFireKnife; // ModCallback.POST_KNIFE_RENDER (52) postKnifeRender = (knife, renderOffset) => { this.fire(knife, renderOffset); }; } exports.PostKnifeRenderFilter = PostKnifeRenderFilter;