isaacscript-common 18.2.0 → 18.3.0
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 +202 -99
- package/dist/isaacscript-common.lua +176 -100
- 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/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/enums/ModCallbackCustom.d.ts +189 -99
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +103 -99
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +13 -1
- package/dist/src/interfaces/private/AddCallbackParametersCustom.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/callbacks/InputActionFilter.ts +46 -0
- package/src/classes/callbacks/InputActionPlayer.ts +67 -0
- package/src/enums/ModCallbackCustom.ts +92 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +24 -0
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ import { GridCollisionClass } from 'isaac-typescript-definitions';
|
|
|
36
36
|
import { GridEntityType } from 'isaac-typescript-definitions';
|
|
37
37
|
import { GridEntityXMLType } from 'isaac-typescript-definitions';
|
|
38
38
|
import { HeartSubType } from 'isaac-typescript-definitions';
|
|
39
|
+
import { InputHook } from 'isaac-typescript-definitions';
|
|
39
40
|
import { ItemConfigCardType } from 'isaac-typescript-definitions';
|
|
40
41
|
import { ItemConfigChargeType } from 'isaac-typescript-definitions';
|
|
41
42
|
import { ItemConfigPillEffectClass } from 'isaac-typescript-definitions';
|
|
@@ -96,6 +97,18 @@ declare interface AddCallbackParametersCustom {
|
|
|
96
97
|
playerVariant?: PlayerVariant,
|
|
97
98
|
character?: PlayerType
|
|
98
99
|
];
|
|
100
|
+
[ModCallbackCustom.INPUT_ACTION_FILTER]: [
|
|
101
|
+
callback: (entity: Entity | undefined, inputHook: InputHook, buttonAction: ButtonAction) => boolean | float | undefined,
|
|
102
|
+
inputHook?: InputHook,
|
|
103
|
+
buttonAction?: ButtonAction
|
|
104
|
+
];
|
|
105
|
+
[ModCallbackCustom.INPUT_ACTION_PLAYER]: [
|
|
106
|
+
callback: (player: EntityPlayer, inputHook: InputHook, buttonAction: ButtonAction) => boolean | float | undefined,
|
|
107
|
+
playerVariant?: PlayerVariant,
|
|
108
|
+
character?: PlayerType,
|
|
109
|
+
inputHook?: InputHook,
|
|
110
|
+
buttonAction?: ButtonAction
|
|
111
|
+
];
|
|
99
112
|
[ModCallbackCustom.POST_AMBUSH_FINISHED]: [
|
|
100
113
|
callback: (ambushType: AmbushType) => void,
|
|
101
114
|
ambushType?: AmbushType
|
|
@@ -8626,6 +8639,16 @@ export declare enum ModCallbackCustom {
|
|
|
8626
8639
|
* matches the variant provided.
|
|
8627
8640
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
8628
8641
|
* matches the sub-type provided.
|
|
8642
|
+
*
|
|
8643
|
+
* ```ts
|
|
8644
|
+
* function entityTakeDmgFilter(
|
|
8645
|
+
* entity: Entity,
|
|
8646
|
+
* amount: float,
|
|
8647
|
+
* damageFlags: BitFlags<DamageFlag>,
|
|
8648
|
+
* source: EntityRef,
|
|
8649
|
+
* countdownFrames: int,
|
|
8650
|
+
* ): boolean | undefined {}
|
|
8651
|
+
* ```
|
|
8629
8652
|
*/
|
|
8630
8653
|
ENTITY_TAKE_DMG_FILTER = 0,
|
|
8631
8654
|
/**
|
|
@@ -8637,8 +8660,60 @@ export declare enum ModCallbackCustom {
|
|
|
8637
8660
|
* matches the `PlayerVariant` provided.
|
|
8638
8661
|
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8639
8662
|
* matches the `PlayerType` provided.
|
|
8663
|
+
*
|
|
8664
|
+
* ```ts
|
|
8665
|
+
* function entityTakeDmgPlayer(
|
|
8666
|
+
* player: EntityPlayer,
|
|
8667
|
+
* amount: float,
|
|
8668
|
+
* damageFlags: BitFlags<DamageFlag>,
|
|
8669
|
+
* source: EntityRef,
|
|
8670
|
+
* countdownFrames: int,
|
|
8671
|
+
* ): boolean | undefined {}
|
|
8672
|
+
* ```
|
|
8640
8673
|
*/
|
|
8641
8674
|
ENTITY_TAKE_DMG_PLAYER = 1,
|
|
8675
|
+
/**
|
|
8676
|
+
* The exact same thing as the vanilla `INPUT_ACTION` callback, except this callback allows you to
|
|
8677
|
+
* specify extra arguments for additional filtration.
|
|
8678
|
+
*
|
|
8679
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8680
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8681
|
+
* matches the `InputHook` provided.
|
|
8682
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8683
|
+
* matches the `ButtonAction` provided.
|
|
8684
|
+
*
|
|
8685
|
+
* ```ts
|
|
8686
|
+
* function inputActionFilter(
|
|
8687
|
+
* entity: Entity | undefined,
|
|
8688
|
+
* inputHook: InputHook,
|
|
8689
|
+
* buttonAction: ButtonAction,
|
|
8690
|
+
* ): boolean | undefined {}
|
|
8691
|
+
* ```
|
|
8692
|
+
*/
|
|
8693
|
+
INPUT_ACTION_FILTER = 2,
|
|
8694
|
+
/**
|
|
8695
|
+
* The exact same thing as the vanilla `INPUT_ACTION` callback, except this callback automatically
|
|
8696
|
+
* filters for `EntityType.ENTITY_PLAYER` and casts the `Entity` object to a `EntityPlayer`. It
|
|
8697
|
+
* also allows you to specify extra arguments for additional filtration.
|
|
8698
|
+
*
|
|
8699
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8700
|
+
* matches the `PlayerVariant` provided.
|
|
8701
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8702
|
+
* matches the `PlayerType` provided.
|
|
8703
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
8704
|
+
* matches the `InputHook` provided.
|
|
8705
|
+
* - You can provide an optional sixth argument that will make the callback only fire if it
|
|
8706
|
+
* matches the `ButtonAction` provided.
|
|
8707
|
+
*
|
|
8708
|
+
* ```ts
|
|
8709
|
+
* function inputActionPlayer(
|
|
8710
|
+
* player: EntityPlayer,
|
|
8711
|
+
* inputHook: InputHook,
|
|
8712
|
+
* buttonAction: ButtonAction,
|
|
8713
|
+
* ): boolean | undefined {}
|
|
8714
|
+
* ```
|
|
8715
|
+
*/
|
|
8716
|
+
INPUT_ACTION_PLAYER = 3,
|
|
8642
8717
|
/**
|
|
8643
8718
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
|
|
8644
8719
|
* Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
|
|
@@ -8651,7 +8726,7 @@ export declare enum ModCallbackCustom {
|
|
|
8651
8726
|
* function postAmbushFinished(ambushType: AmbushType): void {}
|
|
8652
8727
|
* ```
|
|
8653
8728
|
*/
|
|
8654
|
-
POST_AMBUSH_FINISHED =
|
|
8729
|
+
POST_AMBUSH_FINISHED = 4,
|
|
8655
8730
|
/**
|
|
8656
8731
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
|
|
8657
8732
|
* Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
|
|
@@ -8664,7 +8739,7 @@ export declare enum ModCallbackCustom {
|
|
|
8664
8739
|
* function postAmbushStarted(ambushType: AmbushType): void {}
|
|
8665
8740
|
* ```
|
|
8666
8741
|
*/
|
|
8667
|
-
POST_AMBUSH_STARTED =
|
|
8742
|
+
POST_AMBUSH_STARTED = 5,
|
|
8668
8743
|
/**
|
|
8669
8744
|
* Fires on the `POST_BOMB_UPDATE` callback that it explodes.
|
|
8670
8745
|
*
|
|
@@ -8678,7 +8753,7 @@ export declare enum ModCallbackCustom {
|
|
|
8678
8753
|
* function postBombDetonated(bomb: EntityBomb): void {}
|
|
8679
8754
|
* ```
|
|
8680
8755
|
*/
|
|
8681
|
-
POST_BOMB_EXPLODED =
|
|
8756
|
+
POST_BOMB_EXPLODED = 6,
|
|
8682
8757
|
/**
|
|
8683
8758
|
* Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
|
|
8684
8759
|
*
|
|
@@ -8695,7 +8770,7 @@ export declare enum ModCallbackCustom {
|
|
|
8695
8770
|
* function postBombInitLate(bomb: EntityBomb): void {}
|
|
8696
8771
|
* ```
|
|
8697
8772
|
*/
|
|
8698
|
-
POST_BOMB_INIT_LATE =
|
|
8773
|
+
POST_BOMB_INIT_LATE = 7,
|
|
8699
8774
|
/**
|
|
8700
8775
|
* Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
|
|
8701
8776
|
*
|
|
@@ -8703,7 +8778,7 @@ export declare enum ModCallbackCustom {
|
|
|
8703
8778
|
* function postBoneSwing(boneClub: EntityKnife): void {}
|
|
8704
8779
|
* ```
|
|
8705
8780
|
*/
|
|
8706
|
-
POST_BONE_SWING =
|
|
8781
|
+
POST_BONE_SWING = 8,
|
|
8707
8782
|
/**
|
|
8708
8783
|
* Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
|
|
8709
8784
|
* to `CollectibleType.NULL` (i.e. an "empty" pedestal).
|
|
@@ -8719,7 +8794,7 @@ export declare enum ModCallbackCustom {
|
|
|
8719
8794
|
* ): void {}
|
|
8720
8795
|
* ```
|
|
8721
8796
|
*/
|
|
8722
|
-
POST_COLLECTIBLE_EMPTY =
|
|
8797
|
+
POST_COLLECTIBLE_EMPTY = 9,
|
|
8723
8798
|
/**
|
|
8724
8799
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
8725
8800
|
* respective collectible on the run. For more details on how this is calculated, see the
|
|
@@ -8737,7 +8812,7 @@ export declare enum ModCallbackCustom {
|
|
|
8737
8812
|
* function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
|
|
8738
8813
|
* ```
|
|
8739
8814
|
*/
|
|
8740
|
-
POST_COLLECTIBLE_INIT_FIRST =
|
|
8815
|
+
POST_COLLECTIBLE_INIT_FIRST = 10,
|
|
8741
8816
|
/**
|
|
8742
8817
|
* Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
|
|
8743
8818
|
* begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
|
|
@@ -8753,7 +8828,7 @@ export declare enum ModCallbackCustom {
|
|
|
8753
8828
|
* function postCursedTeleport(player: EntityPlayer): void {}
|
|
8754
8829
|
* ```
|
|
8755
8830
|
*/
|
|
8756
|
-
POST_CURSED_TELEPORT =
|
|
8831
|
+
POST_CURSED_TELEPORT = 11,
|
|
8757
8832
|
/**
|
|
8758
8833
|
* Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
|
|
8759
8834
|
* has teleported to the previous room, and is ready to play the animation for the modded revival
|
|
@@ -8771,7 +8846,7 @@ export declare enum ModCallbackCustom {
|
|
|
8771
8846
|
* function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
|
|
8772
8847
|
* ```
|
|
8773
8848
|
*/
|
|
8774
|
-
POST_CUSTOM_REVIVE =
|
|
8849
|
+
POST_CUSTOM_REVIVE = 12,
|
|
8775
8850
|
/**
|
|
8776
8851
|
* Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
|
|
8777
8852
|
* Room floor.
|
|
@@ -8787,7 +8862,7 @@ export declare enum ModCallbackCustom {
|
|
|
8787
8862
|
* ): void {}
|
|
8788
8863
|
* ```
|
|
8789
8864
|
*/
|
|
8790
|
-
POST_DICE_ROOM_ACTIVATED =
|
|
8865
|
+
POST_DICE_ROOM_ACTIVATED = 13,
|
|
8791
8866
|
/**
|
|
8792
8867
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
8793
8868
|
*
|
|
@@ -8799,7 +8874,7 @@ export declare enum ModCallbackCustom {
|
|
|
8799
8874
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
8800
8875
|
* ```
|
|
8801
8876
|
*/
|
|
8802
|
-
POST_DOOR_RENDER =
|
|
8877
|
+
POST_DOOR_RENDER = 14,
|
|
8803
8878
|
/**
|
|
8804
8879
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
8805
8880
|
*
|
|
@@ -8811,7 +8886,7 @@ export declare enum ModCallbackCustom {
|
|
|
8811
8886
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
8812
8887
|
* ```
|
|
8813
8888
|
*/
|
|
8814
|
-
POST_DOOR_UPDATE =
|
|
8889
|
+
POST_DOOR_UPDATE = 15,
|
|
8815
8890
|
/**
|
|
8816
8891
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
8817
8892
|
*
|
|
@@ -8828,7 +8903,7 @@ export declare enum ModCallbackCustom {
|
|
|
8828
8903
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
8829
8904
|
* ```
|
|
8830
8905
|
*/
|
|
8831
|
-
POST_EFFECT_INIT_LATE =
|
|
8906
|
+
POST_EFFECT_INIT_LATE = 16,
|
|
8832
8907
|
/**
|
|
8833
8908
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
8834
8909
|
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
@@ -8847,7 +8922,7 @@ export declare enum ModCallbackCustom {
|
|
|
8847
8922
|
* ): void {}
|
|
8848
8923
|
* ```
|
|
8849
8924
|
*/
|
|
8850
|
-
POST_EFFECT_STATE_CHANGED =
|
|
8925
|
+
POST_EFFECT_STATE_CHANGED = 17,
|
|
8851
8926
|
/**
|
|
8852
8927
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
8853
8928
|
* updated to the new character until a game frame has passed.)
|
|
@@ -8856,7 +8931,7 @@ export declare enum ModCallbackCustom {
|
|
|
8856
8931
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
8857
8932
|
* ```
|
|
8858
8933
|
*/
|
|
8859
|
-
POST_ESAU_JR =
|
|
8934
|
+
POST_ESAU_JR = 18,
|
|
8860
8935
|
/**
|
|
8861
8936
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
8862
8937
|
*
|
|
@@ -8873,7 +8948,7 @@ export declare enum ModCallbackCustom {
|
|
|
8873
8948
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
8874
8949
|
* ```
|
|
8875
8950
|
*/
|
|
8876
|
-
POST_FAMILIAR_INIT_LATE =
|
|
8951
|
+
POST_FAMILIAR_INIT_LATE = 19,
|
|
8877
8952
|
/**
|
|
8878
8953
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
8879
8954
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -8893,7 +8968,7 @@ export declare enum ModCallbackCustom {
|
|
|
8893
8968
|
* ): void {}
|
|
8894
8969
|
* ```
|
|
8895
8970
|
*/
|
|
8896
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
8971
|
+
POST_FAMILIAR_STATE_CHANGED = 20,
|
|
8897
8972
|
/**
|
|
8898
8973
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
8899
8974
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -8905,7 +8980,7 @@ export declare enum ModCallbackCustom {
|
|
|
8905
8980
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
8906
8981
|
* ```
|
|
8907
8982
|
*/
|
|
8908
|
-
POST_FIRST_ESAU_JR =
|
|
8983
|
+
POST_FIRST_ESAU_JR = 21,
|
|
8909
8984
|
/**
|
|
8910
8985
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
8911
8986
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -8918,7 +8993,7 @@ export declare enum ModCallbackCustom {
|
|
|
8918
8993
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
8919
8994
|
* ```
|
|
8920
8995
|
*/
|
|
8921
|
-
POST_FIRST_FLIP =
|
|
8996
|
+
POST_FIRST_FLIP = 22,
|
|
8922
8997
|
/**
|
|
8923
8998
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
8924
8999
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -8931,7 +9006,7 @@ export declare enum ModCallbackCustom {
|
|
|
8931
9006
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
8932
9007
|
* ```
|
|
8933
9008
|
*/
|
|
8934
|
-
POST_FLIP =
|
|
9009
|
+
POST_FLIP = 23,
|
|
8935
9010
|
/**
|
|
8936
9011
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
8937
9012
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -8942,7 +9017,7 @@ export declare enum ModCallbackCustom {
|
|
|
8942
9017
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
8943
9018
|
* ```
|
|
8944
9019
|
*/
|
|
8945
|
-
POST_GAME_STARTED_REORDERED =
|
|
9020
|
+
POST_GAME_STARTED_REORDERED = 24,
|
|
8946
9021
|
/**
|
|
8947
9022
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
8948
9023
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -8953,7 +9028,7 @@ export declare enum ModCallbackCustom {
|
|
|
8953
9028
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
8954
9029
|
* ```
|
|
8955
9030
|
*/
|
|
8956
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
9031
|
+
POST_GAME_STARTED_REORDERED_LAST = 25,
|
|
8957
9032
|
/**
|
|
8958
9033
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
8959
9034
|
*
|
|
@@ -8961,7 +9036,7 @@ export declare enum ModCallbackCustom {
|
|
|
8961
9036
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
8962
9037
|
* ```
|
|
8963
9038
|
*/
|
|
8964
|
-
POST_GREED_MODE_WAVE =
|
|
9039
|
+
POST_GREED_MODE_WAVE = 26,
|
|
8965
9040
|
/**
|
|
8966
9041
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
8967
9042
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -8980,7 +9055,7 @@ export declare enum ModCallbackCustom {
|
|
|
8980
9055
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
8981
9056
|
* ```
|
|
8982
9057
|
*/
|
|
8983
|
-
POST_GRID_ENTITY_BROKEN =
|
|
9058
|
+
POST_GRID_ENTITY_BROKEN = 27,
|
|
8984
9059
|
/**
|
|
8985
9060
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
8986
9061
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -9008,7 +9083,7 @@ export declare enum ModCallbackCustom {
|
|
|
9008
9083
|
* ): void {}
|
|
9009
9084
|
* ```
|
|
9010
9085
|
*/
|
|
9011
|
-
POST_GRID_ENTITY_COLLISION =
|
|
9086
|
+
POST_GRID_ENTITY_COLLISION = 28,
|
|
9012
9087
|
/**
|
|
9013
9088
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
9014
9089
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9025,7 +9100,7 @@ export declare enum ModCallbackCustom {
|
|
|
9025
9100
|
* ): void {}
|
|
9026
9101
|
* ```
|
|
9027
9102
|
*/
|
|
9028
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
9103
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 29,
|
|
9029
9104
|
/**
|
|
9030
9105
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
9031
9106
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9049,7 +9124,7 @@ export declare enum ModCallbackCustom {
|
|
|
9049
9124
|
* ): void {}
|
|
9050
9125
|
* ```
|
|
9051
9126
|
*/
|
|
9052
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
9127
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 30,
|
|
9053
9128
|
/**
|
|
9054
9129
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
9055
9130
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -9066,7 +9141,7 @@ export declare enum ModCallbackCustom {
|
|
|
9066
9141
|
* ): void {}
|
|
9067
9142
|
* ```
|
|
9068
9143
|
*/
|
|
9069
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
9144
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 31,
|
|
9070
9145
|
/**
|
|
9071
9146
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
9072
9147
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9083,7 +9158,7 @@ export declare enum ModCallbackCustom {
|
|
|
9083
9158
|
* ): void {}
|
|
9084
9159
|
* ```
|
|
9085
9160
|
*/
|
|
9086
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
9161
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 32,
|
|
9087
9162
|
/**
|
|
9088
9163
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
9089
9164
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9100,7 +9175,7 @@ export declare enum ModCallbackCustom {
|
|
|
9100
9175
|
* ): void {}
|
|
9101
9176
|
* ```
|
|
9102
9177
|
*/
|
|
9103
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
9178
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 33,
|
|
9104
9179
|
/**
|
|
9105
9180
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
9106
9181
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -9119,7 +9194,7 @@ export declare enum ModCallbackCustom {
|
|
|
9119
9194
|
* ): void {}
|
|
9120
9195
|
* ```
|
|
9121
9196
|
*/
|
|
9122
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
9197
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 34,
|
|
9123
9198
|
/**
|
|
9124
9199
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
9125
9200
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9136,7 +9211,7 @@ export declare enum ModCallbackCustom {
|
|
|
9136
9211
|
* ): void {}
|
|
9137
9212
|
* ```
|
|
9138
9213
|
*/
|
|
9139
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
9214
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 35,
|
|
9140
9215
|
/**
|
|
9141
9216
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
9142
9217
|
*
|
|
@@ -9158,7 +9233,7 @@ export declare enum ModCallbackCustom {
|
|
|
9158
9233
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
9159
9234
|
* ```
|
|
9160
9235
|
*/
|
|
9161
|
-
POST_GRID_ENTITY_INIT =
|
|
9236
|
+
POST_GRID_ENTITY_INIT = 36,
|
|
9162
9237
|
/**
|
|
9163
9238
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
9164
9239
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -9183,7 +9258,7 @@ export declare enum ModCallbackCustom {
|
|
|
9183
9258
|
* ): void {}
|
|
9184
9259
|
* ```
|
|
9185
9260
|
*/
|
|
9186
|
-
POST_GRID_ENTITY_REMOVE =
|
|
9261
|
+
POST_GRID_ENTITY_REMOVE = 37,
|
|
9187
9262
|
/**
|
|
9188
9263
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
9189
9264
|
*
|
|
@@ -9200,7 +9275,7 @@ export declare enum ModCallbackCustom {
|
|
|
9200
9275
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
9201
9276
|
* ```
|
|
9202
9277
|
*/
|
|
9203
|
-
POST_GRID_ENTITY_RENDER =
|
|
9278
|
+
POST_GRID_ENTITY_RENDER = 38,
|
|
9204
9279
|
/**
|
|
9205
9280
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
9206
9281
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -9222,7 +9297,7 @@ export declare enum ModCallbackCustom {
|
|
|
9222
9297
|
* ): void {}
|
|
9223
9298
|
* ```
|
|
9224
9299
|
*/
|
|
9225
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
9300
|
+
POST_GRID_ENTITY_STATE_CHANGED = 39,
|
|
9226
9301
|
/**
|
|
9227
9302
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
9228
9303
|
*
|
|
@@ -9239,7 +9314,7 @@ export declare enum ModCallbackCustom {
|
|
|
9239
9314
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
9240
9315
|
* ```
|
|
9241
9316
|
*/
|
|
9242
|
-
POST_GRID_ENTITY_UPDATE =
|
|
9317
|
+
POST_GRID_ENTITY_UPDATE = 40,
|
|
9243
9318
|
/**
|
|
9244
9319
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
9245
9320
|
* temporary collectible effect.
|
|
@@ -9262,7 +9337,7 @@ export declare enum ModCallbackCustom {
|
|
|
9262
9337
|
* ): void {}
|
|
9263
9338
|
* ```
|
|
9264
9339
|
*/
|
|
9265
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
9340
|
+
POST_HOLY_MANTLE_REMOVED = 41,
|
|
9266
9341
|
/**
|
|
9267
9342
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
9268
9343
|
* active collectible item, implying that the item was just used.
|
|
@@ -9285,7 +9360,7 @@ export declare enum ModCallbackCustom {
|
|
|
9285
9360
|
* ): void {}
|
|
9286
9361
|
* ```
|
|
9287
9362
|
*/
|
|
9288
|
-
POST_ITEM_DISCHARGE =
|
|
9363
|
+
POST_ITEM_DISCHARGE = 42,
|
|
9289
9364
|
/**
|
|
9290
9365
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
9291
9366
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -9306,7 +9381,7 @@ export declare enum ModCallbackCustom {
|
|
|
9306
9381
|
* ): void {}
|
|
9307
9382
|
* ```
|
|
9308
9383
|
*/
|
|
9309
|
-
POST_ITEM_PICKUP =
|
|
9384
|
+
POST_ITEM_PICKUP = 43,
|
|
9310
9385
|
/**
|
|
9311
9386
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
9312
9387
|
*
|
|
@@ -9323,7 +9398,7 @@ export declare enum ModCallbackCustom {
|
|
|
9323
9398
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
9324
9399
|
* ```
|
|
9325
9400
|
*/
|
|
9326
|
-
POST_KNIFE_INIT_LATE =
|
|
9401
|
+
POST_KNIFE_INIT_LATE = 44,
|
|
9327
9402
|
/**
|
|
9328
9403
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
9329
9404
|
*
|
|
@@ -9340,7 +9415,7 @@ export declare enum ModCallbackCustom {
|
|
|
9340
9415
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
9341
9416
|
* ```
|
|
9342
9417
|
*/
|
|
9343
|
-
POST_LASER_INIT_LATE =
|
|
9418
|
+
POST_LASER_INIT_LATE = 45,
|
|
9344
9419
|
/**
|
|
9345
9420
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
9346
9421
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -9357,7 +9432,7 @@ export declare enum ModCallbackCustom {
|
|
|
9357
9432
|
* function postNewLevelReordered(): void {}
|
|
9358
9433
|
* ```
|
|
9359
9434
|
*/
|
|
9360
|
-
POST_NEW_LEVEL_REORDERED =
|
|
9435
|
+
POST_NEW_LEVEL_REORDERED = 46,
|
|
9361
9436
|
/**
|
|
9362
9437
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
9363
9438
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -9368,7 +9443,7 @@ export declare enum ModCallbackCustom {
|
|
|
9368
9443
|
* function postNewRoomEarly(): void {}
|
|
9369
9444
|
* ```
|
|
9370
9445
|
*/
|
|
9371
|
-
POST_NEW_ROOM_EARLY =
|
|
9446
|
+
POST_NEW_ROOM_EARLY = 47,
|
|
9372
9447
|
/**
|
|
9373
9448
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
9374
9449
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -9385,7 +9460,7 @@ export declare enum ModCallbackCustom {
|
|
|
9385
9460
|
* function postNewRoomReordered(): void {}
|
|
9386
9461
|
* ```
|
|
9387
9462
|
*/
|
|
9388
|
-
POST_NEW_ROOM_REORDERED =
|
|
9463
|
+
POST_NEW_ROOM_REORDERED = 48,
|
|
9389
9464
|
/**
|
|
9390
9465
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
9391
9466
|
* to specify extra arguments for additional filtration.
|
|
@@ -9397,8 +9472,12 @@ export declare enum ModCallbackCustom {
|
|
|
9397
9472
|
* matches the variant provided.
|
|
9398
9473
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9399
9474
|
* matches the sub-type provided.
|
|
9475
|
+
*
|
|
9476
|
+
* ```ts
|
|
9477
|
+
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
9478
|
+
* ```
|
|
9400
9479
|
*/
|
|
9401
|
-
POST_NPC_DEATH_FILTER =
|
|
9480
|
+
POST_NPC_DEATH_FILTER = 49,
|
|
9402
9481
|
/**
|
|
9403
9482
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
9404
9483
|
* to specify extra arguments for additional filtration.
|
|
@@ -9410,8 +9489,12 @@ export declare enum ModCallbackCustom {
|
|
|
9410
9489
|
* matches the variant provided.
|
|
9411
9490
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9412
9491
|
* matches the sub-type provided.
|
|
9492
|
+
*
|
|
9493
|
+
* ```ts
|
|
9494
|
+
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
9495
|
+
* ```
|
|
9413
9496
|
*/
|
|
9414
|
-
POST_NPC_INIT_FILTER =
|
|
9497
|
+
POST_NPC_INIT_FILTER = 50,
|
|
9415
9498
|
/**
|
|
9416
9499
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
9417
9500
|
*
|
|
@@ -9430,7 +9513,7 @@ export declare enum ModCallbackCustom {
|
|
|
9430
9513
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
9431
9514
|
* ```
|
|
9432
9515
|
*/
|
|
9433
|
-
POST_NPC_INIT_LATE =
|
|
9516
|
+
POST_NPC_INIT_LATE = 51,
|
|
9434
9517
|
/**
|
|
9435
9518
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
9436
9519
|
* to specify extra arguments for additional filtration.
|
|
@@ -9442,8 +9525,12 @@ export declare enum ModCallbackCustom {
|
|
|
9442
9525
|
* matches the variant provided.
|
|
9443
9526
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9444
9527
|
* matches the sub-type provided.
|
|
9528
|
+
*
|
|
9529
|
+
* ```ts
|
|
9530
|
+
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
9531
|
+
* ```
|
|
9445
9532
|
*/
|
|
9446
|
-
POST_NPC_RENDER_FILTER =
|
|
9533
|
+
POST_NPC_RENDER_FILTER = 52,
|
|
9447
9534
|
/**
|
|
9448
9535
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
9449
9536
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -9464,7 +9551,7 @@ export declare enum ModCallbackCustom {
|
|
|
9464
9551
|
* ): void {}
|
|
9465
9552
|
* ```
|
|
9466
9553
|
*/
|
|
9467
|
-
POST_NPC_STATE_CHANGED =
|
|
9554
|
+
POST_NPC_STATE_CHANGED = 53,
|
|
9468
9555
|
/**
|
|
9469
9556
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
9470
9557
|
* to specify extra arguments for additional filtration.
|
|
@@ -9476,8 +9563,12 @@ export declare enum ModCallbackCustom {
|
|
|
9476
9563
|
* matches the variant provided.
|
|
9477
9564
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9478
9565
|
* matches the sub-type provided.
|
|
9566
|
+
*
|
|
9567
|
+
* ```ts
|
|
9568
|
+
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
9569
|
+
* ```
|
|
9479
9570
|
*/
|
|
9480
|
-
POST_NPC_UPDATE_FILTER =
|
|
9571
|
+
POST_NPC_UPDATE_FILTER = 54,
|
|
9481
9572
|
/**
|
|
9482
9573
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
9483
9574
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -9502,7 +9593,7 @@ export declare enum ModCallbackCustom {
|
|
|
9502
9593
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
9503
9594
|
* ```
|
|
9504
9595
|
*/
|
|
9505
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
9596
|
+
POST_PEFFECT_UPDATE_REORDERED = 55,
|
|
9506
9597
|
/**
|
|
9507
9598
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
9508
9599
|
*
|
|
@@ -9521,7 +9612,7 @@ export declare enum ModCallbackCustom {
|
|
|
9521
9612
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
9522
9613
|
* ```
|
|
9523
9614
|
*/
|
|
9524
|
-
POST_PICKUP_COLLECT =
|
|
9615
|
+
POST_PICKUP_COLLECT = 56,
|
|
9525
9616
|
/**
|
|
9526
9617
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
9527
9618
|
* respective pickup on the run.
|
|
@@ -9539,7 +9630,7 @@ export declare enum ModCallbackCustom {
|
|
|
9539
9630
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
9540
9631
|
* ```
|
|
9541
9632
|
*/
|
|
9542
|
-
POST_PICKUP_INIT_FIRST =
|
|
9633
|
+
POST_PICKUP_INIT_FIRST = 57,
|
|
9543
9634
|
/**
|
|
9544
9635
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
9545
9636
|
*
|
|
@@ -9556,7 +9647,7 @@ export declare enum ModCallbackCustom {
|
|
|
9556
9647
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
9557
9648
|
* ```
|
|
9558
9649
|
*/
|
|
9559
|
-
POST_PICKUP_INIT_LATE =
|
|
9650
|
+
POST_PICKUP_INIT_LATE = 58,
|
|
9560
9651
|
/**
|
|
9561
9652
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
9562
9653
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -9575,7 +9666,7 @@ export declare enum ModCallbackCustom {
|
|
|
9575
9666
|
* ): void {}
|
|
9576
9667
|
* ```
|
|
9577
9668
|
*/
|
|
9578
|
-
POST_PICKUP_STATE_CHANGED =
|
|
9669
|
+
POST_PICKUP_STATE_CHANGED = 59,
|
|
9579
9670
|
/**
|
|
9580
9671
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
9581
9672
|
*
|
|
@@ -9587,7 +9678,7 @@ export declare enum ModCallbackCustom {
|
|
|
9587
9678
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
9588
9679
|
* ```
|
|
9589
9680
|
*/
|
|
9590
|
-
POST_PIT_RENDER =
|
|
9681
|
+
POST_PIT_RENDER = 60,
|
|
9591
9682
|
/**
|
|
9592
9683
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
9593
9684
|
*
|
|
@@ -9599,7 +9690,7 @@ export declare enum ModCallbackCustom {
|
|
|
9599
9690
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
9600
9691
|
* ```
|
|
9601
9692
|
*/
|
|
9602
|
-
POST_PIT_UPDATE =
|
|
9693
|
+
POST_PIT_UPDATE = 61,
|
|
9603
9694
|
/**
|
|
9604
9695
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
9605
9696
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -9621,7 +9712,7 @@ export declare enum ModCallbackCustom {
|
|
|
9621
9712
|
* ): void {}
|
|
9622
9713
|
* ```
|
|
9623
9714
|
*/
|
|
9624
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
9715
|
+
POST_PLAYER_CHANGE_HEALTH = 62,
|
|
9625
9716
|
/**
|
|
9626
9717
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
9627
9718
|
* from what they were on the previous frame.
|
|
@@ -9651,7 +9742,7 @@ export declare enum ModCallbackCustom {
|
|
|
9651
9742
|
* ) => void {}
|
|
9652
9743
|
* ```
|
|
9653
9744
|
*/
|
|
9654
|
-
POST_PLAYER_CHANGE_STAT =
|
|
9745
|
+
POST_PLAYER_CHANGE_STAT = 63,
|
|
9655
9746
|
/**
|
|
9656
9747
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
9657
9748
|
* type
|
|
@@ -9674,7 +9765,7 @@ export declare enum ModCallbackCustom {
|
|
|
9674
9765
|
* ): void {}
|
|
9675
9766
|
* ```
|
|
9676
9767
|
*/
|
|
9677
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
9768
|
+
POST_PLAYER_CHANGE_TYPE = 64,
|
|
9678
9769
|
/**
|
|
9679
9770
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
9680
9771
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -9691,7 +9782,7 @@ export declare enum ModCallbackCustom {
|
|
|
9691
9782
|
* ): void {}
|
|
9692
9783
|
* ```
|
|
9693
9784
|
*/
|
|
9694
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
9785
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 65,
|
|
9695
9786
|
/**
|
|
9696
9787
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
9697
9788
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -9708,7 +9799,7 @@ export declare enum ModCallbackCustom {
|
|
|
9708
9799
|
* ): void {}
|
|
9709
9800
|
* ```
|
|
9710
9801
|
*/
|
|
9711
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
9802
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 66,
|
|
9712
9803
|
/**
|
|
9713
9804
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
9714
9805
|
* prevent the fatal damage.
|
|
@@ -9726,7 +9817,7 @@ export declare enum ModCallbackCustom {
|
|
|
9726
9817
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
9727
9818
|
* ```
|
|
9728
9819
|
*/
|
|
9729
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
9820
|
+
POST_PLAYER_FATAL_DAMAGE = 67,
|
|
9730
9821
|
/**
|
|
9731
9822
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
9732
9823
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -9748,7 +9839,7 @@ export declare enum ModCallbackCustom {
|
|
|
9748
9839
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
9749
9840
|
* ```
|
|
9750
9841
|
*/
|
|
9751
|
-
POST_PLAYER_INIT_FIRST =
|
|
9842
|
+
POST_PLAYER_INIT_FIRST = 68,
|
|
9752
9843
|
/**
|
|
9753
9844
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
9754
9845
|
*
|
|
@@ -9768,7 +9859,7 @@ export declare enum ModCallbackCustom {
|
|
|
9768
9859
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
9769
9860
|
* ```
|
|
9770
9861
|
*/
|
|
9771
|
-
POST_PLAYER_INIT_LATE =
|
|
9862
|
+
POST_PLAYER_INIT_LATE = 69,
|
|
9772
9863
|
/**
|
|
9773
9864
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
9774
9865
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -9792,7 +9883,7 @@ export declare enum ModCallbackCustom {
|
|
|
9792
9883
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
9793
9884
|
* ```
|
|
9794
9885
|
*/
|
|
9795
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
9886
|
+
POST_PLAYER_RENDER_REORDERED = 70,
|
|
9796
9887
|
/**
|
|
9797
9888
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
9798
9889
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -9817,7 +9908,7 @@ export declare enum ModCallbackCustom {
|
|
|
9817
9908
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
9818
9909
|
* ```
|
|
9819
9910
|
*/
|
|
9820
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
9911
|
+
POST_PLAYER_UPDATE_REORDERED = 71,
|
|
9821
9912
|
/**
|
|
9822
9913
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
9823
9914
|
*
|
|
@@ -9829,7 +9920,7 @@ export declare enum ModCallbackCustom {
|
|
|
9829
9920
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
9830
9921
|
* ```
|
|
9831
9922
|
*/
|
|
9832
|
-
POST_POOP_RENDER =
|
|
9923
|
+
POST_POOP_RENDER = 72,
|
|
9833
9924
|
/**
|
|
9834
9925
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
9835
9926
|
*
|
|
@@ -9841,7 +9932,7 @@ export declare enum ModCallbackCustom {
|
|
|
9841
9932
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
9842
9933
|
* ```
|
|
9843
9934
|
*/
|
|
9844
|
-
POST_POOP_UPDATE =
|
|
9935
|
+
POST_POOP_UPDATE = 73,
|
|
9845
9936
|
/**
|
|
9846
9937
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
9847
9938
|
*
|
|
@@ -9853,7 +9944,7 @@ export declare enum ModCallbackCustom {
|
|
|
9853
9944
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
9854
9945
|
* ```
|
|
9855
9946
|
*/
|
|
9856
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
9947
|
+
POST_PRESSURE_PLATE_RENDER = 74,
|
|
9857
9948
|
/**
|
|
9858
9949
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
9859
9950
|
*
|
|
@@ -9865,7 +9956,7 @@ export declare enum ModCallbackCustom {
|
|
|
9865
9956
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
9866
9957
|
* ```
|
|
9867
9958
|
*/
|
|
9868
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
9959
|
+
POST_PRESSURE_PLATE_UPDATE = 75,
|
|
9869
9960
|
/**
|
|
9870
9961
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
9871
9962
|
*
|
|
@@ -9882,7 +9973,7 @@ export declare enum ModCallbackCustom {
|
|
|
9882
9973
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
9883
9974
|
* ```
|
|
9884
9975
|
*/
|
|
9885
|
-
POST_PROJECTILE_INIT_LATE =
|
|
9976
|
+
POST_PROJECTILE_INIT_LATE = 76,
|
|
9886
9977
|
/**
|
|
9887
9978
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
9888
9979
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -9898,7 +9989,7 @@ export declare enum ModCallbackCustom {
|
|
|
9898
9989
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
9899
9990
|
* ```
|
|
9900
9991
|
*/
|
|
9901
|
-
POST_PURCHASE =
|
|
9992
|
+
POST_PURCHASE = 77,
|
|
9902
9993
|
/**
|
|
9903
9994
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
9904
9995
|
*
|
|
@@ -9912,7 +10003,7 @@ export declare enum ModCallbackCustom {
|
|
|
9912
10003
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
9913
10004
|
* ```
|
|
9914
10005
|
*/
|
|
9915
|
-
POST_ROCK_RENDER =
|
|
10006
|
+
POST_ROCK_RENDER = 78,
|
|
9916
10007
|
/**
|
|
9917
10008
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
9918
10009
|
*
|
|
@@ -9926,7 +10017,7 @@ export declare enum ModCallbackCustom {
|
|
|
9926
10017
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
9927
10018
|
* ```
|
|
9928
10019
|
*/
|
|
9929
|
-
POST_ROCK_UPDATE =
|
|
10020
|
+
POST_ROCK_UPDATE = 79,
|
|
9930
10021
|
/**
|
|
9931
10022
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
9932
10023
|
* the `Room.IsClear` method).
|
|
@@ -9943,7 +10034,7 @@ export declare enum ModCallbackCustom {
|
|
|
9943
10034
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
9944
10035
|
* ```
|
|
9945
10036
|
*/
|
|
9946
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
10037
|
+
POST_ROOM_CLEAR_CHANGED = 80,
|
|
9947
10038
|
/**
|
|
9948
10039
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
9949
10040
|
* Room.
|
|
@@ -9958,7 +10049,7 @@ export declare enum ModCallbackCustom {
|
|
|
9958
10049
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
9959
10050
|
* ```
|
|
9960
10051
|
*/
|
|
9961
|
-
POST_SACRIFICE =
|
|
10052
|
+
POST_SACRIFICE = 81,
|
|
9962
10053
|
/**
|
|
9963
10054
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
9964
10055
|
*
|
|
@@ -9972,7 +10063,7 @@ export declare enum ModCallbackCustom {
|
|
|
9972
10063
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
9973
10064
|
* ```
|
|
9974
10065
|
*/
|
|
9975
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
10066
|
+
POST_SLOT_ANIMATION_CHANGED = 82,
|
|
9976
10067
|
/**
|
|
9977
10068
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
9978
10069
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -9996,7 +10087,7 @@ export declare enum ModCallbackCustom {
|
|
|
9996
10087
|
* ): void {}
|
|
9997
10088
|
* ```
|
|
9998
10089
|
*/
|
|
9999
|
-
POST_SLOT_COLLISION =
|
|
10090
|
+
POST_SLOT_COLLISION = 83,
|
|
10000
10091
|
/**
|
|
10001
10092
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
10002
10093
|
* has broken.
|
|
@@ -10011,7 +10102,7 @@ export declare enum ModCallbackCustom {
|
|
|
10011
10102
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
10012
10103
|
* ```
|
|
10013
10104
|
*/
|
|
10014
|
-
POST_SLOT_DESTROYED =
|
|
10105
|
+
POST_SLOT_DESTROYED = 84,
|
|
10015
10106
|
/**
|
|
10016
10107
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
10017
10108
|
*
|
|
@@ -10030,7 +10121,7 @@ export declare enum ModCallbackCustom {
|
|
|
10030
10121
|
* function postSlotInit(slot: Entity): void {}
|
|
10031
10122
|
* ```
|
|
10032
10123
|
*/
|
|
10033
|
-
POST_SLOT_INIT =
|
|
10124
|
+
POST_SLOT_INIT = 85,
|
|
10034
10125
|
/**
|
|
10035
10126
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
10036
10127
|
*
|
|
@@ -10044,7 +10135,7 @@ export declare enum ModCallbackCustom {
|
|
|
10044
10135
|
* function postSlotRender(slot: Entity): void {}
|
|
10045
10136
|
* ```
|
|
10046
10137
|
*/
|
|
10047
|
-
POST_SLOT_RENDER =
|
|
10138
|
+
POST_SLOT_RENDER = 86,
|
|
10048
10139
|
/**
|
|
10049
10140
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
10050
10141
|
*
|
|
@@ -10058,7 +10149,7 @@ export declare enum ModCallbackCustom {
|
|
|
10058
10149
|
* function postSlotUpdate(slot: Entity): void {}
|
|
10059
10150
|
* ```
|
|
10060
10151
|
*/
|
|
10061
|
-
POST_SLOT_UPDATE =
|
|
10152
|
+
POST_SLOT_UPDATE = 87,
|
|
10062
10153
|
/**
|
|
10063
10154
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
10064
10155
|
*
|
|
@@ -10070,7 +10161,7 @@ export declare enum ModCallbackCustom {
|
|
|
10070
10161
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
10071
10162
|
* ```
|
|
10072
10163
|
*/
|
|
10073
|
-
POST_SPIKES_RENDER =
|
|
10164
|
+
POST_SPIKES_RENDER = 88,
|
|
10074
10165
|
/**
|
|
10075
10166
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
10076
10167
|
*
|
|
@@ -10082,7 +10173,7 @@ export declare enum ModCallbackCustom {
|
|
|
10082
10173
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
10083
10174
|
* ```
|
|
10084
10175
|
*/
|
|
10085
|
-
POST_SPIKES_UPDATE =
|
|
10176
|
+
POST_SPIKES_UPDATE = 89,
|
|
10086
10177
|
/**
|
|
10087
10178
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
10088
10179
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -10100,7 +10191,7 @@ export declare enum ModCallbackCustom {
|
|
|
10100
10191
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
10101
10192
|
* ```
|
|
10102
10193
|
*/
|
|
10103
|
-
POST_TEAR_INIT_LATE =
|
|
10194
|
+
POST_TEAR_INIT_LATE = 90,
|
|
10104
10195
|
/**
|
|
10105
10196
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
10106
10197
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -10117,7 +10208,7 @@ export declare enum ModCallbackCustom {
|
|
|
10117
10208
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
10118
10209
|
* ```
|
|
10119
10210
|
*/
|
|
10120
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
10211
|
+
POST_TEAR_INIT_VERY_LATE = 91,
|
|
10121
10212
|
/**
|
|
10122
10213
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
10123
10214
|
*
|
|
@@ -10129,7 +10220,7 @@ export declare enum ModCallbackCustom {
|
|
|
10129
10220
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
10130
10221
|
* ```
|
|
10131
10222
|
*/
|
|
10132
|
-
POST_TNT_RENDER =
|
|
10223
|
+
POST_TNT_RENDER = 92,
|
|
10133
10224
|
/**
|
|
10134
10225
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
10135
10226
|
*
|
|
@@ -10141,7 +10232,7 @@ export declare enum ModCallbackCustom {
|
|
|
10141
10232
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
10142
10233
|
* ```
|
|
10143
10234
|
*/
|
|
10144
|
-
POST_TNT_UPDATE =
|
|
10235
|
+
POST_TNT_UPDATE = 93,
|
|
10145
10236
|
/**
|
|
10146
10237
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
10147
10238
|
* transformation.
|
|
@@ -10160,7 +10251,7 @@ export declare enum ModCallbackCustom {
|
|
|
10160
10251
|
* ): void {}
|
|
10161
10252
|
* ```
|
|
10162
10253
|
*/
|
|
10163
|
-
POST_TRANSFORMATION =
|
|
10254
|
+
POST_TRANSFORMATION = 94,
|
|
10164
10255
|
/**
|
|
10165
10256
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
10166
10257
|
*
|
|
@@ -10175,7 +10266,7 @@ export declare enum ModCallbackCustom {
|
|
|
10175
10266
|
* ): void {}
|
|
10176
10267
|
* ```
|
|
10177
10268
|
*/
|
|
10178
|
-
POST_TRINKET_BREAK =
|
|
10269
|
+
POST_TRINKET_BREAK = 95,
|
|
10179
10270
|
/**
|
|
10180
10271
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
10181
10272
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -10191,7 +10282,7 @@ export declare enum ModCallbackCustom {
|
|
|
10191
10282
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
10192
10283
|
* ```
|
|
10193
10284
|
*/
|
|
10194
|
-
PRE_BERSERK_DEATH =
|
|
10285
|
+
PRE_BERSERK_DEATH = 96,
|
|
10195
10286
|
/**
|
|
10196
10287
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
10197
10288
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -10210,7 +10301,7 @@ export declare enum ModCallbackCustom {
|
|
|
10210
10301
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
10211
10302
|
* ```
|
|
10212
10303
|
*/
|
|
10213
|
-
PRE_CUSTOM_REVIVE =
|
|
10304
|
+
PRE_CUSTOM_REVIVE = 97,
|
|
10214
10305
|
/**
|
|
10215
10306
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
10216
10307
|
* meets all of the conditions to pick it up.
|
|
@@ -10230,7 +10321,7 @@ export declare enum ModCallbackCustom {
|
|
|
10230
10321
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
10231
10322
|
* ```
|
|
10232
10323
|
*/
|
|
10233
|
-
PRE_GET_PEDESTAL =
|
|
10324
|
+
PRE_GET_PEDESTAL = 98,
|
|
10234
10325
|
/**
|
|
10235
10326
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
10236
10327
|
* the player begins to hold the item above their head).
|
|
@@ -10250,7 +10341,7 @@ export declare enum ModCallbackCustom {
|
|
|
10250
10341
|
* ): void {}
|
|
10251
10342
|
* ```
|
|
10252
10343
|
*/
|
|
10253
|
-
PRE_ITEM_PICKUP =
|
|
10344
|
+
PRE_ITEM_PICKUP = 99,
|
|
10254
10345
|
/**
|
|
10255
10346
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
10256
10347
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -10264,7 +10355,7 @@ export declare enum ModCallbackCustom {
|
|
|
10264
10355
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
10265
10356
|
* ```
|
|
10266
10357
|
*/
|
|
10267
|
-
PRE_NEW_LEVEL =
|
|
10358
|
+
PRE_NEW_LEVEL = 100,
|
|
10268
10359
|
/**
|
|
10269
10360
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
10270
10361
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10276,8 +10367,16 @@ export declare enum ModCallbackCustom {
|
|
|
10276
10367
|
* matches the variant provided.
|
|
10277
10368
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
10278
10369
|
* matches the sub-type provided.
|
|
10370
|
+
*
|
|
10371
|
+
* ```ts
|
|
10372
|
+
* function preNPCCollisionFilter(
|
|
10373
|
+
* npc: EntityNPC,
|
|
10374
|
+
* collider: Entity,
|
|
10375
|
+
* low: boolean,
|
|
10376
|
+
* ): boolean | undefined {}
|
|
10377
|
+
* ```
|
|
10279
10378
|
*/
|
|
10280
|
-
PRE_NPC_COLLISION_FILTER =
|
|
10379
|
+
PRE_NPC_COLLISION_FILTER = 101,
|
|
10281
10380
|
/**
|
|
10282
10381
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
10283
10382
|
* to specify extra arguments for additional filtration.
|
|
@@ -10289,8 +10388,12 @@ export declare enum ModCallbackCustom {
|
|
|
10289
10388
|
* matches the variant provided.
|
|
10290
10389
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
10291
10390
|
* matches the sub-type provided.
|
|
10391
|
+
*
|
|
10392
|
+
* ```ts
|
|
10393
|
+
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
10394
|
+
* ```
|
|
10292
10395
|
*/
|
|
10293
|
-
PRE_NPC_UPDATE_FILTER =
|
|
10396
|
+
PRE_NPC_UPDATE_FILTER = 102
|
|
10294
10397
|
}
|
|
10295
10398
|
|
|
10296
10399
|
/**
|