isaacscript-common 18.2.1 → 18.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +179 -119
- package/dist/isaacscript-common.lua +464 -416
- package/dist/src/callbackClasses.d.ts +2 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +10 -0
- package/dist/src/callbacks.d.ts +101 -99
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +2 -0
- package/dist/src/classes/ModFeature.d.ts +2 -2
- package/dist/src/classes/ModFeature.d.ts.map +1 -1
- package/dist/src/classes/ModFeature.lua +18 -17
- package/dist/src/classes/ModUpgradedBase.d.ts.map +1 -1
- package/dist/src/classes/ModUpgradedBase.lua +10 -10
- package/dist/src/classes/callbacks/EntityTakeDmgFilter.lua +1 -1
- package/dist/src/classes/callbacks/EntityTakeDmgPlayer.d.ts.map +1 -1
- package/dist/src/classes/callbacks/EntityTakeDmgPlayer.lua +1 -1
- package/dist/src/classes/callbacks/InputActionFilter.d.ts +11 -0
- package/dist/src/classes/callbacks/InputActionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/InputActionFilter.lua +23 -0
- package/dist/src/classes/callbacks/InputActionPlayer.d.ts +11 -0
- package/dist/src/classes/callbacks/InputActionPlayer.d.ts.map +1 -0
- package/dist/src/classes/callbacks/InputActionPlayer.lua +33 -0
- package/dist/src/classes/callbacks/PostAmbushFinished.lua +1 -1
- package/dist/src/classes/callbacks/PostAmbushStarted.lua +1 -1
- package/dist/src/classes/callbacks/PostBombExploded.lua +1 -1
- package/dist/src/classes/callbacks/PostBombInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostBoneSwing.lua +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +1 -1
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +1 -1
- package/dist/src/classes/callbacks/PostCursedTeleport.d.ts +2 -2
- package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCursedTeleport.lua +19 -21
- package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostDiceRoomActivated.lua +1 -1
- package/dist/src/classes/callbacks/PostDoorRender.lua +1 -1
- package/dist/src/classes/callbacks/PostDoorUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostEffectInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostEffectStateChanged.lua +1 -1
- package/dist/src/classes/callbacks/PostFamiliarInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostFamiliarStateChanged.lua +1 -1
- package/dist/src/classes/callbacks/PostGreedModeWave.lua +1 -1
- package/dist/src/classes/callbacks/PostHolyMantleRemoved.lua +1 -1
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostItemDischarge.lua +2 -2
- package/dist/src/classes/callbacks/PostKnifeInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostLaserInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCDeathFilter.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCInitFilter.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCRenderFilter.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCStateChanged.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCUpdateFilter.lua +1 -1
- package/dist/src/classes/callbacks/PostNewRoomEarly.lua +1 -1
- package/dist/src/classes/callbacks/PostPickupCollect.lua +1 -1
- package/dist/src/classes/callbacks/PostPickupInitFirst.lua +1 -1
- package/dist/src/classes/callbacks/PostPickupInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostPickupStateChanged.lua +1 -1
- package/dist/src/classes/callbacks/PostPitRender.lua +1 -1
- package/dist/src/classes/callbacks/PostPitUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeHealth.lua +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeStat.lua +1 -1
- package/dist/src/classes/callbacks/PostPlayerChangeType.lua +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.lua +19 -21
- package/dist/src/classes/callbacks/PostPlayerInitFirst.lua +1 -1
- package/dist/src/classes/callbacks/PostPlayerInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostPoopRender.lua +1 -1
- package/dist/src/classes/callbacks/PostPoopUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostPressurePlateRender.lua +1 -1
- package/dist/src/classes/callbacks/PostPressurePlateUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostProjectileInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostPurchase.lua +1 -1
- package/dist/src/classes/callbacks/PostRockRender.lua +1 -1
- package/dist/src/classes/callbacks/PostRockUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostRoomClearChanged.lua +2 -2
- package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSacrifice.lua +4 -8
- package/dist/src/classes/callbacks/PostSlotCollision.lua +1 -1
- package/dist/src/classes/callbacks/PostSlotDestroyed.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSlotDestroyed.lua +2 -2
- package/dist/src/classes/callbacks/PostSpikesRender.lua +1 -1
- package/dist/src/classes/callbacks/PostSpikesUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostTNTRender.lua +1 -1
- package/dist/src/classes/callbacks/PostTNTUpdate.lua +1 -1
- package/dist/src/classes/callbacks/PostTearInitLate.lua +1 -1
- package/dist/src/classes/callbacks/PostTearInitVeryLate.lua +1 -1
- package/dist/src/classes/callbacks/PostTransformation.lua +1 -1
- package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTrinketBreak.lua +5 -11
- package/dist/src/classes/callbacks/PreBerserkDeath.lua +1 -1
- package/dist/src/classes/callbacks/PreGetPedestal.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PreGetPedestal.lua +1 -1
- package/dist/src/classes/callbacks/PreNPCCollisionFilter.lua +1 -1
- package/dist/src/classes/callbacks/PreNPCUpdateFilter.lua +1 -1
- package/dist/src/classes/callbacks/PreNewLevel.lua +1 -1
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +2 -2
- package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts +2 -2
- package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomRevive.lua +5 -5
- package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/EsauJrDetection.lua +1 -1
- package/dist/src/classes/features/callbackLogic/FlipDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/FlipDetection.lua +1 -1
- package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.lua +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.lua +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityRenderDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityRenderDetection.lua +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.lua +2 -2
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts +1 -1
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/ItemPickupDetection.lua +4 -3
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts +8 -3
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.lua +16 -21
- package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/PlayerReorderedCallbacks.lua +2 -2
- package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotRenderDetection.lua +1 -1
- package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/SlotUpdateDetection.lua +2 -2
- package/dist/src/classes/features/other/CharacterHealthConversion.d.ts.map +1 -1
- package/dist/src/classes/features/other/CharacterHealthConversion.lua +2 -2
- package/dist/src/classes/features/other/CharacterStats.lua +1 -1
- package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
- package/dist/src/classes/features/other/CollectibleItemPoolType.lua +1 -1
- package/dist/src/classes/features/other/CustomHotkeys.lua +1 -1
- package/dist/src/classes/features/other/CustomItemPools.lua +1 -1
- package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomPickups.lua +1 -1
- package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomStages.lua +2 -2
- package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomTrapdoors.lua +2 -2
- package/dist/src/classes/features/other/DisableAllSound.lua +1 -1
- package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
- package/dist/src/classes/features/other/DisableInputs.lua +1 -1
- package/dist/src/classes/features/other/ExtraConsoleCommands.d.ts +1 -1
- package/dist/src/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
- package/dist/src/classes/features/other/ExtraConsoleCommands.lua +17 -16
- package/dist/src/classes/features/other/FadeInRemover.lua +1 -1
- package/dist/src/classes/features/other/FastReset.lua +1 -1
- package/dist/src/classes/features/other/ModdedElementDetection.lua +1 -1
- package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
- package/dist/src/classes/features/other/NoSirenSteal.lua +1 -1
- package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/src/classes/features/other/Pause.lua +1 -1
- package/dist/src/classes/features/other/PersistentEntities.lua +2 -2
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PickupIndexCreation.lua +1 -1
- package/dist/src/classes/features/other/PlayerInventory.lua +1 -1
- package/dist/src/classes/features/other/PonyDetection.lua +1 -1
- package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
- package/dist/src/classes/features/other/PressInput.lua +1 -1
- package/dist/src/classes/features/other/PreventChildEntities.lua +1 -1
- package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventCollectibleRotation.lua +1 -1
- package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +2 -2
- package/dist/src/classes/features/other/RoomClearFrame.lua +1 -1
- package/dist/src/classes/features/other/RoomHistory.lua +1 -1
- package/dist/src/classes/features/other/RunInNFrames.lua +1 -1
- package/dist/src/classes/features/other/RunNextRoom.lua +1 -1
- package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
- package/dist/src/classes/features/other/SaveDataManager.lua +2 -2
- package/dist/src/classes/features/other/StageHistory.d.ts.map +1 -1
- package/dist/src/classes/features/other/StageHistory.lua +1 -1
- package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayBomb.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayDoor.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayEffect.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayKnife.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayLaser.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayNPC.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPickup.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPit.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPlayer.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPoop.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayProjectile.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayRock.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplaySlot.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplaySpikes.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayTNT.lua +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayTear.lua +1 -1
- package/dist/src/classes/private/CustomCallback.d.ts +2 -2
- package/dist/src/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/src/classes/private/CustomCallback.lua +7 -10
- package/dist/src/enums/ModCallbackCustom.d.ts +141 -99
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +103 -99
- package/dist/src/functions/array.d.ts +5 -1
- package/dist/src/functions/array.d.ts.map +1 -1
- package/dist/src/functions/array.lua +17 -8
- package/dist/src/functions/decorators.d.ts.map +1 -1
- package/dist/src/functions/decorators.lua +12 -22
- package/dist/src/functions/logMisc.d.ts +1 -0
- package/dist/src/functions/logMisc.d.ts.map +1 -1
- package/dist/src/functions/logMisc.lua +2 -1
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +13 -1
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/types/ModUpgraded.d.ts +1 -1
- package/dist/src/types/ModUpgraded.d.ts.map +1 -1
- package/dist/src/types/private/CallbackTuple.d.ts +17 -8
- package/dist/src/types/private/CallbackTuple.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbackClasses.ts +2 -0
- package/src/callbacks.ts +2 -0
- package/src/classes/ModFeature.ts +43 -21
- package/src/classes/ModUpgradedBase.ts +18 -10
- package/src/classes/callbacks/EntityTakeDmgFilter.ts +1 -1
- package/src/classes/callbacks/EntityTakeDmgPlayer.ts +2 -1
- package/src/classes/callbacks/InputActionFilter.ts +46 -0
- package/src/classes/callbacks/InputActionPlayer.ts +67 -0
- package/src/classes/callbacks/PostAmbushFinished.ts +1 -1
- package/src/classes/callbacks/PostAmbushStarted.ts +1 -1
- package/src/classes/callbacks/PostBombExploded.ts +1 -1
- package/src/classes/callbacks/PostBombInitLate.ts +1 -1
- package/src/classes/callbacks/PostBoneSwing.ts +1 -1
- package/src/classes/callbacks/PostCollectibleEmpty.ts +2 -1
- package/src/classes/callbacks/PostCollectibleInitFirst.ts +2 -1
- package/src/classes/callbacks/PostCursedTeleport.ts +52 -60
- package/src/classes/callbacks/PostDiceRoomActivated.ts +2 -1
- package/src/classes/callbacks/PostDoorRender.ts +1 -1
- package/src/classes/callbacks/PostDoorUpdate.ts +1 -1
- package/src/classes/callbacks/PostEffectInitLate.ts +1 -1
- package/src/classes/callbacks/PostEffectStateChanged.ts +1 -1
- package/src/classes/callbacks/PostFamiliarInitLate.ts +1 -1
- package/src/classes/callbacks/PostFamiliarStateChanged.ts +1 -1
- package/src/classes/callbacks/PostGreedModeWave.ts +1 -1
- package/src/classes/callbacks/PostHolyMantleRemoved.ts +1 -1
- package/src/classes/callbacks/PostItemDischarge.ts +3 -2
- package/src/classes/callbacks/PostKnifeInitLate.ts +1 -1
- package/src/classes/callbacks/PostLaserInitLate.ts +1 -1
- package/src/classes/callbacks/PostNPCDeathFilter.ts +1 -1
- package/src/classes/callbacks/PostNPCInitFilter.ts +1 -1
- package/src/classes/callbacks/PostNPCInitLate.ts +1 -1
- package/src/classes/callbacks/PostNPCRenderFilter.ts +1 -1
- package/src/classes/callbacks/PostNPCStateChanged.ts +1 -1
- package/src/classes/callbacks/PostNPCUpdateFilter.ts +1 -1
- package/src/classes/callbacks/PostNewRoomEarly.ts +2 -2
- package/src/classes/callbacks/PostPickupCollect.ts +1 -1
- package/src/classes/callbacks/PostPickupInitFirst.ts +1 -1
- package/src/classes/callbacks/PostPickupInitLate.ts +1 -1
- package/src/classes/callbacks/PostPickupStateChanged.ts +1 -1
- package/src/classes/callbacks/PostPitRender.ts +1 -1
- package/src/classes/callbacks/PostPitUpdate.ts +1 -1
- package/src/classes/callbacks/PostPlayerChangeHealth.ts +1 -1
- package/src/classes/callbacks/PostPlayerChangeStat.ts +1 -1
- package/src/classes/callbacks/PostPlayerChangeType.ts +1 -1
- package/src/classes/callbacks/PostPlayerFatalDamage.ts +39 -48
- package/src/classes/callbacks/PostPlayerInitFirst.ts +2 -2
- package/src/classes/callbacks/PostPlayerInitLate.ts +1 -1
- package/src/classes/callbacks/PostPoopRender.ts +1 -1
- package/src/classes/callbacks/PostPoopUpdate.ts +1 -1
- package/src/classes/callbacks/PostPressurePlateRender.ts +1 -1
- package/src/classes/callbacks/PostPressurePlateUpdate.ts +1 -1
- package/src/classes/callbacks/PostProjectileInitLate.ts +1 -1
- package/src/classes/callbacks/PostPurchase.ts +1 -1
- package/src/classes/callbacks/PostRockRender.ts +1 -1
- package/src/classes/callbacks/PostRockUpdate.ts +1 -1
- package/src/classes/callbacks/PostRoomClearChanged.ts +2 -2
- package/src/classes/callbacks/PostSacrifice.ts +5 -20
- package/src/classes/callbacks/PostSlotCollision.ts +1 -1
- package/src/classes/callbacks/PostSlotDestroyed.ts +3 -2
- package/src/classes/callbacks/PostSpikesRender.ts +1 -1
- package/src/classes/callbacks/PostSpikesUpdate.ts +1 -1
- package/src/classes/callbacks/PostTNTRender.ts +1 -1
- package/src/classes/callbacks/PostTNTUpdate.ts +1 -1
- package/src/classes/callbacks/PostTearInitLate.ts +1 -1
- package/src/classes/callbacks/PostTearInitVeryLate.ts +1 -1
- package/src/classes/callbacks/PostTransformation.ts +1 -1
- package/src/classes/callbacks/PostTrinketBreak.ts +4 -18
- package/src/classes/callbacks/PreBerserkDeath.ts +1 -1
- package/src/classes/callbacks/PreGetPedestal.ts +2 -1
- package/src/classes/callbacks/PreNPCCollisionFilter.ts +1 -1
- package/src/classes/callbacks/PreNPCUpdateFilter.ts +1 -1
- package/src/classes/callbacks/PreNewLevel.ts +1 -1
- package/src/classes/features/callbackLogic/CustomGridEntities.ts +5 -3
- package/src/classes/features/callbackLogic/CustomRevive.ts +19 -18
- package/src/classes/features/callbackLogic/EsauJrDetection.ts +6 -2
- package/src/classes/features/callbackLogic/FlipDetection.ts +2 -1
- package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +13 -5
- package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +2 -1
- package/src/classes/features/callbackLogic/GridEntityRenderDetection.ts +2 -1
- package/src/classes/features/callbackLogic/GridEntityUpdateDetection.ts +3 -2
- package/src/classes/features/callbackLogic/ItemPickupDetection.ts +8 -5
- package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +67 -71
- package/src/classes/features/callbackLogic/PlayerReorderedCallbacks.ts +10 -5
- package/src/classes/features/callbackLogic/SlotRenderDetection.ts +2 -1
- package/src/classes/features/callbackLogic/SlotUpdateDetection.ts +3 -2
- package/src/classes/features/other/CharacterHealthConversion.ts +3 -2
- package/src/classes/features/other/CharacterStats.ts +1 -1
- package/src/classes/features/other/CollectibleItemPoolType.ts +2 -1
- package/src/classes/features/other/CustomHotkeys.ts +1 -1
- package/src/classes/features/other/CustomItemPools.ts +1 -1
- package/src/classes/features/other/CustomPickups.ts +3 -2
- package/src/classes/features/other/CustomStages.ts +7 -6
- package/src/classes/features/other/CustomTrapdoors.ts +4 -6
- package/src/classes/features/other/DisableAllSound.ts +1 -1
- package/src/classes/features/other/DisableInputs.ts +6 -3
- package/src/classes/features/other/ExtraConsoleCommands.ts +32 -31
- package/src/classes/features/other/FadeInRemover.ts +1 -1
- package/src/classes/features/other/FastReset.ts +1 -1
- package/src/classes/features/other/ModdedElementDetection.ts +1 -1
- package/src/classes/features/other/NoSirenSteal.ts +2 -1
- package/src/classes/features/other/Pause.ts +3 -2
- package/src/classes/features/other/PersistentEntities.ts +2 -2
- package/src/classes/features/other/PickupIndexCreation.ts +3 -2
- package/src/classes/features/other/PlayerInventory.ts +2 -2
- package/src/classes/features/other/PonyDetection.ts +1 -1
- package/src/classes/features/other/PressInput.ts +2 -1
- package/src/classes/features/other/PreventChildEntities.ts +1 -1
- package/src/classes/features/other/PreventCollectibleRotation.ts +4 -2
- package/src/classes/features/other/PreventGridEntityRespawn.ts +3 -2
- package/src/classes/features/other/RoomClearFrame.ts +1 -1
- package/src/classes/features/other/RoomHistory.ts +1 -1
- package/src/classes/features/other/RunInNFrames.ts +2 -2
- package/src/classes/features/other/RunNextRoom.ts +1 -1
- package/src/classes/features/other/SaveDataManager.ts +6 -5
- package/src/classes/features/other/StageHistory.ts +1 -4
- package/src/classes/features/other/TaintedLazarusPlayers.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayBomb.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayDoor.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayEffect.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayKnife.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayLaser.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayNPC.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPickup.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPit.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPlayer.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPoop.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPressurePlate.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayProjectile.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayRock.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplaySlot.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplaySpikes.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayTNT.ts +1 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayTear.ts +1 -1
- package/src/classes/private/CustomCallback.ts +19 -15
- package/src/enums/ModCallbackCustom.ts +44 -0
- package/src/functions/array.ts +14 -5
- package/src/functions/decorators.ts +14 -20
- package/src/functions/logMisc.ts +4 -1
- package/src/interfaces/private/AddCallbackParametersCustom.ts +24 -0
- package/src/types/ModUpgraded.ts +1 -1
- package/src/types/private/CallbackTuple.ts +17 -8
- package/dist/src/types/private/AllButFirst.d.ts +0 -5
- package/dist/src/types/private/AllButFirst.d.ts.map +0 -1
- package/dist/src/types/private/AllButFirst.lua +0 -2
- package/src/types/private/AllButFirst.ts +0 -6
|
@@ -51,6 +51,48 @@ export declare enum ModCallbackCustom {
|
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
53
|
ENTITY_TAKE_DMG_PLAYER = 1,
|
|
54
|
+
/**
|
|
55
|
+
* The exact same thing as the vanilla `INPUT_ACTION` callback, except this callback allows you to
|
|
56
|
+
* specify extra arguments for additional filtration.
|
|
57
|
+
*
|
|
58
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
59
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
60
|
+
* matches the `InputHook` provided.
|
|
61
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
62
|
+
* matches the `ButtonAction` provided.
|
|
63
|
+
*
|
|
64
|
+
* ```ts
|
|
65
|
+
* function inputActionFilter(
|
|
66
|
+
* entity: Entity | undefined,
|
|
67
|
+
* inputHook: InputHook,
|
|
68
|
+
* buttonAction: ButtonAction,
|
|
69
|
+
* ): boolean | undefined {}
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
INPUT_ACTION_FILTER = 2,
|
|
73
|
+
/**
|
|
74
|
+
* The exact same thing as the vanilla `INPUT_ACTION` callback, except this callback automatically
|
|
75
|
+
* filters for `EntityType.ENTITY_PLAYER` and casts the `Entity` object to a `EntityPlayer`. It
|
|
76
|
+
* also allows you to specify extra arguments for additional filtration.
|
|
77
|
+
*
|
|
78
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
79
|
+
* matches the `PlayerVariant` provided.
|
|
80
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
81
|
+
* matches the `PlayerType` provided.
|
|
82
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
83
|
+
* matches the `InputHook` provided.
|
|
84
|
+
* - You can provide an optional sixth argument that will make the callback only fire if it
|
|
85
|
+
* matches the `ButtonAction` provided.
|
|
86
|
+
*
|
|
87
|
+
* ```ts
|
|
88
|
+
* function inputActionPlayer(
|
|
89
|
+
* player: EntityPlayer,
|
|
90
|
+
* inputHook: InputHook,
|
|
91
|
+
* buttonAction: ButtonAction,
|
|
92
|
+
* ): boolean | undefined {}
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
INPUT_ACTION_PLAYER = 3,
|
|
54
96
|
/**
|
|
55
97
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
|
|
56
98
|
* Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
|
|
@@ -63,7 +105,7 @@ export declare enum ModCallbackCustom {
|
|
|
63
105
|
* function postAmbushFinished(ambushType: AmbushType): void {}
|
|
64
106
|
* ```
|
|
65
107
|
*/
|
|
66
|
-
POST_AMBUSH_FINISHED =
|
|
108
|
+
POST_AMBUSH_FINISHED = 4,
|
|
67
109
|
/**
|
|
68
110
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
|
|
69
111
|
* Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
|
|
@@ -76,7 +118,7 @@ export declare enum ModCallbackCustom {
|
|
|
76
118
|
* function postAmbushStarted(ambushType: AmbushType): void {}
|
|
77
119
|
* ```
|
|
78
120
|
*/
|
|
79
|
-
POST_AMBUSH_STARTED =
|
|
121
|
+
POST_AMBUSH_STARTED = 5,
|
|
80
122
|
/**
|
|
81
123
|
* Fires on the `POST_BOMB_UPDATE` callback that it explodes.
|
|
82
124
|
*
|
|
@@ -90,7 +132,7 @@ export declare enum ModCallbackCustom {
|
|
|
90
132
|
* function postBombDetonated(bomb: EntityBomb): void {}
|
|
91
133
|
* ```
|
|
92
134
|
*/
|
|
93
|
-
POST_BOMB_EXPLODED =
|
|
135
|
+
POST_BOMB_EXPLODED = 6,
|
|
94
136
|
/**
|
|
95
137
|
* Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
|
|
96
138
|
*
|
|
@@ -107,7 +149,7 @@ export declare enum ModCallbackCustom {
|
|
|
107
149
|
* function postBombInitLate(bomb: EntityBomb): void {}
|
|
108
150
|
* ```
|
|
109
151
|
*/
|
|
110
|
-
POST_BOMB_INIT_LATE =
|
|
152
|
+
POST_BOMB_INIT_LATE = 7,
|
|
111
153
|
/**
|
|
112
154
|
* Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
|
|
113
155
|
*
|
|
@@ -115,7 +157,7 @@ export declare enum ModCallbackCustom {
|
|
|
115
157
|
* function postBoneSwing(boneClub: EntityKnife): void {}
|
|
116
158
|
* ```
|
|
117
159
|
*/
|
|
118
|
-
POST_BONE_SWING =
|
|
160
|
+
POST_BONE_SWING = 8,
|
|
119
161
|
/**
|
|
120
162
|
* Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
|
|
121
163
|
* to `CollectibleType.NULL` (i.e. an "empty" pedestal).
|
|
@@ -131,7 +173,7 @@ export declare enum ModCallbackCustom {
|
|
|
131
173
|
* ): void {}
|
|
132
174
|
* ```
|
|
133
175
|
*/
|
|
134
|
-
POST_COLLECTIBLE_EMPTY =
|
|
176
|
+
POST_COLLECTIBLE_EMPTY = 9,
|
|
135
177
|
/**
|
|
136
178
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
137
179
|
* respective collectible on the run. For more details on how this is calculated, see the
|
|
@@ -149,7 +191,7 @@ export declare enum ModCallbackCustom {
|
|
|
149
191
|
* function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
|
|
150
192
|
* ```
|
|
151
193
|
*/
|
|
152
|
-
POST_COLLECTIBLE_INIT_FIRST =
|
|
194
|
+
POST_COLLECTIBLE_INIT_FIRST = 10,
|
|
153
195
|
/**
|
|
154
196
|
* Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
|
|
155
197
|
* begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
|
|
@@ -165,7 +207,7 @@ export declare enum ModCallbackCustom {
|
|
|
165
207
|
* function postCursedTeleport(player: EntityPlayer): void {}
|
|
166
208
|
* ```
|
|
167
209
|
*/
|
|
168
|
-
POST_CURSED_TELEPORT =
|
|
210
|
+
POST_CURSED_TELEPORT = 11,
|
|
169
211
|
/**
|
|
170
212
|
* Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
|
|
171
213
|
* has teleported to the previous room, and is ready to play the animation for the modded revival
|
|
@@ -183,7 +225,7 @@ export declare enum ModCallbackCustom {
|
|
|
183
225
|
* function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
|
|
184
226
|
* ```
|
|
185
227
|
*/
|
|
186
|
-
POST_CUSTOM_REVIVE =
|
|
228
|
+
POST_CUSTOM_REVIVE = 12,
|
|
187
229
|
/**
|
|
188
230
|
* Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
|
|
189
231
|
* Room floor.
|
|
@@ -199,7 +241,7 @@ export declare enum ModCallbackCustom {
|
|
|
199
241
|
* ): void {}
|
|
200
242
|
* ```
|
|
201
243
|
*/
|
|
202
|
-
POST_DICE_ROOM_ACTIVATED =
|
|
244
|
+
POST_DICE_ROOM_ACTIVATED = 13,
|
|
203
245
|
/**
|
|
204
246
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
205
247
|
*
|
|
@@ -211,7 +253,7 @@ export declare enum ModCallbackCustom {
|
|
|
211
253
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
212
254
|
* ```
|
|
213
255
|
*/
|
|
214
|
-
POST_DOOR_RENDER =
|
|
256
|
+
POST_DOOR_RENDER = 14,
|
|
215
257
|
/**
|
|
216
258
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
217
259
|
*
|
|
@@ -223,7 +265,7 @@ export declare enum ModCallbackCustom {
|
|
|
223
265
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
224
266
|
* ```
|
|
225
267
|
*/
|
|
226
|
-
POST_DOOR_UPDATE =
|
|
268
|
+
POST_DOOR_UPDATE = 15,
|
|
227
269
|
/**
|
|
228
270
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
229
271
|
*
|
|
@@ -240,7 +282,7 @@ export declare enum ModCallbackCustom {
|
|
|
240
282
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
241
283
|
* ```
|
|
242
284
|
*/
|
|
243
|
-
POST_EFFECT_INIT_LATE =
|
|
285
|
+
POST_EFFECT_INIT_LATE = 16,
|
|
244
286
|
/**
|
|
245
287
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
246
288
|
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
@@ -259,7 +301,7 @@ export declare enum ModCallbackCustom {
|
|
|
259
301
|
* ): void {}
|
|
260
302
|
* ```
|
|
261
303
|
*/
|
|
262
|
-
POST_EFFECT_STATE_CHANGED =
|
|
304
|
+
POST_EFFECT_STATE_CHANGED = 17,
|
|
263
305
|
/**
|
|
264
306
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
265
307
|
* updated to the new character until a game frame has passed.)
|
|
@@ -268,7 +310,7 @@ export declare enum ModCallbackCustom {
|
|
|
268
310
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
269
311
|
* ```
|
|
270
312
|
*/
|
|
271
|
-
POST_ESAU_JR =
|
|
313
|
+
POST_ESAU_JR = 18,
|
|
272
314
|
/**
|
|
273
315
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
274
316
|
*
|
|
@@ -285,7 +327,7 @@ export declare enum ModCallbackCustom {
|
|
|
285
327
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
286
328
|
* ```
|
|
287
329
|
*/
|
|
288
|
-
POST_FAMILIAR_INIT_LATE =
|
|
330
|
+
POST_FAMILIAR_INIT_LATE = 19,
|
|
289
331
|
/**
|
|
290
332
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
291
333
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -305,7 +347,7 @@ export declare enum ModCallbackCustom {
|
|
|
305
347
|
* ): void {}
|
|
306
348
|
* ```
|
|
307
349
|
*/
|
|
308
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
350
|
+
POST_FAMILIAR_STATE_CHANGED = 20,
|
|
309
351
|
/**
|
|
310
352
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
311
353
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -317,7 +359,7 @@ export declare enum ModCallbackCustom {
|
|
|
317
359
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
318
360
|
* ```
|
|
319
361
|
*/
|
|
320
|
-
POST_FIRST_ESAU_JR =
|
|
362
|
+
POST_FIRST_ESAU_JR = 21,
|
|
321
363
|
/**
|
|
322
364
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
323
365
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -330,7 +372,7 @@ export declare enum ModCallbackCustom {
|
|
|
330
372
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
331
373
|
* ```
|
|
332
374
|
*/
|
|
333
|
-
POST_FIRST_FLIP =
|
|
375
|
+
POST_FIRST_FLIP = 22,
|
|
334
376
|
/**
|
|
335
377
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
336
378
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -343,7 +385,7 @@ export declare enum ModCallbackCustom {
|
|
|
343
385
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
344
386
|
* ```
|
|
345
387
|
*/
|
|
346
|
-
POST_FLIP =
|
|
388
|
+
POST_FLIP = 23,
|
|
347
389
|
/**
|
|
348
390
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
349
391
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -354,7 +396,7 @@ export declare enum ModCallbackCustom {
|
|
|
354
396
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
355
397
|
* ```
|
|
356
398
|
*/
|
|
357
|
-
POST_GAME_STARTED_REORDERED =
|
|
399
|
+
POST_GAME_STARTED_REORDERED = 24,
|
|
358
400
|
/**
|
|
359
401
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
360
402
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -365,7 +407,7 @@ export declare enum ModCallbackCustom {
|
|
|
365
407
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
366
408
|
* ```
|
|
367
409
|
*/
|
|
368
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
410
|
+
POST_GAME_STARTED_REORDERED_LAST = 25,
|
|
369
411
|
/**
|
|
370
412
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
371
413
|
*
|
|
@@ -373,7 +415,7 @@ export declare enum ModCallbackCustom {
|
|
|
373
415
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
374
416
|
* ```
|
|
375
417
|
*/
|
|
376
|
-
POST_GREED_MODE_WAVE =
|
|
418
|
+
POST_GREED_MODE_WAVE = 26,
|
|
377
419
|
/**
|
|
378
420
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
379
421
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -392,7 +434,7 @@ export declare enum ModCallbackCustom {
|
|
|
392
434
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
393
435
|
* ```
|
|
394
436
|
*/
|
|
395
|
-
POST_GRID_ENTITY_BROKEN =
|
|
437
|
+
POST_GRID_ENTITY_BROKEN = 27,
|
|
396
438
|
/**
|
|
397
439
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
398
440
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -420,7 +462,7 @@ export declare enum ModCallbackCustom {
|
|
|
420
462
|
* ): void {}
|
|
421
463
|
* ```
|
|
422
464
|
*/
|
|
423
|
-
POST_GRID_ENTITY_COLLISION =
|
|
465
|
+
POST_GRID_ENTITY_COLLISION = 28,
|
|
424
466
|
/**
|
|
425
467
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
426
468
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -437,7 +479,7 @@ export declare enum ModCallbackCustom {
|
|
|
437
479
|
* ): void {}
|
|
438
480
|
* ```
|
|
439
481
|
*/
|
|
440
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
482
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 29,
|
|
441
483
|
/**
|
|
442
484
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
443
485
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -461,7 +503,7 @@ export declare enum ModCallbackCustom {
|
|
|
461
503
|
* ): void {}
|
|
462
504
|
* ```
|
|
463
505
|
*/
|
|
464
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
506
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 30,
|
|
465
507
|
/**
|
|
466
508
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
467
509
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -478,7 +520,7 @@ export declare enum ModCallbackCustom {
|
|
|
478
520
|
* ): void {}
|
|
479
521
|
* ```
|
|
480
522
|
*/
|
|
481
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
523
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 31,
|
|
482
524
|
/**
|
|
483
525
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
484
526
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -495,7 +537,7 @@ export declare enum ModCallbackCustom {
|
|
|
495
537
|
* ): void {}
|
|
496
538
|
* ```
|
|
497
539
|
*/
|
|
498
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
540
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 32,
|
|
499
541
|
/**
|
|
500
542
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
501
543
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -512,7 +554,7 @@ export declare enum ModCallbackCustom {
|
|
|
512
554
|
* ): void {}
|
|
513
555
|
* ```
|
|
514
556
|
*/
|
|
515
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
557
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 33,
|
|
516
558
|
/**
|
|
517
559
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
518
560
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -531,7 +573,7 @@ export declare enum ModCallbackCustom {
|
|
|
531
573
|
* ): void {}
|
|
532
574
|
* ```
|
|
533
575
|
*/
|
|
534
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
576
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 34,
|
|
535
577
|
/**
|
|
536
578
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
537
579
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -548,7 +590,7 @@ export declare enum ModCallbackCustom {
|
|
|
548
590
|
* ): void {}
|
|
549
591
|
* ```
|
|
550
592
|
*/
|
|
551
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
593
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 35,
|
|
552
594
|
/**
|
|
553
595
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
554
596
|
*
|
|
@@ -570,7 +612,7 @@ export declare enum ModCallbackCustom {
|
|
|
570
612
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
571
613
|
* ```
|
|
572
614
|
*/
|
|
573
|
-
POST_GRID_ENTITY_INIT =
|
|
615
|
+
POST_GRID_ENTITY_INIT = 36,
|
|
574
616
|
/**
|
|
575
617
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
576
618
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -595,7 +637,7 @@ export declare enum ModCallbackCustom {
|
|
|
595
637
|
* ): void {}
|
|
596
638
|
* ```
|
|
597
639
|
*/
|
|
598
|
-
POST_GRID_ENTITY_REMOVE =
|
|
640
|
+
POST_GRID_ENTITY_REMOVE = 37,
|
|
599
641
|
/**
|
|
600
642
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
601
643
|
*
|
|
@@ -612,7 +654,7 @@ export declare enum ModCallbackCustom {
|
|
|
612
654
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
613
655
|
* ```
|
|
614
656
|
*/
|
|
615
|
-
POST_GRID_ENTITY_RENDER =
|
|
657
|
+
POST_GRID_ENTITY_RENDER = 38,
|
|
616
658
|
/**
|
|
617
659
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
618
660
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -634,7 +676,7 @@ export declare enum ModCallbackCustom {
|
|
|
634
676
|
* ): void {}
|
|
635
677
|
* ```
|
|
636
678
|
*/
|
|
637
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
679
|
+
POST_GRID_ENTITY_STATE_CHANGED = 39,
|
|
638
680
|
/**
|
|
639
681
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
640
682
|
*
|
|
@@ -651,7 +693,7 @@ export declare enum ModCallbackCustom {
|
|
|
651
693
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
652
694
|
* ```
|
|
653
695
|
*/
|
|
654
|
-
POST_GRID_ENTITY_UPDATE =
|
|
696
|
+
POST_GRID_ENTITY_UPDATE = 40,
|
|
655
697
|
/**
|
|
656
698
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
657
699
|
* temporary collectible effect.
|
|
@@ -674,7 +716,7 @@ export declare enum ModCallbackCustom {
|
|
|
674
716
|
* ): void {}
|
|
675
717
|
* ```
|
|
676
718
|
*/
|
|
677
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
719
|
+
POST_HOLY_MANTLE_REMOVED = 41,
|
|
678
720
|
/**
|
|
679
721
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
680
722
|
* active collectible item, implying that the item was just used.
|
|
@@ -697,7 +739,7 @@ export declare enum ModCallbackCustom {
|
|
|
697
739
|
* ): void {}
|
|
698
740
|
* ```
|
|
699
741
|
*/
|
|
700
|
-
POST_ITEM_DISCHARGE =
|
|
742
|
+
POST_ITEM_DISCHARGE = 42,
|
|
701
743
|
/**
|
|
702
744
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
703
745
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -718,7 +760,7 @@ export declare enum ModCallbackCustom {
|
|
|
718
760
|
* ): void {}
|
|
719
761
|
* ```
|
|
720
762
|
*/
|
|
721
|
-
POST_ITEM_PICKUP =
|
|
763
|
+
POST_ITEM_PICKUP = 43,
|
|
722
764
|
/**
|
|
723
765
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
724
766
|
*
|
|
@@ -735,7 +777,7 @@ export declare enum ModCallbackCustom {
|
|
|
735
777
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
736
778
|
* ```
|
|
737
779
|
*/
|
|
738
|
-
POST_KNIFE_INIT_LATE =
|
|
780
|
+
POST_KNIFE_INIT_LATE = 44,
|
|
739
781
|
/**
|
|
740
782
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
741
783
|
*
|
|
@@ -752,7 +794,7 @@ export declare enum ModCallbackCustom {
|
|
|
752
794
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
753
795
|
* ```
|
|
754
796
|
*/
|
|
755
|
-
POST_LASER_INIT_LATE =
|
|
797
|
+
POST_LASER_INIT_LATE = 45,
|
|
756
798
|
/**
|
|
757
799
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
758
800
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -769,7 +811,7 @@ export declare enum ModCallbackCustom {
|
|
|
769
811
|
* function postNewLevelReordered(): void {}
|
|
770
812
|
* ```
|
|
771
813
|
*/
|
|
772
|
-
POST_NEW_LEVEL_REORDERED =
|
|
814
|
+
POST_NEW_LEVEL_REORDERED = 46,
|
|
773
815
|
/**
|
|
774
816
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
775
817
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -780,7 +822,7 @@ export declare enum ModCallbackCustom {
|
|
|
780
822
|
* function postNewRoomEarly(): void {}
|
|
781
823
|
* ```
|
|
782
824
|
*/
|
|
783
|
-
POST_NEW_ROOM_EARLY =
|
|
825
|
+
POST_NEW_ROOM_EARLY = 47,
|
|
784
826
|
/**
|
|
785
827
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
786
828
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -797,7 +839,7 @@ export declare enum ModCallbackCustom {
|
|
|
797
839
|
* function postNewRoomReordered(): void {}
|
|
798
840
|
* ```
|
|
799
841
|
*/
|
|
800
|
-
POST_NEW_ROOM_REORDERED =
|
|
842
|
+
POST_NEW_ROOM_REORDERED = 48,
|
|
801
843
|
/**
|
|
802
844
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
803
845
|
* to specify extra arguments for additional filtration.
|
|
@@ -814,7 +856,7 @@ export declare enum ModCallbackCustom {
|
|
|
814
856
|
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
815
857
|
* ```
|
|
816
858
|
*/
|
|
817
|
-
POST_NPC_DEATH_FILTER =
|
|
859
|
+
POST_NPC_DEATH_FILTER = 49,
|
|
818
860
|
/**
|
|
819
861
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
820
862
|
* to specify extra arguments for additional filtration.
|
|
@@ -831,7 +873,7 @@ export declare enum ModCallbackCustom {
|
|
|
831
873
|
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
832
874
|
* ```
|
|
833
875
|
*/
|
|
834
|
-
POST_NPC_INIT_FILTER =
|
|
876
|
+
POST_NPC_INIT_FILTER = 50,
|
|
835
877
|
/**
|
|
836
878
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
837
879
|
*
|
|
@@ -850,7 +892,7 @@ export declare enum ModCallbackCustom {
|
|
|
850
892
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
851
893
|
* ```
|
|
852
894
|
*/
|
|
853
|
-
POST_NPC_INIT_LATE =
|
|
895
|
+
POST_NPC_INIT_LATE = 51,
|
|
854
896
|
/**
|
|
855
897
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
856
898
|
* to specify extra arguments for additional filtration.
|
|
@@ -867,7 +909,7 @@ export declare enum ModCallbackCustom {
|
|
|
867
909
|
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
868
910
|
* ```
|
|
869
911
|
*/
|
|
870
|
-
POST_NPC_RENDER_FILTER =
|
|
912
|
+
POST_NPC_RENDER_FILTER = 52,
|
|
871
913
|
/**
|
|
872
914
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
873
915
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -888,7 +930,7 @@ export declare enum ModCallbackCustom {
|
|
|
888
930
|
* ): void {}
|
|
889
931
|
* ```
|
|
890
932
|
*/
|
|
891
|
-
POST_NPC_STATE_CHANGED =
|
|
933
|
+
POST_NPC_STATE_CHANGED = 53,
|
|
892
934
|
/**
|
|
893
935
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
894
936
|
* to specify extra arguments for additional filtration.
|
|
@@ -905,7 +947,7 @@ export declare enum ModCallbackCustom {
|
|
|
905
947
|
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
906
948
|
* ```
|
|
907
949
|
*/
|
|
908
|
-
POST_NPC_UPDATE_FILTER =
|
|
950
|
+
POST_NPC_UPDATE_FILTER = 54,
|
|
909
951
|
/**
|
|
910
952
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
911
953
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -930,7 +972,7 @@ export declare enum ModCallbackCustom {
|
|
|
930
972
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
931
973
|
* ```
|
|
932
974
|
*/
|
|
933
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
975
|
+
POST_PEFFECT_UPDATE_REORDERED = 55,
|
|
934
976
|
/**
|
|
935
977
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
936
978
|
*
|
|
@@ -949,7 +991,7 @@ export declare enum ModCallbackCustom {
|
|
|
949
991
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
950
992
|
* ```
|
|
951
993
|
*/
|
|
952
|
-
POST_PICKUP_COLLECT =
|
|
994
|
+
POST_PICKUP_COLLECT = 56,
|
|
953
995
|
/**
|
|
954
996
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
955
997
|
* respective pickup on the run.
|
|
@@ -967,7 +1009,7 @@ export declare enum ModCallbackCustom {
|
|
|
967
1009
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
968
1010
|
* ```
|
|
969
1011
|
*/
|
|
970
|
-
POST_PICKUP_INIT_FIRST =
|
|
1012
|
+
POST_PICKUP_INIT_FIRST = 57,
|
|
971
1013
|
/**
|
|
972
1014
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
973
1015
|
*
|
|
@@ -984,7 +1026,7 @@ export declare enum ModCallbackCustom {
|
|
|
984
1026
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
985
1027
|
* ```
|
|
986
1028
|
*/
|
|
987
|
-
POST_PICKUP_INIT_LATE =
|
|
1029
|
+
POST_PICKUP_INIT_LATE = 58,
|
|
988
1030
|
/**
|
|
989
1031
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
990
1032
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -1003,7 +1045,7 @@ export declare enum ModCallbackCustom {
|
|
|
1003
1045
|
* ): void {}
|
|
1004
1046
|
* ```
|
|
1005
1047
|
*/
|
|
1006
|
-
POST_PICKUP_STATE_CHANGED =
|
|
1048
|
+
POST_PICKUP_STATE_CHANGED = 59,
|
|
1007
1049
|
/**
|
|
1008
1050
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
1009
1051
|
*
|
|
@@ -1015,7 +1057,7 @@ export declare enum ModCallbackCustom {
|
|
|
1015
1057
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
1016
1058
|
* ```
|
|
1017
1059
|
*/
|
|
1018
|
-
POST_PIT_RENDER =
|
|
1060
|
+
POST_PIT_RENDER = 60,
|
|
1019
1061
|
/**
|
|
1020
1062
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
1021
1063
|
*
|
|
@@ -1027,7 +1069,7 @@ export declare enum ModCallbackCustom {
|
|
|
1027
1069
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
1028
1070
|
* ```
|
|
1029
1071
|
*/
|
|
1030
|
-
POST_PIT_UPDATE =
|
|
1072
|
+
POST_PIT_UPDATE = 61,
|
|
1031
1073
|
/**
|
|
1032
1074
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
1033
1075
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -1049,7 +1091,7 @@ export declare enum ModCallbackCustom {
|
|
|
1049
1091
|
* ): void {}
|
|
1050
1092
|
* ```
|
|
1051
1093
|
*/
|
|
1052
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
1094
|
+
POST_PLAYER_CHANGE_HEALTH = 62,
|
|
1053
1095
|
/**
|
|
1054
1096
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
1055
1097
|
* from what they were on the previous frame.
|
|
@@ -1079,7 +1121,7 @@ export declare enum ModCallbackCustom {
|
|
|
1079
1121
|
* ) => void {}
|
|
1080
1122
|
* ```
|
|
1081
1123
|
*/
|
|
1082
|
-
POST_PLAYER_CHANGE_STAT =
|
|
1124
|
+
POST_PLAYER_CHANGE_STAT = 63,
|
|
1083
1125
|
/**
|
|
1084
1126
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
1085
1127
|
* type
|
|
@@ -1102,7 +1144,7 @@ export declare enum ModCallbackCustom {
|
|
|
1102
1144
|
* ): void {}
|
|
1103
1145
|
* ```
|
|
1104
1146
|
*/
|
|
1105
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
1147
|
+
POST_PLAYER_CHANGE_TYPE = 64,
|
|
1106
1148
|
/**
|
|
1107
1149
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1108
1150
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -1119,7 +1161,7 @@ export declare enum ModCallbackCustom {
|
|
|
1119
1161
|
* ): void {}
|
|
1120
1162
|
* ```
|
|
1121
1163
|
*/
|
|
1122
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
1164
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 65,
|
|
1123
1165
|
/**
|
|
1124
1166
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1125
1167
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -1136,7 +1178,7 @@ export declare enum ModCallbackCustom {
|
|
|
1136
1178
|
* ): void {}
|
|
1137
1179
|
* ```
|
|
1138
1180
|
*/
|
|
1139
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
1181
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 66,
|
|
1140
1182
|
/**
|
|
1141
1183
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
1142
1184
|
* prevent the fatal damage.
|
|
@@ -1154,7 +1196,7 @@ export declare enum ModCallbackCustom {
|
|
|
1154
1196
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
1155
1197
|
* ```
|
|
1156
1198
|
*/
|
|
1157
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
1199
|
+
POST_PLAYER_FATAL_DAMAGE = 67,
|
|
1158
1200
|
/**
|
|
1159
1201
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
1160
1202
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -1176,7 +1218,7 @@ export declare enum ModCallbackCustom {
|
|
|
1176
1218
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
1177
1219
|
* ```
|
|
1178
1220
|
*/
|
|
1179
|
-
POST_PLAYER_INIT_FIRST =
|
|
1221
|
+
POST_PLAYER_INIT_FIRST = 68,
|
|
1180
1222
|
/**
|
|
1181
1223
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
1182
1224
|
*
|
|
@@ -1196,7 +1238,7 @@ export declare enum ModCallbackCustom {
|
|
|
1196
1238
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
1197
1239
|
* ```
|
|
1198
1240
|
*/
|
|
1199
|
-
POST_PLAYER_INIT_LATE =
|
|
1241
|
+
POST_PLAYER_INIT_LATE = 69,
|
|
1200
1242
|
/**
|
|
1201
1243
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
1202
1244
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -1220,7 +1262,7 @@ export declare enum ModCallbackCustom {
|
|
|
1220
1262
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
1221
1263
|
* ```
|
|
1222
1264
|
*/
|
|
1223
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
1265
|
+
POST_PLAYER_RENDER_REORDERED = 70,
|
|
1224
1266
|
/**
|
|
1225
1267
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
1226
1268
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -1245,7 +1287,7 @@ export declare enum ModCallbackCustom {
|
|
|
1245
1287
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
1246
1288
|
* ```
|
|
1247
1289
|
*/
|
|
1248
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
1290
|
+
POST_PLAYER_UPDATE_REORDERED = 71,
|
|
1249
1291
|
/**
|
|
1250
1292
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
1251
1293
|
*
|
|
@@ -1257,7 +1299,7 @@ export declare enum ModCallbackCustom {
|
|
|
1257
1299
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
1258
1300
|
* ```
|
|
1259
1301
|
*/
|
|
1260
|
-
POST_POOP_RENDER =
|
|
1302
|
+
POST_POOP_RENDER = 72,
|
|
1261
1303
|
/**
|
|
1262
1304
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
1263
1305
|
*
|
|
@@ -1269,7 +1311,7 @@ export declare enum ModCallbackCustom {
|
|
|
1269
1311
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
1270
1312
|
* ```
|
|
1271
1313
|
*/
|
|
1272
|
-
POST_POOP_UPDATE =
|
|
1314
|
+
POST_POOP_UPDATE = 73,
|
|
1273
1315
|
/**
|
|
1274
1316
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
1275
1317
|
*
|
|
@@ -1281,7 +1323,7 @@ export declare enum ModCallbackCustom {
|
|
|
1281
1323
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
1282
1324
|
* ```
|
|
1283
1325
|
*/
|
|
1284
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
1326
|
+
POST_PRESSURE_PLATE_RENDER = 74,
|
|
1285
1327
|
/**
|
|
1286
1328
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
1287
1329
|
*
|
|
@@ -1293,7 +1335,7 @@ export declare enum ModCallbackCustom {
|
|
|
1293
1335
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
1294
1336
|
* ```
|
|
1295
1337
|
*/
|
|
1296
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
1338
|
+
POST_PRESSURE_PLATE_UPDATE = 75,
|
|
1297
1339
|
/**
|
|
1298
1340
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
1299
1341
|
*
|
|
@@ -1310,7 +1352,7 @@ export declare enum ModCallbackCustom {
|
|
|
1310
1352
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
1311
1353
|
* ```
|
|
1312
1354
|
*/
|
|
1313
|
-
POST_PROJECTILE_INIT_LATE =
|
|
1355
|
+
POST_PROJECTILE_INIT_LATE = 76,
|
|
1314
1356
|
/**
|
|
1315
1357
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
1316
1358
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -1326,7 +1368,7 @@ export declare enum ModCallbackCustom {
|
|
|
1326
1368
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
1327
1369
|
* ```
|
|
1328
1370
|
*/
|
|
1329
|
-
POST_PURCHASE =
|
|
1371
|
+
POST_PURCHASE = 77,
|
|
1330
1372
|
/**
|
|
1331
1373
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
1332
1374
|
*
|
|
@@ -1340,7 +1382,7 @@ export declare enum ModCallbackCustom {
|
|
|
1340
1382
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
1341
1383
|
* ```
|
|
1342
1384
|
*/
|
|
1343
|
-
POST_ROCK_RENDER =
|
|
1385
|
+
POST_ROCK_RENDER = 78,
|
|
1344
1386
|
/**
|
|
1345
1387
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
1346
1388
|
*
|
|
@@ -1354,7 +1396,7 @@ export declare enum ModCallbackCustom {
|
|
|
1354
1396
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
1355
1397
|
* ```
|
|
1356
1398
|
*/
|
|
1357
|
-
POST_ROCK_UPDATE =
|
|
1399
|
+
POST_ROCK_UPDATE = 79,
|
|
1358
1400
|
/**
|
|
1359
1401
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
1360
1402
|
* the `Room.IsClear` method).
|
|
@@ -1371,7 +1413,7 @@ export declare enum ModCallbackCustom {
|
|
|
1371
1413
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
1372
1414
|
* ```
|
|
1373
1415
|
*/
|
|
1374
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
1416
|
+
POST_ROOM_CLEAR_CHANGED = 80,
|
|
1375
1417
|
/**
|
|
1376
1418
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
1377
1419
|
* Room.
|
|
@@ -1386,7 +1428,7 @@ export declare enum ModCallbackCustom {
|
|
|
1386
1428
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
1387
1429
|
* ```
|
|
1388
1430
|
*/
|
|
1389
|
-
POST_SACRIFICE =
|
|
1431
|
+
POST_SACRIFICE = 81,
|
|
1390
1432
|
/**
|
|
1391
1433
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
1392
1434
|
*
|
|
@@ -1400,7 +1442,7 @@ export declare enum ModCallbackCustom {
|
|
|
1400
1442
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
1401
1443
|
* ```
|
|
1402
1444
|
*/
|
|
1403
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
1445
|
+
POST_SLOT_ANIMATION_CHANGED = 82,
|
|
1404
1446
|
/**
|
|
1405
1447
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
1406
1448
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -1424,7 +1466,7 @@ export declare enum ModCallbackCustom {
|
|
|
1424
1466
|
* ): void {}
|
|
1425
1467
|
* ```
|
|
1426
1468
|
*/
|
|
1427
|
-
POST_SLOT_COLLISION =
|
|
1469
|
+
POST_SLOT_COLLISION = 83,
|
|
1428
1470
|
/**
|
|
1429
1471
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
1430
1472
|
* has broken.
|
|
@@ -1439,7 +1481,7 @@ export declare enum ModCallbackCustom {
|
|
|
1439
1481
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
1440
1482
|
* ```
|
|
1441
1483
|
*/
|
|
1442
|
-
POST_SLOT_DESTROYED =
|
|
1484
|
+
POST_SLOT_DESTROYED = 84,
|
|
1443
1485
|
/**
|
|
1444
1486
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
1445
1487
|
*
|
|
@@ -1458,7 +1500,7 @@ export declare enum ModCallbackCustom {
|
|
|
1458
1500
|
* function postSlotInit(slot: Entity): void {}
|
|
1459
1501
|
* ```
|
|
1460
1502
|
*/
|
|
1461
|
-
POST_SLOT_INIT =
|
|
1503
|
+
POST_SLOT_INIT = 85,
|
|
1462
1504
|
/**
|
|
1463
1505
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
1464
1506
|
*
|
|
@@ -1472,7 +1514,7 @@ export declare enum ModCallbackCustom {
|
|
|
1472
1514
|
* function postSlotRender(slot: Entity): void {}
|
|
1473
1515
|
* ```
|
|
1474
1516
|
*/
|
|
1475
|
-
POST_SLOT_RENDER =
|
|
1517
|
+
POST_SLOT_RENDER = 86,
|
|
1476
1518
|
/**
|
|
1477
1519
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
1478
1520
|
*
|
|
@@ -1486,7 +1528,7 @@ export declare enum ModCallbackCustom {
|
|
|
1486
1528
|
* function postSlotUpdate(slot: Entity): void {}
|
|
1487
1529
|
* ```
|
|
1488
1530
|
*/
|
|
1489
|
-
POST_SLOT_UPDATE =
|
|
1531
|
+
POST_SLOT_UPDATE = 87,
|
|
1490
1532
|
/**
|
|
1491
1533
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
1492
1534
|
*
|
|
@@ -1498,7 +1540,7 @@ export declare enum ModCallbackCustom {
|
|
|
1498
1540
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
1499
1541
|
* ```
|
|
1500
1542
|
*/
|
|
1501
|
-
POST_SPIKES_RENDER =
|
|
1543
|
+
POST_SPIKES_RENDER = 88,
|
|
1502
1544
|
/**
|
|
1503
1545
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
1504
1546
|
*
|
|
@@ -1510,7 +1552,7 @@ export declare enum ModCallbackCustom {
|
|
|
1510
1552
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
1511
1553
|
* ```
|
|
1512
1554
|
*/
|
|
1513
|
-
POST_SPIKES_UPDATE =
|
|
1555
|
+
POST_SPIKES_UPDATE = 89,
|
|
1514
1556
|
/**
|
|
1515
1557
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1516
1558
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -1528,7 +1570,7 @@ export declare enum ModCallbackCustom {
|
|
|
1528
1570
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
1529
1571
|
* ```
|
|
1530
1572
|
*/
|
|
1531
|
-
POST_TEAR_INIT_LATE =
|
|
1573
|
+
POST_TEAR_INIT_LATE = 90,
|
|
1532
1574
|
/**
|
|
1533
1575
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1534
1576
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -1545,7 +1587,7 @@ export declare enum ModCallbackCustom {
|
|
|
1545
1587
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
1546
1588
|
* ```
|
|
1547
1589
|
*/
|
|
1548
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
1590
|
+
POST_TEAR_INIT_VERY_LATE = 91,
|
|
1549
1591
|
/**
|
|
1550
1592
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
1551
1593
|
*
|
|
@@ -1557,7 +1599,7 @@ export declare enum ModCallbackCustom {
|
|
|
1557
1599
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
1558
1600
|
* ```
|
|
1559
1601
|
*/
|
|
1560
|
-
POST_TNT_RENDER =
|
|
1602
|
+
POST_TNT_RENDER = 92,
|
|
1561
1603
|
/**
|
|
1562
1604
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
1563
1605
|
*
|
|
@@ -1569,7 +1611,7 @@ export declare enum ModCallbackCustom {
|
|
|
1569
1611
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
1570
1612
|
* ```
|
|
1571
1613
|
*/
|
|
1572
|
-
POST_TNT_UPDATE =
|
|
1614
|
+
POST_TNT_UPDATE = 93,
|
|
1573
1615
|
/**
|
|
1574
1616
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
1575
1617
|
* transformation.
|
|
@@ -1588,7 +1630,7 @@ export declare enum ModCallbackCustom {
|
|
|
1588
1630
|
* ): void {}
|
|
1589
1631
|
* ```
|
|
1590
1632
|
*/
|
|
1591
|
-
POST_TRANSFORMATION =
|
|
1633
|
+
POST_TRANSFORMATION = 94,
|
|
1592
1634
|
/**
|
|
1593
1635
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
1594
1636
|
*
|
|
@@ -1603,7 +1645,7 @@ export declare enum ModCallbackCustom {
|
|
|
1603
1645
|
* ): void {}
|
|
1604
1646
|
* ```
|
|
1605
1647
|
*/
|
|
1606
|
-
POST_TRINKET_BREAK =
|
|
1648
|
+
POST_TRINKET_BREAK = 95,
|
|
1607
1649
|
/**
|
|
1608
1650
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
1609
1651
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -1619,7 +1661,7 @@ export declare enum ModCallbackCustom {
|
|
|
1619
1661
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
1620
1662
|
* ```
|
|
1621
1663
|
*/
|
|
1622
|
-
PRE_BERSERK_DEATH =
|
|
1664
|
+
PRE_BERSERK_DEATH = 96,
|
|
1623
1665
|
/**
|
|
1624
1666
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
1625
1667
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -1638,7 +1680,7 @@ export declare enum ModCallbackCustom {
|
|
|
1638
1680
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
1639
1681
|
* ```
|
|
1640
1682
|
*/
|
|
1641
|
-
PRE_CUSTOM_REVIVE =
|
|
1683
|
+
PRE_CUSTOM_REVIVE = 97,
|
|
1642
1684
|
/**
|
|
1643
1685
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
1644
1686
|
* meets all of the conditions to pick it up.
|
|
@@ -1658,7 +1700,7 @@ export declare enum ModCallbackCustom {
|
|
|
1658
1700
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
1659
1701
|
* ```
|
|
1660
1702
|
*/
|
|
1661
|
-
PRE_GET_PEDESTAL =
|
|
1703
|
+
PRE_GET_PEDESTAL = 98,
|
|
1662
1704
|
/**
|
|
1663
1705
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
1664
1706
|
* the player begins to hold the item above their head).
|
|
@@ -1678,7 +1720,7 @@ export declare enum ModCallbackCustom {
|
|
|
1678
1720
|
* ): void {}
|
|
1679
1721
|
* ```
|
|
1680
1722
|
*/
|
|
1681
|
-
PRE_ITEM_PICKUP =
|
|
1723
|
+
PRE_ITEM_PICKUP = 99,
|
|
1682
1724
|
/**
|
|
1683
1725
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
1684
1726
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -1692,7 +1734,7 @@ export declare enum ModCallbackCustom {
|
|
|
1692
1734
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
1693
1735
|
* ```
|
|
1694
1736
|
*/
|
|
1695
|
-
PRE_NEW_LEVEL =
|
|
1737
|
+
PRE_NEW_LEVEL = 100,
|
|
1696
1738
|
/**
|
|
1697
1739
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
1698
1740
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1713,7 +1755,7 @@ export declare enum ModCallbackCustom {
|
|
|
1713
1755
|
* ): boolean | undefined {}
|
|
1714
1756
|
* ```
|
|
1715
1757
|
*/
|
|
1716
|
-
PRE_NPC_COLLISION_FILTER =
|
|
1758
|
+
PRE_NPC_COLLISION_FILTER = 101,
|
|
1717
1759
|
/**
|
|
1718
1760
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
1719
1761
|
* to specify extra arguments for additional filtration.
|
|
@@ -1730,6 +1772,6 @@ export declare enum ModCallbackCustom {
|
|
|
1730
1772
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
1731
1773
|
* ```
|
|
1732
1774
|
*/
|
|
1733
|
-
PRE_NPC_UPDATE_FILTER =
|
|
1775
|
+
PRE_NPC_UPDATE_FILTER = 102
|
|
1734
1776
|
}
|
|
1735
1777
|
//# sourceMappingURL=ModCallbackCustom.d.ts.map
|