isaacscript-common 15.4.1 → 15.4.2
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 +190 -95
- package/dist/isaacscript-common.lua +1007 -547
- package/dist/src/callbackClasses.d.ts +101 -0
- package/dist/src/callbackClasses.d.ts.map +1 -0
- package/dist/src/callbackClasses.lua +502 -0
- package/dist/src/callbacks.d.ts +101 -190
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +101 -285
- package/dist/src/classes/callbacks/EntityTakeDmgFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/EntityTakeDmgFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/EntityTakeDmgFilter.lua +27 -0
- package/dist/src/classes/callbacks/PostNPCDeathFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostNPCDeathFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostNPCDeathFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostNPCRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostNPCRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostNPCRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PreNPCCollisionFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreNPCCollisionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreNPCCollisionFilter.lua +21 -0
- package/dist/src/classes/callbacks/PreNPCUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreNPCUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreNPCUpdateFilter.lua +21 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +160 -95
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +105 -95
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +30 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +8 -1
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/dist/src/shouldFire.lua +5 -0
- package/package.json +1 -1
- package/src/callbackClasses.ts +103 -0
- package/src/callbacks.ts +105 -190
- package/src/classes/callbacks/EntityTakeDmgFilter.ts +25 -0
- package/src/classes/callbacks/PostNPCDeathFilter.ts +21 -0
- package/src/classes/callbacks/PostNPCRenderFilter.ts +21 -0
- package/src/classes/callbacks/PreNPCCollisionFilter.ts +20 -0
- package/src/classes/callbacks/PreNPCUpdateFilter.ts +19 -0
- package/src/enums/ModCallbackCustom.ts +70 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +45 -0
- package/src/shouldFire.ts +25 -1
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,12 @@ export declare const ADD_CALLBACK_ARGS_KEY = "__addCallbackArgs";
|
|
|
84
84
|
export declare const ADD_CALLBACK_CUSTOM_ARGS_KEY = "__addCallbackCustomArgs";
|
|
85
85
|
|
|
86
86
|
declare interface AddCallbackParametersCustom {
|
|
87
|
+
[ModCallbackCustom.ENTITY_TAKE_DMG_FILTER]: [
|
|
88
|
+
callback: (entity: Entity, amount: float, damageFlags: BitFlags<DamageFlag>, source: EntityRef, countdownFrames: int) => boolean | undefined,
|
|
89
|
+
entityType?: EntityType,
|
|
90
|
+
variant?: number,
|
|
91
|
+
subType?: number
|
|
92
|
+
];
|
|
87
93
|
[ModCallbackCustom.POST_AMBUSH_FINISHED]: [
|
|
88
94
|
callback: (ambushType: AmbushType) => void,
|
|
89
95
|
ambushType?: AmbushType
|
|
@@ -271,6 +277,12 @@ declare interface AddCallbackParametersCustom {
|
|
|
271
277
|
[ModCallbackCustom.POST_NEW_LEVEL_REORDERED]: [callback: () => void];
|
|
272
278
|
[ModCallbackCustom.POST_NEW_ROOM_EARLY]: [callback: () => void];
|
|
273
279
|
[ModCallbackCustom.POST_NEW_ROOM_REORDERED]: [callback: () => void];
|
|
280
|
+
[ModCallbackCustom.POST_NPC_DEATH_FILTER]: [
|
|
281
|
+
callback: (npc: EntityNPC) => void,
|
|
282
|
+
entityType?: EntityType,
|
|
283
|
+
variant?: int,
|
|
284
|
+
subType?: int
|
|
285
|
+
];
|
|
274
286
|
[ModCallbackCustom.POST_NPC_INIT_FILTER]: [
|
|
275
287
|
callback: (npc: EntityNPC) => void,
|
|
276
288
|
entityType?: EntityType,
|
|
@@ -283,6 +295,12 @@ declare interface AddCallbackParametersCustom {
|
|
|
283
295
|
variant?: int,
|
|
284
296
|
subType?: int
|
|
285
297
|
];
|
|
298
|
+
[ModCallbackCustom.POST_NPC_RENDER_FILTER]: [
|
|
299
|
+
callback: (npc: EntityNPC, renderOffset: Vector) => void,
|
|
300
|
+
entityType?: EntityType,
|
|
301
|
+
variant?: int,
|
|
302
|
+
subType?: int
|
|
303
|
+
];
|
|
286
304
|
[ModCallbackCustom.POST_NPC_STATE_CHANGED]: [
|
|
287
305
|
callback: (npc: EntityNPC, previousState: int, currentState: int) => void,
|
|
288
306
|
entityType?: EntityType,
|
|
@@ -508,6 +526,18 @@ declare interface AddCallbackParametersCustom {
|
|
|
508
526
|
trinketType?: TrinketType
|
|
509
527
|
];
|
|
510
528
|
[ModCallbackCustom.PRE_NEW_LEVEL]: [callback: (player: EntityPlayer) => void];
|
|
529
|
+
[ModCallbackCustom.PRE_NPC_COLLISION_FILTER]: [
|
|
530
|
+
callback: (npc: EntityNPC, collider: Entity, low: boolean) => undefined | boolean,
|
|
531
|
+
entityType?: EntityType,
|
|
532
|
+
variant?: int,
|
|
533
|
+
subType?: int
|
|
534
|
+
];
|
|
535
|
+
[ModCallbackCustom.PRE_NPC_UPDATE_FILTER]: [
|
|
536
|
+
callback: (npc: EntityNPC) => undefined | boolean,
|
|
537
|
+
entityType?: EntityType,
|
|
538
|
+
variant?: int,
|
|
539
|
+
subType?: int
|
|
540
|
+
];
|
|
511
541
|
}
|
|
512
542
|
|
|
513
543
|
/**
|
|
@@ -8504,6 +8534,19 @@ export declare const MINUTE_IN_MILLISECONDS: number;
|
|
|
8504
8534
|
* - You must upgrade your mod with the `upgradeMod` helper function before using a custom callback.
|
|
8505
8535
|
*/
|
|
8506
8536
|
export declare enum ModCallbackCustom {
|
|
8537
|
+
/**
|
|
8538
|
+
* The exact same thing as the vanilla `ENTITY_TAKE_DMG` callback, except this callback allows you
|
|
8539
|
+
* to specify extra arguments for additional filtration.
|
|
8540
|
+
*
|
|
8541
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8542
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8543
|
+
* matches the `EntityType` provided.
|
|
8544
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8545
|
+
* matches the variant provided.
|
|
8546
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
8547
|
+
* matches the sub-type provided.
|
|
8548
|
+
*/
|
|
8549
|
+
ENTITY_TAKE_DMG_FILTER = 0,
|
|
8507
8550
|
/**
|
|
8508
8551
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
|
|
8509
8552
|
* Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
|
|
@@ -8516,7 +8559,7 @@ export declare enum ModCallbackCustom {
|
|
|
8516
8559
|
* function postAmbushFinished(ambushType: AmbushType): void {}
|
|
8517
8560
|
* ```
|
|
8518
8561
|
*/
|
|
8519
|
-
POST_AMBUSH_FINISHED =
|
|
8562
|
+
POST_AMBUSH_FINISHED = 1,
|
|
8520
8563
|
/**
|
|
8521
8564
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
|
|
8522
8565
|
* Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
|
|
@@ -8529,7 +8572,7 @@ export declare enum ModCallbackCustom {
|
|
|
8529
8572
|
* function postAmbushStarted(ambushType: AmbushType): void {}
|
|
8530
8573
|
* ```
|
|
8531
8574
|
*/
|
|
8532
|
-
POST_AMBUSH_STARTED =
|
|
8575
|
+
POST_AMBUSH_STARTED = 2,
|
|
8533
8576
|
/**
|
|
8534
8577
|
* Fires on the `POST_BOMB_UPDATE` callback that it explodes.
|
|
8535
8578
|
*
|
|
@@ -8543,7 +8586,7 @@ export declare enum ModCallbackCustom {
|
|
|
8543
8586
|
* function postBombDetonated(bomb: EntityBomb): void {}
|
|
8544
8587
|
* ```
|
|
8545
8588
|
*/
|
|
8546
|
-
POST_BOMB_EXPLODED =
|
|
8589
|
+
POST_BOMB_EXPLODED = 3,
|
|
8547
8590
|
/**
|
|
8548
8591
|
* Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
|
|
8549
8592
|
*
|
|
@@ -8560,7 +8603,7 @@ export declare enum ModCallbackCustom {
|
|
|
8560
8603
|
* function postBombInitLate(bomb: EntityBomb): void {}
|
|
8561
8604
|
* ```
|
|
8562
8605
|
*/
|
|
8563
|
-
POST_BOMB_INIT_LATE =
|
|
8606
|
+
POST_BOMB_INIT_LATE = 4,
|
|
8564
8607
|
/**
|
|
8565
8608
|
* Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
|
|
8566
8609
|
*
|
|
@@ -8568,7 +8611,7 @@ export declare enum ModCallbackCustom {
|
|
|
8568
8611
|
* function postBoneSwing(boneClub: EntityKnife): void {}
|
|
8569
8612
|
* ```
|
|
8570
8613
|
*/
|
|
8571
|
-
POST_BONE_SWING =
|
|
8614
|
+
POST_BONE_SWING = 5,
|
|
8572
8615
|
/**
|
|
8573
8616
|
* Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
|
|
8574
8617
|
* to `CollectibleType.NULL` (i.e. an "empty" pedestal).
|
|
@@ -8584,7 +8627,7 @@ export declare enum ModCallbackCustom {
|
|
|
8584
8627
|
* ): void {}
|
|
8585
8628
|
* ```
|
|
8586
8629
|
*/
|
|
8587
|
-
POST_COLLECTIBLE_EMPTY =
|
|
8630
|
+
POST_COLLECTIBLE_EMPTY = 6,
|
|
8588
8631
|
/**
|
|
8589
8632
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
8590
8633
|
* respective collectible on the run. For more details on how this is calculated, see the
|
|
@@ -8602,7 +8645,7 @@ export declare enum ModCallbackCustom {
|
|
|
8602
8645
|
* function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
|
|
8603
8646
|
* ```
|
|
8604
8647
|
*/
|
|
8605
|
-
POST_COLLECTIBLE_INIT_FIRST =
|
|
8648
|
+
POST_COLLECTIBLE_INIT_FIRST = 7,
|
|
8606
8649
|
/**
|
|
8607
8650
|
* Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
|
|
8608
8651
|
* begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
|
|
@@ -8618,7 +8661,7 @@ export declare enum ModCallbackCustom {
|
|
|
8618
8661
|
* function postCursedTeleport(player: EntityPlayer): void {}
|
|
8619
8662
|
* ```
|
|
8620
8663
|
*/
|
|
8621
|
-
POST_CURSED_TELEPORT =
|
|
8664
|
+
POST_CURSED_TELEPORT = 8,
|
|
8622
8665
|
/**
|
|
8623
8666
|
* Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
|
|
8624
8667
|
* has teleported to the previous room, and is ready to play the animation for the modded revival
|
|
@@ -8636,7 +8679,7 @@ export declare enum ModCallbackCustom {
|
|
|
8636
8679
|
* function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
|
|
8637
8680
|
* ```
|
|
8638
8681
|
*/
|
|
8639
|
-
POST_CUSTOM_REVIVE =
|
|
8682
|
+
POST_CUSTOM_REVIVE = 9,
|
|
8640
8683
|
/**
|
|
8641
8684
|
* Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
|
|
8642
8685
|
* Room floor.
|
|
@@ -8652,7 +8695,7 @@ export declare enum ModCallbackCustom {
|
|
|
8652
8695
|
* ): void {}
|
|
8653
8696
|
* ```
|
|
8654
8697
|
*/
|
|
8655
|
-
POST_DICE_ROOM_ACTIVATED =
|
|
8698
|
+
POST_DICE_ROOM_ACTIVATED = 10,
|
|
8656
8699
|
/**
|
|
8657
8700
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
8658
8701
|
*
|
|
@@ -8664,7 +8707,7 @@ export declare enum ModCallbackCustom {
|
|
|
8664
8707
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
8665
8708
|
* ```
|
|
8666
8709
|
*/
|
|
8667
|
-
POST_DOOR_RENDER =
|
|
8710
|
+
POST_DOOR_RENDER = 11,
|
|
8668
8711
|
/**
|
|
8669
8712
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
8670
8713
|
*
|
|
@@ -8676,7 +8719,7 @@ export declare enum ModCallbackCustom {
|
|
|
8676
8719
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
8677
8720
|
* ```
|
|
8678
8721
|
*/
|
|
8679
|
-
POST_DOOR_UPDATE =
|
|
8722
|
+
POST_DOOR_UPDATE = 12,
|
|
8680
8723
|
/**
|
|
8681
8724
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
8682
8725
|
*
|
|
@@ -8693,7 +8736,7 @@ export declare enum ModCallbackCustom {
|
|
|
8693
8736
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
8694
8737
|
* ```
|
|
8695
8738
|
*/
|
|
8696
|
-
POST_EFFECT_INIT_LATE =
|
|
8739
|
+
POST_EFFECT_INIT_LATE = 13,
|
|
8697
8740
|
/**
|
|
8698
8741
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
8699
8742
|
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
@@ -8712,7 +8755,7 @@ export declare enum ModCallbackCustom {
|
|
|
8712
8755
|
* ): void {}
|
|
8713
8756
|
* ```
|
|
8714
8757
|
*/
|
|
8715
|
-
POST_EFFECT_STATE_CHANGED =
|
|
8758
|
+
POST_EFFECT_STATE_CHANGED = 14,
|
|
8716
8759
|
/**
|
|
8717
8760
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
8718
8761
|
* updated to the new character until a game frame has passed.)
|
|
@@ -8721,7 +8764,7 @@ export declare enum ModCallbackCustom {
|
|
|
8721
8764
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
8722
8765
|
* ```
|
|
8723
8766
|
*/
|
|
8724
|
-
POST_ESAU_JR =
|
|
8767
|
+
POST_ESAU_JR = 15,
|
|
8725
8768
|
/**
|
|
8726
8769
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
8727
8770
|
*
|
|
@@ -8738,7 +8781,7 @@ export declare enum ModCallbackCustom {
|
|
|
8738
8781
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
8739
8782
|
* ```
|
|
8740
8783
|
*/
|
|
8741
|
-
POST_FAMILIAR_INIT_LATE =
|
|
8784
|
+
POST_FAMILIAR_INIT_LATE = 16,
|
|
8742
8785
|
/**
|
|
8743
8786
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
8744
8787
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -8758,7 +8801,7 @@ export declare enum ModCallbackCustom {
|
|
|
8758
8801
|
* ): void {}
|
|
8759
8802
|
* ```
|
|
8760
8803
|
*/
|
|
8761
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
8804
|
+
POST_FAMILIAR_STATE_CHANGED = 17,
|
|
8762
8805
|
/**
|
|
8763
8806
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
8764
8807
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -8770,7 +8813,7 @@ export declare enum ModCallbackCustom {
|
|
|
8770
8813
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
8771
8814
|
* ```
|
|
8772
8815
|
*/
|
|
8773
|
-
POST_FIRST_ESAU_JR =
|
|
8816
|
+
POST_FIRST_ESAU_JR = 18,
|
|
8774
8817
|
/**
|
|
8775
8818
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
8776
8819
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -8783,7 +8826,7 @@ export declare enum ModCallbackCustom {
|
|
|
8783
8826
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
8784
8827
|
* ```
|
|
8785
8828
|
*/
|
|
8786
|
-
POST_FIRST_FLIP =
|
|
8829
|
+
POST_FIRST_FLIP = 19,
|
|
8787
8830
|
/**
|
|
8788
8831
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
8789
8832
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -8796,7 +8839,7 @@ export declare enum ModCallbackCustom {
|
|
|
8796
8839
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
8797
8840
|
* ```
|
|
8798
8841
|
*/
|
|
8799
|
-
POST_FLIP =
|
|
8842
|
+
POST_FLIP = 20,
|
|
8800
8843
|
/**
|
|
8801
8844
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
8802
8845
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -8807,7 +8850,7 @@ export declare enum ModCallbackCustom {
|
|
|
8807
8850
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
8808
8851
|
* ```
|
|
8809
8852
|
*/
|
|
8810
|
-
POST_GAME_STARTED_REORDERED =
|
|
8853
|
+
POST_GAME_STARTED_REORDERED = 21,
|
|
8811
8854
|
/**
|
|
8812
8855
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
8813
8856
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -8818,7 +8861,7 @@ export declare enum ModCallbackCustom {
|
|
|
8818
8861
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
8819
8862
|
* ```
|
|
8820
8863
|
*/
|
|
8821
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
8864
|
+
POST_GAME_STARTED_REORDERED_LAST = 22,
|
|
8822
8865
|
/**
|
|
8823
8866
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
8824
8867
|
*
|
|
@@ -8826,7 +8869,7 @@ export declare enum ModCallbackCustom {
|
|
|
8826
8869
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
8827
8870
|
* ```
|
|
8828
8871
|
*/
|
|
8829
|
-
POST_GREED_MODE_WAVE =
|
|
8872
|
+
POST_GREED_MODE_WAVE = 23,
|
|
8830
8873
|
/**
|
|
8831
8874
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
8832
8875
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -8845,7 +8888,7 @@ export declare enum ModCallbackCustom {
|
|
|
8845
8888
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
8846
8889
|
* ```
|
|
8847
8890
|
*/
|
|
8848
|
-
POST_GRID_ENTITY_BROKEN =
|
|
8891
|
+
POST_GRID_ENTITY_BROKEN = 24,
|
|
8849
8892
|
/**
|
|
8850
8893
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
8851
8894
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -8873,7 +8916,7 @@ export declare enum ModCallbackCustom {
|
|
|
8873
8916
|
* ): void {}
|
|
8874
8917
|
* ```
|
|
8875
8918
|
*/
|
|
8876
|
-
POST_GRID_ENTITY_COLLISION =
|
|
8919
|
+
POST_GRID_ENTITY_COLLISION = 25,
|
|
8877
8920
|
/**
|
|
8878
8921
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
8879
8922
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -8890,7 +8933,7 @@ export declare enum ModCallbackCustom {
|
|
|
8890
8933
|
* ): void {}
|
|
8891
8934
|
* ```
|
|
8892
8935
|
*/
|
|
8893
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
8936
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 26,
|
|
8894
8937
|
/**
|
|
8895
8938
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
8896
8939
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -8914,7 +8957,7 @@ export declare enum ModCallbackCustom {
|
|
|
8914
8957
|
* ): void {}
|
|
8915
8958
|
* ```
|
|
8916
8959
|
*/
|
|
8917
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
8960
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 27,
|
|
8918
8961
|
/**
|
|
8919
8962
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
8920
8963
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -8931,7 +8974,7 @@ export declare enum ModCallbackCustom {
|
|
|
8931
8974
|
* ): void {}
|
|
8932
8975
|
* ```
|
|
8933
8976
|
*/
|
|
8934
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
8977
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 28,
|
|
8935
8978
|
/**
|
|
8936
8979
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
8937
8980
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -8948,7 +8991,7 @@ export declare enum ModCallbackCustom {
|
|
|
8948
8991
|
* ): void {}
|
|
8949
8992
|
* ```
|
|
8950
8993
|
*/
|
|
8951
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
8994
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 29,
|
|
8952
8995
|
/**
|
|
8953
8996
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
8954
8997
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -8965,7 +9008,7 @@ export declare enum ModCallbackCustom {
|
|
|
8965
9008
|
* ): void {}
|
|
8966
9009
|
* ```
|
|
8967
9010
|
*/
|
|
8968
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
9011
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 30,
|
|
8969
9012
|
/**
|
|
8970
9013
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
8971
9014
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -8984,7 +9027,7 @@ export declare enum ModCallbackCustom {
|
|
|
8984
9027
|
* ): void {}
|
|
8985
9028
|
* ```
|
|
8986
9029
|
*/
|
|
8987
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
9030
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 31,
|
|
8988
9031
|
/**
|
|
8989
9032
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
8990
9033
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9001,7 +9044,7 @@ export declare enum ModCallbackCustom {
|
|
|
9001
9044
|
* ): void {}
|
|
9002
9045
|
* ```
|
|
9003
9046
|
*/
|
|
9004
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
9047
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 32,
|
|
9005
9048
|
/**
|
|
9006
9049
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
9007
9050
|
*
|
|
@@ -9023,7 +9066,7 @@ export declare enum ModCallbackCustom {
|
|
|
9023
9066
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
9024
9067
|
* ```
|
|
9025
9068
|
*/
|
|
9026
|
-
POST_GRID_ENTITY_INIT =
|
|
9069
|
+
POST_GRID_ENTITY_INIT = 33,
|
|
9027
9070
|
/**
|
|
9028
9071
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
9029
9072
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -9048,7 +9091,7 @@ export declare enum ModCallbackCustom {
|
|
|
9048
9091
|
* ): void {}
|
|
9049
9092
|
* ```
|
|
9050
9093
|
*/
|
|
9051
|
-
POST_GRID_ENTITY_REMOVE =
|
|
9094
|
+
POST_GRID_ENTITY_REMOVE = 34,
|
|
9052
9095
|
/**
|
|
9053
9096
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
9054
9097
|
*
|
|
@@ -9065,7 +9108,7 @@ export declare enum ModCallbackCustom {
|
|
|
9065
9108
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
9066
9109
|
* ```
|
|
9067
9110
|
*/
|
|
9068
|
-
POST_GRID_ENTITY_RENDER =
|
|
9111
|
+
POST_GRID_ENTITY_RENDER = 35,
|
|
9069
9112
|
/**
|
|
9070
9113
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
9071
9114
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -9087,7 +9130,7 @@ export declare enum ModCallbackCustom {
|
|
|
9087
9130
|
* ): void {}
|
|
9088
9131
|
* ```
|
|
9089
9132
|
*/
|
|
9090
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
9133
|
+
POST_GRID_ENTITY_STATE_CHANGED = 36,
|
|
9091
9134
|
/**
|
|
9092
9135
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
9093
9136
|
*
|
|
@@ -9104,7 +9147,7 @@ export declare enum ModCallbackCustom {
|
|
|
9104
9147
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
9105
9148
|
* ```
|
|
9106
9149
|
*/
|
|
9107
|
-
POST_GRID_ENTITY_UPDATE =
|
|
9150
|
+
POST_GRID_ENTITY_UPDATE = 37,
|
|
9108
9151
|
/**
|
|
9109
9152
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
9110
9153
|
* temporary collectible effect.
|
|
@@ -9127,7 +9170,7 @@ export declare enum ModCallbackCustom {
|
|
|
9127
9170
|
* ): void {}
|
|
9128
9171
|
* ```
|
|
9129
9172
|
*/
|
|
9130
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
9173
|
+
POST_HOLY_MANTLE_REMOVED = 38,
|
|
9131
9174
|
/**
|
|
9132
9175
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
9133
9176
|
* active collectible item, implying that the item was just used.
|
|
@@ -9150,7 +9193,7 @@ export declare enum ModCallbackCustom {
|
|
|
9150
9193
|
* ): void {}
|
|
9151
9194
|
* ```
|
|
9152
9195
|
*/
|
|
9153
|
-
POST_ITEM_DISCHARGE =
|
|
9196
|
+
POST_ITEM_DISCHARGE = 39,
|
|
9154
9197
|
/**
|
|
9155
9198
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
9156
9199
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -9171,7 +9214,7 @@ export declare enum ModCallbackCustom {
|
|
|
9171
9214
|
* ): void {}
|
|
9172
9215
|
* ```
|
|
9173
9216
|
*/
|
|
9174
|
-
POST_ITEM_PICKUP =
|
|
9217
|
+
POST_ITEM_PICKUP = 40,
|
|
9175
9218
|
/**
|
|
9176
9219
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
9177
9220
|
*
|
|
@@ -9188,7 +9231,7 @@ export declare enum ModCallbackCustom {
|
|
|
9188
9231
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
9189
9232
|
* ```
|
|
9190
9233
|
*/
|
|
9191
|
-
POST_KNIFE_INIT_LATE =
|
|
9234
|
+
POST_KNIFE_INIT_LATE = 41,
|
|
9192
9235
|
/**
|
|
9193
9236
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
9194
9237
|
*
|
|
@@ -9205,7 +9248,7 @@ export declare enum ModCallbackCustom {
|
|
|
9205
9248
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
9206
9249
|
* ```
|
|
9207
9250
|
*/
|
|
9208
|
-
POST_LASER_INIT_LATE =
|
|
9251
|
+
POST_LASER_INIT_LATE = 42,
|
|
9209
9252
|
/**
|
|
9210
9253
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
9211
9254
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -9222,7 +9265,7 @@ export declare enum ModCallbackCustom {
|
|
|
9222
9265
|
* function postNewLevelReordered(): void {}
|
|
9223
9266
|
* ```
|
|
9224
9267
|
*/
|
|
9225
|
-
POST_NEW_LEVEL_REORDERED =
|
|
9268
|
+
POST_NEW_LEVEL_REORDERED = 43,
|
|
9226
9269
|
/**
|
|
9227
9270
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
9228
9271
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -9233,7 +9276,7 @@ export declare enum ModCallbackCustom {
|
|
|
9233
9276
|
* function postNewRoomEarly(): void {}
|
|
9234
9277
|
* ```
|
|
9235
9278
|
*/
|
|
9236
|
-
POST_NEW_ROOM_EARLY =
|
|
9279
|
+
POST_NEW_ROOM_EARLY = 44,
|
|
9237
9280
|
/**
|
|
9238
9281
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
9239
9282
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -9250,7 +9293,20 @@ export declare enum ModCallbackCustom {
|
|
|
9250
9293
|
* function postNewRoomReordered(): void {}
|
|
9251
9294
|
* ```
|
|
9252
9295
|
*/
|
|
9253
|
-
POST_NEW_ROOM_REORDERED =
|
|
9296
|
+
POST_NEW_ROOM_REORDERED = 45,
|
|
9297
|
+
/**
|
|
9298
|
+
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
9299
|
+
* to specify extra arguments for additional filtration.
|
|
9300
|
+
*
|
|
9301
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9302
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9303
|
+
* matches the `EntityType` provided.
|
|
9304
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9305
|
+
* matches the variant provided.
|
|
9306
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9307
|
+
* matches the sub-type provided.
|
|
9308
|
+
*/
|
|
9309
|
+
POST_NPC_DEATH_FILTER = 46,
|
|
9254
9310
|
/**
|
|
9255
9311
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
9256
9312
|
* to specify extra arguments for additional filtration.
|
|
@@ -9263,7 +9319,7 @@ export declare enum ModCallbackCustom {
|
|
|
9263
9319
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9264
9320
|
* matches the sub-type provided.
|
|
9265
9321
|
*/
|
|
9266
|
-
POST_NPC_INIT_FILTER =
|
|
9322
|
+
POST_NPC_INIT_FILTER = 47,
|
|
9267
9323
|
/**
|
|
9268
9324
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
9269
9325
|
*
|
|
@@ -9282,7 +9338,20 @@ export declare enum ModCallbackCustom {
|
|
|
9282
9338
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
9283
9339
|
* ```
|
|
9284
9340
|
*/
|
|
9285
|
-
POST_NPC_INIT_LATE =
|
|
9341
|
+
POST_NPC_INIT_LATE = 48,
|
|
9342
|
+
/**
|
|
9343
|
+
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
9344
|
+
* to specify extra arguments for additional filtration.
|
|
9345
|
+
*
|
|
9346
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9347
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9348
|
+
* matches the `EntityType` provided.
|
|
9349
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9350
|
+
* matches the variant provided.
|
|
9351
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9352
|
+
* matches the sub-type provided.
|
|
9353
|
+
*/
|
|
9354
|
+
POST_NPC_RENDER_FILTER = 49,
|
|
9286
9355
|
/**
|
|
9287
9356
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
9288
9357
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -9303,7 +9372,7 @@ export declare enum ModCallbackCustom {
|
|
|
9303
9372
|
* ): void {}
|
|
9304
9373
|
* ```
|
|
9305
9374
|
*/
|
|
9306
|
-
POST_NPC_STATE_CHANGED =
|
|
9375
|
+
POST_NPC_STATE_CHANGED = 50,
|
|
9307
9376
|
/**
|
|
9308
9377
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
9309
9378
|
* to specify extra arguments for additional filtration.
|
|
@@ -9316,7 +9385,7 @@ export declare enum ModCallbackCustom {
|
|
|
9316
9385
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9317
9386
|
* matches the sub-type provided.
|
|
9318
9387
|
*/
|
|
9319
|
-
POST_NPC_UPDATE_FILTER =
|
|
9388
|
+
POST_NPC_UPDATE_FILTER = 51,
|
|
9320
9389
|
/**
|
|
9321
9390
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
9322
9391
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -9341,7 +9410,7 @@ export declare enum ModCallbackCustom {
|
|
|
9341
9410
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
9342
9411
|
* ```
|
|
9343
9412
|
*/
|
|
9344
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
9413
|
+
POST_PEFFECT_UPDATE_REORDERED = 52,
|
|
9345
9414
|
/**
|
|
9346
9415
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
9347
9416
|
*
|
|
@@ -9357,7 +9426,7 @@ export declare enum ModCallbackCustom {
|
|
|
9357
9426
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
9358
9427
|
* ```
|
|
9359
9428
|
*/
|
|
9360
|
-
POST_PICKUP_COLLECT =
|
|
9429
|
+
POST_PICKUP_COLLECT = 53,
|
|
9361
9430
|
/**
|
|
9362
9431
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
9363
9432
|
* respective pickup on the run.
|
|
@@ -9375,7 +9444,7 @@ export declare enum ModCallbackCustom {
|
|
|
9375
9444
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
9376
9445
|
* ```
|
|
9377
9446
|
*/
|
|
9378
|
-
POST_PICKUP_INIT_FIRST =
|
|
9447
|
+
POST_PICKUP_INIT_FIRST = 54,
|
|
9379
9448
|
/**
|
|
9380
9449
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
9381
9450
|
*
|
|
@@ -9392,7 +9461,7 @@ export declare enum ModCallbackCustom {
|
|
|
9392
9461
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
9393
9462
|
* ```
|
|
9394
9463
|
*/
|
|
9395
|
-
POST_PICKUP_INIT_LATE =
|
|
9464
|
+
POST_PICKUP_INIT_LATE = 55,
|
|
9396
9465
|
/**
|
|
9397
9466
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
9398
9467
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -9411,7 +9480,7 @@ export declare enum ModCallbackCustom {
|
|
|
9411
9480
|
* ): void {}
|
|
9412
9481
|
* ```
|
|
9413
9482
|
*/
|
|
9414
|
-
POST_PICKUP_STATE_CHANGED =
|
|
9483
|
+
POST_PICKUP_STATE_CHANGED = 56,
|
|
9415
9484
|
/**
|
|
9416
9485
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
9417
9486
|
*
|
|
@@ -9423,7 +9492,7 @@ export declare enum ModCallbackCustom {
|
|
|
9423
9492
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
9424
9493
|
* ```
|
|
9425
9494
|
*/
|
|
9426
|
-
POST_PIT_RENDER =
|
|
9495
|
+
POST_PIT_RENDER = 57,
|
|
9427
9496
|
/**
|
|
9428
9497
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
9429
9498
|
*
|
|
@@ -9435,7 +9504,7 @@ export declare enum ModCallbackCustom {
|
|
|
9435
9504
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
9436
9505
|
* ```
|
|
9437
9506
|
*/
|
|
9438
|
-
POST_PIT_UPDATE =
|
|
9507
|
+
POST_PIT_UPDATE = 58,
|
|
9439
9508
|
/**
|
|
9440
9509
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
9441
9510
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -9457,7 +9526,7 @@ export declare enum ModCallbackCustom {
|
|
|
9457
9526
|
* ): void {}
|
|
9458
9527
|
* ```
|
|
9459
9528
|
*/
|
|
9460
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
9529
|
+
POST_PLAYER_CHANGE_HEALTH = 59,
|
|
9461
9530
|
/**
|
|
9462
9531
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
9463
9532
|
* from what they were on the previous frame.
|
|
@@ -9487,7 +9556,7 @@ export declare enum ModCallbackCustom {
|
|
|
9487
9556
|
* ) => void {}
|
|
9488
9557
|
* ```
|
|
9489
9558
|
*/
|
|
9490
|
-
POST_PLAYER_CHANGE_STAT =
|
|
9559
|
+
POST_PLAYER_CHANGE_STAT = 60,
|
|
9491
9560
|
/**
|
|
9492
9561
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
9493
9562
|
* type
|
|
@@ -9510,7 +9579,7 @@ export declare enum ModCallbackCustom {
|
|
|
9510
9579
|
* ): void {}
|
|
9511
9580
|
* ```
|
|
9512
9581
|
*/
|
|
9513
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
9582
|
+
POST_PLAYER_CHANGE_TYPE = 61,
|
|
9514
9583
|
/**
|
|
9515
9584
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
9516
9585
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -9527,7 +9596,7 @@ export declare enum ModCallbackCustom {
|
|
|
9527
9596
|
* ): void {}
|
|
9528
9597
|
* ```
|
|
9529
9598
|
*/
|
|
9530
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
9599
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 62,
|
|
9531
9600
|
/**
|
|
9532
9601
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
9533
9602
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -9544,7 +9613,7 @@ export declare enum ModCallbackCustom {
|
|
|
9544
9613
|
* ): void {}
|
|
9545
9614
|
* ```
|
|
9546
9615
|
*/
|
|
9547
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
9616
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 63,
|
|
9548
9617
|
/**
|
|
9549
9618
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
9550
9619
|
* prevent the fatal damage.
|
|
@@ -9562,7 +9631,7 @@ export declare enum ModCallbackCustom {
|
|
|
9562
9631
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
9563
9632
|
* ```
|
|
9564
9633
|
*/
|
|
9565
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
9634
|
+
POST_PLAYER_FATAL_DAMAGE = 64,
|
|
9566
9635
|
/**
|
|
9567
9636
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
9568
9637
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -9584,7 +9653,7 @@ export declare enum ModCallbackCustom {
|
|
|
9584
9653
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
9585
9654
|
* ```
|
|
9586
9655
|
*/
|
|
9587
|
-
POST_PLAYER_INIT_FIRST =
|
|
9656
|
+
POST_PLAYER_INIT_FIRST = 65,
|
|
9588
9657
|
/**
|
|
9589
9658
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
9590
9659
|
*
|
|
@@ -9604,7 +9673,7 @@ export declare enum ModCallbackCustom {
|
|
|
9604
9673
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
9605
9674
|
* ```
|
|
9606
9675
|
*/
|
|
9607
|
-
POST_PLAYER_INIT_LATE =
|
|
9676
|
+
POST_PLAYER_INIT_LATE = 66,
|
|
9608
9677
|
/**
|
|
9609
9678
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
9610
9679
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -9628,7 +9697,7 @@ export declare enum ModCallbackCustom {
|
|
|
9628
9697
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
9629
9698
|
* ```
|
|
9630
9699
|
*/
|
|
9631
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
9700
|
+
POST_PLAYER_RENDER_REORDERED = 67,
|
|
9632
9701
|
/**
|
|
9633
9702
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
9634
9703
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -9653,7 +9722,7 @@ export declare enum ModCallbackCustom {
|
|
|
9653
9722
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
9654
9723
|
* ```
|
|
9655
9724
|
*/
|
|
9656
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
9725
|
+
POST_PLAYER_UPDATE_REORDERED = 68,
|
|
9657
9726
|
/**
|
|
9658
9727
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
9659
9728
|
*
|
|
@@ -9665,7 +9734,7 @@ export declare enum ModCallbackCustom {
|
|
|
9665
9734
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
9666
9735
|
* ```
|
|
9667
9736
|
*/
|
|
9668
|
-
POST_POOP_RENDER =
|
|
9737
|
+
POST_POOP_RENDER = 69,
|
|
9669
9738
|
/**
|
|
9670
9739
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
9671
9740
|
*
|
|
@@ -9677,7 +9746,7 @@ export declare enum ModCallbackCustom {
|
|
|
9677
9746
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
9678
9747
|
* ```
|
|
9679
9748
|
*/
|
|
9680
|
-
POST_POOP_UPDATE =
|
|
9749
|
+
POST_POOP_UPDATE = 70,
|
|
9681
9750
|
/**
|
|
9682
9751
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
9683
9752
|
*
|
|
@@ -9689,7 +9758,7 @@ export declare enum ModCallbackCustom {
|
|
|
9689
9758
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
9690
9759
|
* ```
|
|
9691
9760
|
*/
|
|
9692
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
9761
|
+
POST_PRESSURE_PLATE_RENDER = 71,
|
|
9693
9762
|
/**
|
|
9694
9763
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
9695
9764
|
*
|
|
@@ -9701,7 +9770,7 @@ export declare enum ModCallbackCustom {
|
|
|
9701
9770
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
9702
9771
|
* ```
|
|
9703
9772
|
*/
|
|
9704
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
9773
|
+
POST_PRESSURE_PLATE_UPDATE = 72,
|
|
9705
9774
|
/**
|
|
9706
9775
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
9707
9776
|
*
|
|
@@ -9718,7 +9787,7 @@ export declare enum ModCallbackCustom {
|
|
|
9718
9787
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
9719
9788
|
* ```
|
|
9720
9789
|
*/
|
|
9721
|
-
POST_PROJECTILE_INIT_LATE =
|
|
9790
|
+
POST_PROJECTILE_INIT_LATE = 73,
|
|
9722
9791
|
/**
|
|
9723
9792
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
9724
9793
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -9734,7 +9803,7 @@ export declare enum ModCallbackCustom {
|
|
|
9734
9803
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
9735
9804
|
* ```
|
|
9736
9805
|
*/
|
|
9737
|
-
POST_PURCHASE =
|
|
9806
|
+
POST_PURCHASE = 74,
|
|
9738
9807
|
/**
|
|
9739
9808
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
9740
9809
|
*
|
|
@@ -9748,7 +9817,7 @@ export declare enum ModCallbackCustom {
|
|
|
9748
9817
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
9749
9818
|
* ```
|
|
9750
9819
|
*/
|
|
9751
|
-
POST_ROCK_RENDER =
|
|
9820
|
+
POST_ROCK_RENDER = 75,
|
|
9752
9821
|
/**
|
|
9753
9822
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
9754
9823
|
*
|
|
@@ -9762,7 +9831,7 @@ export declare enum ModCallbackCustom {
|
|
|
9762
9831
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
9763
9832
|
* ```
|
|
9764
9833
|
*/
|
|
9765
|
-
POST_ROCK_UPDATE =
|
|
9834
|
+
POST_ROCK_UPDATE = 76,
|
|
9766
9835
|
/**
|
|
9767
9836
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
9768
9837
|
* the `Room.IsClear` method).
|
|
@@ -9779,7 +9848,7 @@ export declare enum ModCallbackCustom {
|
|
|
9779
9848
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
9780
9849
|
* ```
|
|
9781
9850
|
*/
|
|
9782
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
9851
|
+
POST_ROOM_CLEAR_CHANGED = 77,
|
|
9783
9852
|
/**
|
|
9784
9853
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
9785
9854
|
* Room.
|
|
@@ -9794,7 +9863,7 @@ export declare enum ModCallbackCustom {
|
|
|
9794
9863
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
9795
9864
|
* ```
|
|
9796
9865
|
*/
|
|
9797
|
-
POST_SACRIFICE =
|
|
9866
|
+
POST_SACRIFICE = 78,
|
|
9798
9867
|
/**
|
|
9799
9868
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
9800
9869
|
*
|
|
@@ -9808,7 +9877,7 @@ export declare enum ModCallbackCustom {
|
|
|
9808
9877
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
9809
9878
|
* ```
|
|
9810
9879
|
*/
|
|
9811
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
9880
|
+
POST_SLOT_ANIMATION_CHANGED = 79,
|
|
9812
9881
|
/**
|
|
9813
9882
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
9814
9883
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -9832,7 +9901,7 @@ export declare enum ModCallbackCustom {
|
|
|
9832
9901
|
* ): void {}
|
|
9833
9902
|
* ```
|
|
9834
9903
|
*/
|
|
9835
|
-
POST_SLOT_COLLISION =
|
|
9904
|
+
POST_SLOT_COLLISION = 80,
|
|
9836
9905
|
/**
|
|
9837
9906
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
9838
9907
|
* has broken.
|
|
@@ -9847,7 +9916,7 @@ export declare enum ModCallbackCustom {
|
|
|
9847
9916
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
9848
9917
|
* ```
|
|
9849
9918
|
*/
|
|
9850
|
-
POST_SLOT_DESTROYED =
|
|
9919
|
+
POST_SLOT_DESTROYED = 81,
|
|
9851
9920
|
/**
|
|
9852
9921
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
9853
9922
|
*
|
|
@@ -9866,7 +9935,7 @@ export declare enum ModCallbackCustom {
|
|
|
9866
9935
|
* function postSlotInit(slot: Entity): void {}
|
|
9867
9936
|
* ```
|
|
9868
9937
|
*/
|
|
9869
|
-
POST_SLOT_INIT =
|
|
9938
|
+
POST_SLOT_INIT = 82,
|
|
9870
9939
|
/**
|
|
9871
9940
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
9872
9941
|
*
|
|
@@ -9880,7 +9949,7 @@ export declare enum ModCallbackCustom {
|
|
|
9880
9949
|
* function postSlotRender(slot: Entity): void {}
|
|
9881
9950
|
* ```
|
|
9882
9951
|
*/
|
|
9883
|
-
POST_SLOT_RENDER =
|
|
9952
|
+
POST_SLOT_RENDER = 83,
|
|
9884
9953
|
/**
|
|
9885
9954
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
9886
9955
|
*
|
|
@@ -9894,7 +9963,7 @@ export declare enum ModCallbackCustom {
|
|
|
9894
9963
|
* function postSlotUpdate(slot: Entity): void {}
|
|
9895
9964
|
* ```
|
|
9896
9965
|
*/
|
|
9897
|
-
POST_SLOT_UPDATE =
|
|
9966
|
+
POST_SLOT_UPDATE = 84,
|
|
9898
9967
|
/**
|
|
9899
9968
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
9900
9969
|
*
|
|
@@ -9906,7 +9975,7 @@ export declare enum ModCallbackCustom {
|
|
|
9906
9975
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
9907
9976
|
* ```
|
|
9908
9977
|
*/
|
|
9909
|
-
POST_SPIKES_RENDER =
|
|
9978
|
+
POST_SPIKES_RENDER = 85,
|
|
9910
9979
|
/**
|
|
9911
9980
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
9912
9981
|
*
|
|
@@ -9918,7 +9987,7 @@ export declare enum ModCallbackCustom {
|
|
|
9918
9987
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
9919
9988
|
* ```
|
|
9920
9989
|
*/
|
|
9921
|
-
POST_SPIKES_UPDATE =
|
|
9990
|
+
POST_SPIKES_UPDATE = 86,
|
|
9922
9991
|
/**
|
|
9923
9992
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
9924
9993
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -9936,7 +10005,7 @@ export declare enum ModCallbackCustom {
|
|
|
9936
10005
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
9937
10006
|
* ```
|
|
9938
10007
|
*/
|
|
9939
|
-
POST_TEAR_INIT_LATE =
|
|
10008
|
+
POST_TEAR_INIT_LATE = 87,
|
|
9940
10009
|
/**
|
|
9941
10010
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
9942
10011
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -9953,7 +10022,7 @@ export declare enum ModCallbackCustom {
|
|
|
9953
10022
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
9954
10023
|
* ```
|
|
9955
10024
|
*/
|
|
9956
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
10025
|
+
POST_TEAR_INIT_VERY_LATE = 88,
|
|
9957
10026
|
/**
|
|
9958
10027
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
9959
10028
|
*
|
|
@@ -9965,7 +10034,7 @@ export declare enum ModCallbackCustom {
|
|
|
9965
10034
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
9966
10035
|
* ```
|
|
9967
10036
|
*/
|
|
9968
|
-
POST_TNT_RENDER =
|
|
10037
|
+
POST_TNT_RENDER = 89,
|
|
9969
10038
|
/**
|
|
9970
10039
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
9971
10040
|
*
|
|
@@ -9977,7 +10046,7 @@ export declare enum ModCallbackCustom {
|
|
|
9977
10046
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
9978
10047
|
* ```
|
|
9979
10048
|
*/
|
|
9980
|
-
POST_TNT_UPDATE =
|
|
10049
|
+
POST_TNT_UPDATE = 90,
|
|
9981
10050
|
/**
|
|
9982
10051
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
9983
10052
|
* transformation.
|
|
@@ -9996,7 +10065,7 @@ export declare enum ModCallbackCustom {
|
|
|
9996
10065
|
* ): void {}
|
|
9997
10066
|
* ```
|
|
9998
10067
|
*/
|
|
9999
|
-
POST_TRANSFORMATION =
|
|
10068
|
+
POST_TRANSFORMATION = 91,
|
|
10000
10069
|
/**
|
|
10001
10070
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
10002
10071
|
*
|
|
@@ -10011,7 +10080,7 @@ export declare enum ModCallbackCustom {
|
|
|
10011
10080
|
* ): void {}
|
|
10012
10081
|
* ```
|
|
10013
10082
|
*/
|
|
10014
|
-
POST_TRINKET_BREAK =
|
|
10083
|
+
POST_TRINKET_BREAK = 92,
|
|
10015
10084
|
/**
|
|
10016
10085
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
10017
10086
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -10027,7 +10096,7 @@ export declare enum ModCallbackCustom {
|
|
|
10027
10096
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
10028
10097
|
* ```
|
|
10029
10098
|
*/
|
|
10030
|
-
PRE_BERSERK_DEATH =
|
|
10099
|
+
PRE_BERSERK_DEATH = 93,
|
|
10031
10100
|
/**
|
|
10032
10101
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
10033
10102
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -10046,7 +10115,7 @@ export declare enum ModCallbackCustom {
|
|
|
10046
10115
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
10047
10116
|
* ```
|
|
10048
10117
|
*/
|
|
10049
|
-
PRE_CUSTOM_REVIVE =
|
|
10118
|
+
PRE_CUSTOM_REVIVE = 94,
|
|
10050
10119
|
/**
|
|
10051
10120
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
10052
10121
|
* meets all of the conditions to pick it up.
|
|
@@ -10066,7 +10135,7 @@ export declare enum ModCallbackCustom {
|
|
|
10066
10135
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
10067
10136
|
* ```
|
|
10068
10137
|
*/
|
|
10069
|
-
PRE_GET_PEDESTAL =
|
|
10138
|
+
PRE_GET_PEDESTAL = 95,
|
|
10070
10139
|
/**
|
|
10071
10140
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
10072
10141
|
* the player begins to hold the item above their head).
|
|
@@ -10086,7 +10155,7 @@ export declare enum ModCallbackCustom {
|
|
|
10086
10155
|
* ): void {}
|
|
10087
10156
|
* ```
|
|
10088
10157
|
*/
|
|
10089
|
-
PRE_ITEM_PICKUP =
|
|
10158
|
+
PRE_ITEM_PICKUP = 96,
|
|
10090
10159
|
/**
|
|
10091
10160
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
10092
10161
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -10100,7 +10169,33 @@ export declare enum ModCallbackCustom {
|
|
|
10100
10169
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
10101
10170
|
* ```
|
|
10102
10171
|
*/
|
|
10103
|
-
PRE_NEW_LEVEL =
|
|
10172
|
+
PRE_NEW_LEVEL = 97,
|
|
10173
|
+
/**
|
|
10174
|
+
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
10175
|
+
* you to specify extra arguments for additional filtration.
|
|
10176
|
+
*
|
|
10177
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10178
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10179
|
+
* matches the `EntityType` provided.
|
|
10180
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10181
|
+
* matches the variant provided.
|
|
10182
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
10183
|
+
* matches the sub-type provided.
|
|
10184
|
+
*/
|
|
10185
|
+
PRE_NPC_COLLISION_FILTER = 98,
|
|
10186
|
+
/**
|
|
10187
|
+
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
10188
|
+
* to specify extra arguments for additional filtration.
|
|
10189
|
+
*
|
|
10190
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10191
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10192
|
+
* matches the `EntityType` provided.
|
|
10193
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10194
|
+
* matches the variant provided.
|
|
10195
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
10196
|
+
* matches the sub-type provided.
|
|
10197
|
+
*/
|
|
10198
|
+
PRE_NPC_UPDATE_FILTER = 99
|
|
10104
10199
|
}
|
|
10105
10200
|
|
|
10106
10201
|
/**
|