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