isaacscript-common 28.6.0 → 28.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.rollup.d.ts +211 -127
- package/dist/isaacscript-common.lua +258 -128
- package/dist/src/callbackClasses.d.ts +4 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +20 -0
- package/dist/src/callbacks.d.ts +131 -127
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +4 -0
- package/dist/src/classes/callbacks/PostBombInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostBombInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostBombInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostBombRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostBombRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostBombRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostBombUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostBombUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostBombUpdateFilter.lua +23 -0
- package/dist/src/classes/callbacks/PreBombCollisionFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreBombCollisionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreBombCollisionFilter.lua +21 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +191 -127
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +135 -127
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +20 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +1 -1
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbackClasses.ts +4 -0
- package/src/callbacks.ts +4 -0
- package/src/classes/callbacks/PostBombInitFilter.ts +22 -0
- package/src/classes/callbacks/PostBombRenderFilter.ts +22 -0
- package/src/classes/callbacks/PostBombUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PreBombCollisionFilter.ts +24 -0
- package/src/enums/ModCallbackCustom.ts +68 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +28 -0
- package/src/shouldFire.ts +4 -1
package/dist/index.rollup.d.ts
CHANGED
|
@@ -119,11 +119,26 @@ declare interface AddCallbackParametersCustom {
|
|
|
119
119
|
bombVariant?: BombVariant,
|
|
120
120
|
subType?: int
|
|
121
121
|
];
|
|
122
|
+
[ModCallbackCustom.POST_BOMB_INIT_FILTER]: [
|
|
123
|
+
callback: (bomb: EntityBomb) => void,
|
|
124
|
+
bombVariant?: BombVariant,
|
|
125
|
+
subType?: int
|
|
126
|
+
];
|
|
122
127
|
[ModCallbackCustom.POST_BOMB_INIT_LATE]: [
|
|
123
128
|
callback: (bomb: EntityBomb) => void,
|
|
124
129
|
bombVariant?: BombVariant,
|
|
125
130
|
subType?: int
|
|
126
131
|
];
|
|
132
|
+
[ModCallbackCustom.POST_BOMB_RENDER_FILTER]: [
|
|
133
|
+
callback: (bomb: EntityBomb, renderOffset: Vector) => void,
|
|
134
|
+
bombVariant?: BombVariant,
|
|
135
|
+
subType?: int
|
|
136
|
+
];
|
|
137
|
+
[ModCallbackCustom.POST_BOMB_UPDATE_FILTER]: [
|
|
138
|
+
callback: (bomb: EntityBomb) => void,
|
|
139
|
+
bombVariant?: BombVariant,
|
|
140
|
+
subType?: int
|
|
141
|
+
];
|
|
127
142
|
[ModCallbackCustom.POST_BONE_SWING]: [callback: (knife: EntityKnife) => void];
|
|
128
143
|
[ModCallbackCustom.POST_COLLECTIBLE_EMPTY]: [
|
|
129
144
|
callback: (collectible: EntityPickupCollectible, oldCollectibleType: CollectibleType) => void,
|
|
@@ -660,6 +675,11 @@ declare interface AddCallbackParametersCustom {
|
|
|
660
675
|
playerVariant?: PlayerVariant,
|
|
661
676
|
character?: PlayerType
|
|
662
677
|
];
|
|
678
|
+
[ModCallbackCustom.PRE_BOMB_COLLISION_FILTER]: [
|
|
679
|
+
callback: (bomb: EntityBomb, collider: Entity, low: boolean) => boolean | undefined,
|
|
680
|
+
bombVariant?: BombVariant,
|
|
681
|
+
subtype?: int
|
|
682
|
+
];
|
|
663
683
|
[ModCallbackCustom.PRE_CUSTOM_REVIVE]: [
|
|
664
684
|
callback: (player: EntityPlayer) => int | undefined,
|
|
665
685
|
playerVariant?: PlayerVariant,
|
|
@@ -9368,6 +9388,21 @@ export declare enum ModCallbackCustom {
|
|
|
9368
9388
|
* ```
|
|
9369
9389
|
*/
|
|
9370
9390
|
POST_BOMB_EXPLODED = 6,
|
|
9391
|
+
/**
|
|
9392
|
+
* The exact same thing as the vanilla `POST_BOMB_INIT` callback, except this callback allows you
|
|
9393
|
+
* to specify extra arguments for additional filtration.
|
|
9394
|
+
*
|
|
9395
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9396
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9397
|
+
* matches the `BombVariant` provided.
|
|
9398
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9399
|
+
* matches the sub-type provided.
|
|
9400
|
+
*
|
|
9401
|
+
* ```ts
|
|
9402
|
+
* function postBombInitFilter(bomb: EntityBomb): void {}
|
|
9403
|
+
* ```
|
|
9404
|
+
*/
|
|
9405
|
+
POST_BOMB_INIT_FILTER = 7,
|
|
9371
9406
|
/**
|
|
9372
9407
|
* Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
|
|
9373
9408
|
*
|
|
@@ -9384,7 +9419,37 @@ export declare enum ModCallbackCustom {
|
|
|
9384
9419
|
* function postBombInitLate(bomb: EntityBomb): void {}
|
|
9385
9420
|
* ```
|
|
9386
9421
|
*/
|
|
9387
|
-
POST_BOMB_INIT_LATE =
|
|
9422
|
+
POST_BOMB_INIT_LATE = 8,
|
|
9423
|
+
/**
|
|
9424
|
+
* The exact same thing as the vanilla `POST_BOMB_RENDER` callback, except this callback allows
|
|
9425
|
+
* you to specify extra arguments for additional filtration.
|
|
9426
|
+
*
|
|
9427
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9428
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9429
|
+
* matches the `BombVariant` provided.
|
|
9430
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9431
|
+
* matches the sub-type provided.
|
|
9432
|
+
*
|
|
9433
|
+
* ```ts
|
|
9434
|
+
* function postBombRenderFilter(bomb: EntityBomb, renderOffset: Vector): void {}
|
|
9435
|
+
* ```
|
|
9436
|
+
*/
|
|
9437
|
+
POST_BOMB_RENDER_FILTER = 9,
|
|
9438
|
+
/**
|
|
9439
|
+
* The exact same thing as the vanilla `POST_BOMB_UPDATE` callback, except this callback allows
|
|
9440
|
+
* you to specify extra arguments for additional filtration.
|
|
9441
|
+
*
|
|
9442
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9443
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9444
|
+
* matches the `BombVariant` provided.
|
|
9445
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9446
|
+
* matches the sub-type provided.
|
|
9447
|
+
*
|
|
9448
|
+
* ```ts
|
|
9449
|
+
* function postBombUpdateFilter(bomb: EntityBomb): void {}
|
|
9450
|
+
* ```
|
|
9451
|
+
*/
|
|
9452
|
+
POST_BOMB_UPDATE_FILTER = 10,
|
|
9388
9453
|
/**
|
|
9389
9454
|
* Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
|
|
9390
9455
|
*
|
|
@@ -9392,7 +9457,7 @@ export declare enum ModCallbackCustom {
|
|
|
9392
9457
|
* function postBoneSwing(boneClub: EntityKnife): void {}
|
|
9393
9458
|
* ```
|
|
9394
9459
|
*/
|
|
9395
|
-
POST_BONE_SWING =
|
|
9460
|
+
POST_BONE_SWING = 11,
|
|
9396
9461
|
/**
|
|
9397
9462
|
* Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
|
|
9398
9463
|
* to `CollectibleType.NULL` (i.e. an "empty" pedestal).
|
|
@@ -9408,7 +9473,7 @@ export declare enum ModCallbackCustom {
|
|
|
9408
9473
|
* ): void {}
|
|
9409
9474
|
* ```
|
|
9410
9475
|
*/
|
|
9411
|
-
POST_COLLECTIBLE_EMPTY =
|
|
9476
|
+
POST_COLLECTIBLE_EMPTY = 12,
|
|
9412
9477
|
/**
|
|
9413
9478
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
9414
9479
|
* respective collectible on the run. For more details on how this is calculated, see the
|
|
@@ -9426,7 +9491,7 @@ export declare enum ModCallbackCustom {
|
|
|
9426
9491
|
* function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
|
|
9427
9492
|
* ```
|
|
9428
9493
|
*/
|
|
9429
|
-
POST_COLLECTIBLE_INIT_FIRST =
|
|
9494
|
+
POST_COLLECTIBLE_INIT_FIRST = 13,
|
|
9430
9495
|
/**
|
|
9431
9496
|
* Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
|
|
9432
9497
|
* begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
|
|
@@ -9442,7 +9507,7 @@ export declare enum ModCallbackCustom {
|
|
|
9442
9507
|
* function postCursedTeleport(player: EntityPlayer): void {}
|
|
9443
9508
|
* ```
|
|
9444
9509
|
*/
|
|
9445
|
-
POST_CURSED_TELEPORT =
|
|
9510
|
+
POST_CURSED_TELEPORT = 14,
|
|
9446
9511
|
/**
|
|
9447
9512
|
* Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
|
|
9448
9513
|
* has teleported to the previous room, and is ready to play the animation for the modded revival
|
|
@@ -9460,7 +9525,7 @@ export declare enum ModCallbackCustom {
|
|
|
9460
9525
|
* function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
|
|
9461
9526
|
* ```
|
|
9462
9527
|
*/
|
|
9463
|
-
POST_CUSTOM_REVIVE =
|
|
9528
|
+
POST_CUSTOM_REVIVE = 15,
|
|
9464
9529
|
/**
|
|
9465
9530
|
* Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
|
|
9466
9531
|
* Room floor.
|
|
@@ -9476,7 +9541,7 @@ export declare enum ModCallbackCustom {
|
|
|
9476
9541
|
* ): void {}
|
|
9477
9542
|
* ```
|
|
9478
9543
|
*/
|
|
9479
|
-
POST_DICE_ROOM_ACTIVATED =
|
|
9544
|
+
POST_DICE_ROOM_ACTIVATED = 16,
|
|
9480
9545
|
/**
|
|
9481
9546
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
9482
9547
|
*
|
|
@@ -9488,7 +9553,7 @@ export declare enum ModCallbackCustom {
|
|
|
9488
9553
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
9489
9554
|
* ```
|
|
9490
9555
|
*/
|
|
9491
|
-
POST_DOOR_RENDER =
|
|
9556
|
+
POST_DOOR_RENDER = 17,
|
|
9492
9557
|
/**
|
|
9493
9558
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
9494
9559
|
*
|
|
@@ -9500,7 +9565,7 @@ export declare enum ModCallbackCustom {
|
|
|
9500
9565
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
9501
9566
|
* ```
|
|
9502
9567
|
*/
|
|
9503
|
-
POST_DOOR_UPDATE =
|
|
9568
|
+
POST_DOOR_UPDATE = 18,
|
|
9504
9569
|
/**
|
|
9505
9570
|
* The exact same thing as the vanilla `POST_EFFECT_INIT` callback, except this callback allows
|
|
9506
9571
|
* you to specify extra arguments for additional filtration.
|
|
@@ -9515,7 +9580,7 @@ export declare enum ModCallbackCustom {
|
|
|
9515
9580
|
* function postEffectInitFilter(effect: EntityEffect): void {}
|
|
9516
9581
|
* ```
|
|
9517
9582
|
*/
|
|
9518
|
-
POST_EFFECT_INIT_FILTER =
|
|
9583
|
+
POST_EFFECT_INIT_FILTER = 19,
|
|
9519
9584
|
/**
|
|
9520
9585
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
9521
9586
|
*
|
|
@@ -9532,7 +9597,7 @@ export declare enum ModCallbackCustom {
|
|
|
9532
9597
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
9533
9598
|
* ```
|
|
9534
9599
|
*/
|
|
9535
|
-
POST_EFFECT_INIT_LATE =
|
|
9600
|
+
POST_EFFECT_INIT_LATE = 20,
|
|
9536
9601
|
/**
|
|
9537
9602
|
* The exact same thing as the vanilla `POST_EFFECT_RENDER` callback, except this callback allows
|
|
9538
9603
|
* you to specify extra arguments for additional filtration.
|
|
@@ -9547,7 +9612,7 @@ export declare enum ModCallbackCustom {
|
|
|
9547
9612
|
* function postEffectRenderFilter(effect: EntityEffect, renderOffset: Vector): void {}
|
|
9548
9613
|
* ```
|
|
9549
9614
|
*/
|
|
9550
|
-
POST_EFFECT_RENDER_FILTER =
|
|
9615
|
+
POST_EFFECT_RENDER_FILTER = 21,
|
|
9551
9616
|
/**
|
|
9552
9617
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
9553
9618
|
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
@@ -9566,7 +9631,7 @@ export declare enum ModCallbackCustom {
|
|
|
9566
9631
|
* ): void {}
|
|
9567
9632
|
* ```
|
|
9568
9633
|
*/
|
|
9569
|
-
POST_EFFECT_STATE_CHANGED =
|
|
9634
|
+
POST_EFFECT_STATE_CHANGED = 22,
|
|
9570
9635
|
/**
|
|
9571
9636
|
* The exact same thing as the vanilla `POST_EFFECT_UPDATE` callback, except this callback allows
|
|
9572
9637
|
* you to specify extra arguments for additional filtration.
|
|
@@ -9581,7 +9646,7 @@ export declare enum ModCallbackCustom {
|
|
|
9581
9646
|
* function postEffectUpdateFilter(effect: EntityEffect): void {}
|
|
9582
9647
|
* ```
|
|
9583
9648
|
*/
|
|
9584
|
-
POST_EFFECT_UPDATE_FILTER =
|
|
9649
|
+
POST_EFFECT_UPDATE_FILTER = 23,
|
|
9585
9650
|
/**
|
|
9586
9651
|
* The exact same thing as the vanilla `POST_ENTITY_KILL` callback, except this callback allows
|
|
9587
9652
|
* you to specify extra arguments for additional filtration.
|
|
@@ -9598,7 +9663,7 @@ export declare enum ModCallbackCustom {
|
|
|
9598
9663
|
* function postEntityKillFilter(entity: Entity): void {}
|
|
9599
9664
|
* ```
|
|
9600
9665
|
*/
|
|
9601
|
-
POST_ENTITY_KILL_FILTER =
|
|
9666
|
+
POST_ENTITY_KILL_FILTER = 24,
|
|
9602
9667
|
/**
|
|
9603
9668
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
9604
9669
|
* updated to the new character until a game frame has passed.)
|
|
@@ -9607,7 +9672,7 @@ export declare enum ModCallbackCustom {
|
|
|
9607
9672
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
9608
9673
|
* ```
|
|
9609
9674
|
*/
|
|
9610
|
-
POST_ESAU_JR =
|
|
9675
|
+
POST_ESAU_JR = 25,
|
|
9611
9676
|
/**
|
|
9612
9677
|
* The exact same thing as the vanilla `POST_FAMILIAR_INIT` callback, except this callback allows
|
|
9613
9678
|
* you to specify extra arguments for additional filtration.
|
|
@@ -9622,7 +9687,7 @@ export declare enum ModCallbackCustom {
|
|
|
9622
9687
|
* function postFamiliarInitFilter(familiar: EntityFamiliar): void {}
|
|
9623
9688
|
* ```
|
|
9624
9689
|
*/
|
|
9625
|
-
POST_FAMILIAR_INIT_FILTER =
|
|
9690
|
+
POST_FAMILIAR_INIT_FILTER = 26,
|
|
9626
9691
|
/**
|
|
9627
9692
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
9628
9693
|
*
|
|
@@ -9639,7 +9704,7 @@ export declare enum ModCallbackCustom {
|
|
|
9639
9704
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
9640
9705
|
* ```
|
|
9641
9706
|
*/
|
|
9642
|
-
POST_FAMILIAR_INIT_LATE =
|
|
9707
|
+
POST_FAMILIAR_INIT_LATE = 27,
|
|
9643
9708
|
/**
|
|
9644
9709
|
* The exact same thing as the vanilla `POST_FAMILIAR_RENDER` callback, except this callback
|
|
9645
9710
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -9654,7 +9719,7 @@ export declare enum ModCallbackCustom {
|
|
|
9654
9719
|
* function postFamiliarRenderFilter(familiar: EntityFamiliar, renderOffset: Vector): void {}
|
|
9655
9720
|
* ```
|
|
9656
9721
|
*/
|
|
9657
|
-
POST_FAMILIAR_RENDER_FILTER =
|
|
9722
|
+
POST_FAMILIAR_RENDER_FILTER = 28,
|
|
9658
9723
|
/**
|
|
9659
9724
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
9660
9725
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -9674,7 +9739,7 @@ export declare enum ModCallbackCustom {
|
|
|
9674
9739
|
* ): void {}
|
|
9675
9740
|
* ```
|
|
9676
9741
|
*/
|
|
9677
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
9742
|
+
POST_FAMILIAR_STATE_CHANGED = 29,
|
|
9678
9743
|
/**
|
|
9679
9744
|
* The exact same thing as the vanilla `POST_FAMILIAR_UPDATE` callback, except this callback
|
|
9680
9745
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -9689,7 +9754,7 @@ export declare enum ModCallbackCustom {
|
|
|
9689
9754
|
* function postFamiliarUpdateFilter(familiar: EntityFamiliar): void {}
|
|
9690
9755
|
* ```
|
|
9691
9756
|
*/
|
|
9692
|
-
POST_FAMILIAR_UPDATE_FILTER =
|
|
9757
|
+
POST_FAMILIAR_UPDATE_FILTER = 30,
|
|
9693
9758
|
/**
|
|
9694
9759
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
9695
9760
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -9701,7 +9766,7 @@ export declare enum ModCallbackCustom {
|
|
|
9701
9766
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
9702
9767
|
* ```
|
|
9703
9768
|
*/
|
|
9704
|
-
POST_FIRST_ESAU_JR =
|
|
9769
|
+
POST_FIRST_ESAU_JR = 31,
|
|
9705
9770
|
/**
|
|
9706
9771
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
9707
9772
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -9714,7 +9779,7 @@ export declare enum ModCallbackCustom {
|
|
|
9714
9779
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
9715
9780
|
* ```
|
|
9716
9781
|
*/
|
|
9717
|
-
POST_FIRST_FLIP =
|
|
9782
|
+
POST_FIRST_FLIP = 32,
|
|
9718
9783
|
/**
|
|
9719
9784
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
9720
9785
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -9727,7 +9792,7 @@ export declare enum ModCallbackCustom {
|
|
|
9727
9792
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
9728
9793
|
* ```
|
|
9729
9794
|
*/
|
|
9730
|
-
POST_FLIP =
|
|
9795
|
+
POST_FLIP = 33,
|
|
9731
9796
|
/**
|
|
9732
9797
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
9733
9798
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -9746,7 +9811,7 @@ export declare enum ModCallbackCustom {
|
|
|
9746
9811
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
9747
9812
|
* ```
|
|
9748
9813
|
*/
|
|
9749
|
-
POST_GAME_STARTED_REORDERED =
|
|
9814
|
+
POST_GAME_STARTED_REORDERED = 34,
|
|
9750
9815
|
/**
|
|
9751
9816
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
9752
9817
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -9765,7 +9830,7 @@ export declare enum ModCallbackCustom {
|
|
|
9765
9830
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
9766
9831
|
* ```
|
|
9767
9832
|
*/
|
|
9768
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
9833
|
+
POST_GAME_STARTED_REORDERED_LAST = 35,
|
|
9769
9834
|
/**
|
|
9770
9835
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
9771
9836
|
*
|
|
@@ -9773,7 +9838,7 @@ export declare enum ModCallbackCustom {
|
|
|
9773
9838
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
9774
9839
|
* ```
|
|
9775
9840
|
*/
|
|
9776
|
-
POST_GREED_MODE_WAVE =
|
|
9841
|
+
POST_GREED_MODE_WAVE = 36,
|
|
9777
9842
|
/**
|
|
9778
9843
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
9779
9844
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -9792,7 +9857,7 @@ export declare enum ModCallbackCustom {
|
|
|
9792
9857
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
9793
9858
|
* ```
|
|
9794
9859
|
*/
|
|
9795
|
-
POST_GRID_ENTITY_BROKEN =
|
|
9860
|
+
POST_GRID_ENTITY_BROKEN = 37,
|
|
9796
9861
|
/**
|
|
9797
9862
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
9798
9863
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -9820,7 +9885,7 @@ export declare enum ModCallbackCustom {
|
|
|
9820
9885
|
* ): void {}
|
|
9821
9886
|
* ```
|
|
9822
9887
|
*/
|
|
9823
|
-
POST_GRID_ENTITY_COLLISION =
|
|
9888
|
+
POST_GRID_ENTITY_COLLISION = 38,
|
|
9824
9889
|
/**
|
|
9825
9890
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
9826
9891
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9837,7 +9902,7 @@ export declare enum ModCallbackCustom {
|
|
|
9837
9902
|
* ): void {}
|
|
9838
9903
|
* ```
|
|
9839
9904
|
*/
|
|
9840
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
9905
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 39,
|
|
9841
9906
|
/**
|
|
9842
9907
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
9843
9908
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9861,7 +9926,7 @@ export declare enum ModCallbackCustom {
|
|
|
9861
9926
|
* ): void {}
|
|
9862
9927
|
* ```
|
|
9863
9928
|
*/
|
|
9864
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
9929
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 40,
|
|
9865
9930
|
/**
|
|
9866
9931
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
9867
9932
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -9878,7 +9943,7 @@ export declare enum ModCallbackCustom {
|
|
|
9878
9943
|
* ): void {}
|
|
9879
9944
|
* ```
|
|
9880
9945
|
*/
|
|
9881
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
9946
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 41,
|
|
9882
9947
|
/**
|
|
9883
9948
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
9884
9949
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9895,7 +9960,7 @@ export declare enum ModCallbackCustom {
|
|
|
9895
9960
|
* ): void {}
|
|
9896
9961
|
* ```
|
|
9897
9962
|
*/
|
|
9898
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
9963
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 42,
|
|
9899
9964
|
/**
|
|
9900
9965
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
9901
9966
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9912,7 +9977,7 @@ export declare enum ModCallbackCustom {
|
|
|
9912
9977
|
* ): void {}
|
|
9913
9978
|
* ```
|
|
9914
9979
|
*/
|
|
9915
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
9980
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 43,
|
|
9916
9981
|
/**
|
|
9917
9982
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
9918
9983
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -9931,7 +9996,7 @@ export declare enum ModCallbackCustom {
|
|
|
9931
9996
|
* ): void {}
|
|
9932
9997
|
* ```
|
|
9933
9998
|
*/
|
|
9934
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
9999
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 44,
|
|
9935
10000
|
/**
|
|
9936
10001
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
9937
10002
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9948,7 +10013,7 @@ export declare enum ModCallbackCustom {
|
|
|
9948
10013
|
* ): void {}
|
|
9949
10014
|
* ```
|
|
9950
10015
|
*/
|
|
9951
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
10016
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 45,
|
|
9952
10017
|
/**
|
|
9953
10018
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
9954
10019
|
*
|
|
@@ -9970,7 +10035,7 @@ export declare enum ModCallbackCustom {
|
|
|
9970
10035
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
9971
10036
|
* ```
|
|
9972
10037
|
*/
|
|
9973
|
-
POST_GRID_ENTITY_INIT =
|
|
10038
|
+
POST_GRID_ENTITY_INIT = 46,
|
|
9974
10039
|
/**
|
|
9975
10040
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
9976
10041
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -9995,7 +10060,7 @@ export declare enum ModCallbackCustom {
|
|
|
9995
10060
|
* ): void {}
|
|
9996
10061
|
* ```
|
|
9997
10062
|
*/
|
|
9998
|
-
POST_GRID_ENTITY_REMOVE =
|
|
10063
|
+
POST_GRID_ENTITY_REMOVE = 47,
|
|
9999
10064
|
/**
|
|
10000
10065
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
10001
10066
|
*
|
|
@@ -10012,7 +10077,7 @@ export declare enum ModCallbackCustom {
|
|
|
10012
10077
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
10013
10078
|
* ```
|
|
10014
10079
|
*/
|
|
10015
|
-
POST_GRID_ENTITY_RENDER =
|
|
10080
|
+
POST_GRID_ENTITY_RENDER = 48,
|
|
10016
10081
|
/**
|
|
10017
10082
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
10018
10083
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -10034,7 +10099,7 @@ export declare enum ModCallbackCustom {
|
|
|
10034
10099
|
* ): void {}
|
|
10035
10100
|
* ```
|
|
10036
10101
|
*/
|
|
10037
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
10102
|
+
POST_GRID_ENTITY_STATE_CHANGED = 49,
|
|
10038
10103
|
/**
|
|
10039
10104
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
10040
10105
|
*
|
|
@@ -10051,7 +10116,7 @@ export declare enum ModCallbackCustom {
|
|
|
10051
10116
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
10052
10117
|
* ```
|
|
10053
10118
|
*/
|
|
10054
|
-
POST_GRID_ENTITY_UPDATE =
|
|
10119
|
+
POST_GRID_ENTITY_UPDATE = 50,
|
|
10055
10120
|
/**
|
|
10056
10121
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
10057
10122
|
* temporary collectible effect.
|
|
@@ -10074,7 +10139,7 @@ export declare enum ModCallbackCustom {
|
|
|
10074
10139
|
* ): void {}
|
|
10075
10140
|
* ```
|
|
10076
10141
|
*/
|
|
10077
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
10142
|
+
POST_HOLY_MANTLE_REMOVED = 51,
|
|
10078
10143
|
/**
|
|
10079
10144
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
10080
10145
|
* active collectible item, implying that the item was just used.
|
|
@@ -10097,7 +10162,7 @@ export declare enum ModCallbackCustom {
|
|
|
10097
10162
|
* ): void {}
|
|
10098
10163
|
* ```
|
|
10099
10164
|
*/
|
|
10100
|
-
POST_ITEM_DISCHARGE =
|
|
10165
|
+
POST_ITEM_DISCHARGE = 52,
|
|
10101
10166
|
/**
|
|
10102
10167
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
10103
10168
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -10118,7 +10183,7 @@ export declare enum ModCallbackCustom {
|
|
|
10118
10183
|
* ): void {}
|
|
10119
10184
|
* ```
|
|
10120
10185
|
*/
|
|
10121
|
-
POST_ITEM_PICKUP =
|
|
10186
|
+
POST_ITEM_PICKUP = 53,
|
|
10122
10187
|
/**
|
|
10123
10188
|
* Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
|
|
10124
10189
|
* released. (In other words, the callback only fires when the "pressed" status is different than
|
|
@@ -10134,7 +10199,7 @@ export declare enum ModCallbackCustom {
|
|
|
10134
10199
|
* function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
|
|
10135
10200
|
* ```
|
|
10136
10201
|
*/
|
|
10137
|
-
POST_KEYBOARD_CHANGED =
|
|
10202
|
+
POST_KEYBOARD_CHANGED = 54,
|
|
10138
10203
|
/**
|
|
10139
10204
|
* The exact same thing as the vanilla `POST_KNIFE_INIT` callback, except this callback allows you
|
|
10140
10205
|
* to specify extra arguments for additional filtration.
|
|
@@ -10149,7 +10214,7 @@ export declare enum ModCallbackCustom {
|
|
|
10149
10214
|
* function postKnifeInitFilter(knife: EntityKnife): void {}
|
|
10150
10215
|
* ```
|
|
10151
10216
|
*/
|
|
10152
|
-
POST_KNIFE_INIT_FILTER =
|
|
10217
|
+
POST_KNIFE_INIT_FILTER = 55,
|
|
10153
10218
|
/**
|
|
10154
10219
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
10155
10220
|
*
|
|
@@ -10166,7 +10231,7 @@ export declare enum ModCallbackCustom {
|
|
|
10166
10231
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
10167
10232
|
* ```
|
|
10168
10233
|
*/
|
|
10169
|
-
POST_KNIFE_INIT_LATE =
|
|
10234
|
+
POST_KNIFE_INIT_LATE = 56,
|
|
10170
10235
|
/**
|
|
10171
10236
|
* The exact same thing as the vanilla `POST_KNIFE_RENDER` callback, except this callback allows
|
|
10172
10237
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10181,7 +10246,7 @@ export declare enum ModCallbackCustom {
|
|
|
10181
10246
|
* function postKnifeRenderFilter(knife: EntityKnife, renderOffset: Vector): void {}
|
|
10182
10247
|
* ```
|
|
10183
10248
|
*/
|
|
10184
|
-
POST_KNIFE_RENDER_FILTER =
|
|
10249
|
+
POST_KNIFE_RENDER_FILTER = 57,
|
|
10185
10250
|
/**
|
|
10186
10251
|
* The exact same thing as the vanilla `POST_KNIFE_UPDATE` callback, except this callback allows
|
|
10187
10252
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10196,7 +10261,7 @@ export declare enum ModCallbackCustom {
|
|
|
10196
10261
|
* function postKnifeUpdateFilter(knife: EntityKnife): void {}
|
|
10197
10262
|
* ```
|
|
10198
10263
|
*/
|
|
10199
|
-
POST_KNIFE_UPDATE_FILTER =
|
|
10264
|
+
POST_KNIFE_UPDATE_FILTER = 58,
|
|
10200
10265
|
/**
|
|
10201
10266
|
* The exact same thing as the vanilla `POST_LASER_INIT` callback, except this callback allows you
|
|
10202
10267
|
* to specify extra arguments for additional filtration.
|
|
@@ -10211,7 +10276,7 @@ export declare enum ModCallbackCustom {
|
|
|
10211
10276
|
* function postLaserInitFilter(laser: EntityLaser): void {}
|
|
10212
10277
|
* ```
|
|
10213
10278
|
*/
|
|
10214
|
-
POST_LASER_INIT_FILTER =
|
|
10279
|
+
POST_LASER_INIT_FILTER = 59,
|
|
10215
10280
|
/**
|
|
10216
10281
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
10217
10282
|
*
|
|
@@ -10228,7 +10293,7 @@ export declare enum ModCallbackCustom {
|
|
|
10228
10293
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
10229
10294
|
* ```
|
|
10230
10295
|
*/
|
|
10231
|
-
POST_LASER_INIT_LATE =
|
|
10296
|
+
POST_LASER_INIT_LATE = 60,
|
|
10232
10297
|
/**
|
|
10233
10298
|
* The exact same thing as the vanilla `POST_LASER_RENDER` callback, except this callback allows
|
|
10234
10299
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10243,7 +10308,7 @@ export declare enum ModCallbackCustom {
|
|
|
10243
10308
|
* function postLaserRenderFilter(laser: EntityLaser, renderOffset: Vector): void {}
|
|
10244
10309
|
* ```
|
|
10245
10310
|
*/
|
|
10246
|
-
POST_LASER_RENDER_FILTER =
|
|
10311
|
+
POST_LASER_RENDER_FILTER = 61,
|
|
10247
10312
|
/**
|
|
10248
10313
|
* The exact same thing as the vanilla `POST_LASER_UPDATE` callback, except this callback allows
|
|
10249
10314
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10258,7 +10323,7 @@ export declare enum ModCallbackCustom {
|
|
|
10258
10323
|
* function postLaserUpdateFilter(laser: EntityLaser): void {}
|
|
10259
10324
|
* ```
|
|
10260
10325
|
*/
|
|
10261
|
-
POST_LASER_UPDATE_FILTER =
|
|
10326
|
+
POST_LASER_UPDATE_FILTER = 62,
|
|
10262
10327
|
/**
|
|
10263
10328
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
10264
10329
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -10284,7 +10349,7 @@ export declare enum ModCallbackCustom {
|
|
|
10284
10349
|
* function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
|
|
10285
10350
|
* ```
|
|
10286
10351
|
*/
|
|
10287
|
-
POST_NEW_LEVEL_REORDERED =
|
|
10352
|
+
POST_NEW_LEVEL_REORDERED = 63,
|
|
10288
10353
|
/**
|
|
10289
10354
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
10290
10355
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -10301,7 +10366,7 @@ export declare enum ModCallbackCustom {
|
|
|
10301
10366
|
* function postNewRoomEarly(roomType: RoomType): void {}
|
|
10302
10367
|
* ```
|
|
10303
10368
|
*/
|
|
10304
|
-
POST_NEW_ROOM_EARLY =
|
|
10369
|
+
POST_NEW_ROOM_EARLY = 64,
|
|
10305
10370
|
/**
|
|
10306
10371
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
10307
10372
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -10324,7 +10389,7 @@ export declare enum ModCallbackCustom {
|
|
|
10324
10389
|
* function postNewRoomReordered(roomType: RoomType): void {}
|
|
10325
10390
|
* ```
|
|
10326
10391
|
*/
|
|
10327
|
-
POST_NEW_ROOM_REORDERED =
|
|
10392
|
+
POST_NEW_ROOM_REORDERED = 65,
|
|
10328
10393
|
/**
|
|
10329
10394
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
10330
10395
|
* to specify extra arguments for additional filtration.
|
|
@@ -10341,7 +10406,7 @@ export declare enum ModCallbackCustom {
|
|
|
10341
10406
|
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
10342
10407
|
* ```
|
|
10343
10408
|
*/
|
|
10344
|
-
POST_NPC_DEATH_FILTER =
|
|
10409
|
+
POST_NPC_DEATH_FILTER = 66,
|
|
10345
10410
|
/**
|
|
10346
10411
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
10347
10412
|
* to specify extra arguments for additional filtration.
|
|
@@ -10358,7 +10423,7 @@ export declare enum ModCallbackCustom {
|
|
|
10358
10423
|
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
10359
10424
|
* ```
|
|
10360
10425
|
*/
|
|
10361
|
-
POST_NPC_INIT_FILTER =
|
|
10426
|
+
POST_NPC_INIT_FILTER = 67,
|
|
10362
10427
|
/**
|
|
10363
10428
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
10364
10429
|
*
|
|
@@ -10377,7 +10442,7 @@ export declare enum ModCallbackCustom {
|
|
|
10377
10442
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
10378
10443
|
* ```
|
|
10379
10444
|
*/
|
|
10380
|
-
POST_NPC_INIT_LATE =
|
|
10445
|
+
POST_NPC_INIT_LATE = 68,
|
|
10381
10446
|
/**
|
|
10382
10447
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
10383
10448
|
* to specify extra arguments for additional filtration.
|
|
@@ -10394,7 +10459,7 @@ export declare enum ModCallbackCustom {
|
|
|
10394
10459
|
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
10395
10460
|
* ```
|
|
10396
10461
|
*/
|
|
10397
|
-
POST_NPC_RENDER_FILTER =
|
|
10462
|
+
POST_NPC_RENDER_FILTER = 69,
|
|
10398
10463
|
/**
|
|
10399
10464
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
10400
10465
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -10415,7 +10480,7 @@ export declare enum ModCallbackCustom {
|
|
|
10415
10480
|
* ): void {}
|
|
10416
10481
|
* ```
|
|
10417
10482
|
*/
|
|
10418
|
-
POST_NPC_STATE_CHANGED =
|
|
10483
|
+
POST_NPC_STATE_CHANGED = 70,
|
|
10419
10484
|
/**
|
|
10420
10485
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
10421
10486
|
* to specify extra arguments for additional filtration.
|
|
@@ -10432,7 +10497,7 @@ export declare enum ModCallbackCustom {
|
|
|
10432
10497
|
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
10433
10498
|
* ```
|
|
10434
10499
|
*/
|
|
10435
|
-
POST_NPC_UPDATE_FILTER =
|
|
10500
|
+
POST_NPC_UPDATE_FILTER = 71,
|
|
10436
10501
|
/**
|
|
10437
10502
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10438
10503
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10457,7 +10522,7 @@ export declare enum ModCallbackCustom {
|
|
|
10457
10522
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
10458
10523
|
* ```
|
|
10459
10524
|
*/
|
|
10460
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
10525
|
+
POST_PEFFECT_UPDATE_REORDERED = 72,
|
|
10461
10526
|
/**
|
|
10462
10527
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
|
|
10463
10528
|
* than what it was on the previous frame.
|
|
@@ -10478,7 +10543,7 @@ export declare enum ModCallbackCustom {
|
|
|
10478
10543
|
* ): void {}
|
|
10479
10544
|
* ```
|
|
10480
10545
|
*/
|
|
10481
|
-
POST_PICKUP_CHANGED =
|
|
10546
|
+
POST_PICKUP_CHANGED = 73,
|
|
10482
10547
|
/**
|
|
10483
10548
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
10484
10549
|
*
|
|
@@ -10497,7 +10562,7 @@ export declare enum ModCallbackCustom {
|
|
|
10497
10562
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
10498
10563
|
* ```
|
|
10499
10564
|
*/
|
|
10500
|
-
POST_PICKUP_COLLECT =
|
|
10565
|
+
POST_PICKUP_COLLECT = 74,
|
|
10501
10566
|
/**
|
|
10502
10567
|
* The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
|
|
10503
10568
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10512,7 +10577,7 @@ export declare enum ModCallbackCustom {
|
|
|
10512
10577
|
* function postPickupInitFilter(pickup: EntityPickup): void {}
|
|
10513
10578
|
* ```
|
|
10514
10579
|
*/
|
|
10515
|
-
POST_PICKUP_INIT_FILTER =
|
|
10580
|
+
POST_PICKUP_INIT_FILTER = 75,
|
|
10516
10581
|
/**
|
|
10517
10582
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
10518
10583
|
* respective pickup on the run.
|
|
@@ -10530,7 +10595,7 @@ export declare enum ModCallbackCustom {
|
|
|
10530
10595
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
10531
10596
|
* ```
|
|
10532
10597
|
*/
|
|
10533
|
-
POST_PICKUP_INIT_FIRST =
|
|
10598
|
+
POST_PICKUP_INIT_FIRST = 76,
|
|
10534
10599
|
/**
|
|
10535
10600
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
10536
10601
|
*
|
|
@@ -10547,7 +10612,7 @@ export declare enum ModCallbackCustom {
|
|
|
10547
10612
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
10548
10613
|
* ```
|
|
10549
10614
|
*/
|
|
10550
|
-
POST_PICKUP_INIT_LATE =
|
|
10615
|
+
POST_PICKUP_INIT_LATE = 77,
|
|
10551
10616
|
/**
|
|
10552
10617
|
* The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
|
|
10553
10618
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10562,7 +10627,7 @@ export declare enum ModCallbackCustom {
|
|
|
10562
10627
|
* function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
|
|
10563
10628
|
* ```
|
|
10564
10629
|
*/
|
|
10565
|
-
POST_PICKUP_RENDER_FILTER =
|
|
10630
|
+
POST_PICKUP_RENDER_FILTER = 78,
|
|
10566
10631
|
/**
|
|
10567
10632
|
* The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
|
|
10568
10633
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10581,7 +10646,7 @@ export declare enum ModCallbackCustom {
|
|
|
10581
10646
|
* ): [PickupVariant, int] | undefined {}
|
|
10582
10647
|
* ```
|
|
10583
10648
|
*/
|
|
10584
|
-
POST_PICKUP_SELECTION_FILTER =
|
|
10649
|
+
POST_PICKUP_SELECTION_FILTER = 79,
|
|
10585
10650
|
/**
|
|
10586
10651
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
10587
10652
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -10600,7 +10665,7 @@ export declare enum ModCallbackCustom {
|
|
|
10600
10665
|
* ): void {}
|
|
10601
10666
|
* ```
|
|
10602
10667
|
*/
|
|
10603
|
-
POST_PICKUP_STATE_CHANGED =
|
|
10668
|
+
POST_PICKUP_STATE_CHANGED = 80,
|
|
10604
10669
|
/**
|
|
10605
10670
|
* The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
|
|
10606
10671
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10615,7 +10680,7 @@ export declare enum ModCallbackCustom {
|
|
|
10615
10680
|
* function postPickupUpdateFilter(pickup: EntityPickup): void {}
|
|
10616
10681
|
* ```
|
|
10617
10682
|
*/
|
|
10618
|
-
POST_PICKUP_UPDATE_FILTER =
|
|
10683
|
+
POST_PICKUP_UPDATE_FILTER = 81,
|
|
10619
10684
|
/**
|
|
10620
10685
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
10621
10686
|
*
|
|
@@ -10627,7 +10692,7 @@ export declare enum ModCallbackCustom {
|
|
|
10627
10692
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
10628
10693
|
* ```
|
|
10629
10694
|
*/
|
|
10630
|
-
POST_PIT_RENDER =
|
|
10695
|
+
POST_PIT_RENDER = 82,
|
|
10631
10696
|
/**
|
|
10632
10697
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
10633
10698
|
*
|
|
@@ -10639,7 +10704,7 @@ export declare enum ModCallbackCustom {
|
|
|
10639
10704
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
10640
10705
|
* ```
|
|
10641
10706
|
*/
|
|
10642
|
-
POST_PIT_UPDATE =
|
|
10707
|
+
POST_PIT_UPDATE = 83,
|
|
10643
10708
|
/**
|
|
10644
10709
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
10645
10710
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -10661,7 +10726,7 @@ export declare enum ModCallbackCustom {
|
|
|
10661
10726
|
* ): void {}
|
|
10662
10727
|
* ```
|
|
10663
10728
|
*/
|
|
10664
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
10729
|
+
POST_PLAYER_CHANGE_HEALTH = 84,
|
|
10665
10730
|
/**
|
|
10666
10731
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
10667
10732
|
* from what they were on the previous frame.
|
|
@@ -10691,7 +10756,7 @@ export declare enum ModCallbackCustom {
|
|
|
10691
10756
|
* ) => void {}
|
|
10692
10757
|
* ```
|
|
10693
10758
|
*/
|
|
10694
|
-
POST_PLAYER_CHANGE_STAT =
|
|
10759
|
+
POST_PLAYER_CHANGE_STAT = 85,
|
|
10695
10760
|
/**
|
|
10696
10761
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
10697
10762
|
* type
|
|
@@ -10714,7 +10779,7 @@ export declare enum ModCallbackCustom {
|
|
|
10714
10779
|
* ): void {}
|
|
10715
10780
|
* ```
|
|
10716
10781
|
*/
|
|
10717
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
10782
|
+
POST_PLAYER_CHANGE_TYPE = 86,
|
|
10718
10783
|
/**
|
|
10719
10784
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10720
10785
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10731,7 +10796,7 @@ export declare enum ModCallbackCustom {
|
|
|
10731
10796
|
* ): void {}
|
|
10732
10797
|
* ```
|
|
10733
10798
|
*/
|
|
10734
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
10799
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 87,
|
|
10735
10800
|
/**
|
|
10736
10801
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10737
10802
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10748,7 +10813,7 @@ export declare enum ModCallbackCustom {
|
|
|
10748
10813
|
* ): void {}
|
|
10749
10814
|
* ```
|
|
10750
10815
|
*/
|
|
10751
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
10816
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 88,
|
|
10752
10817
|
/**
|
|
10753
10818
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
10754
10819
|
* prevent the fatal damage.
|
|
@@ -10766,7 +10831,7 @@ export declare enum ModCallbackCustom {
|
|
|
10766
10831
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
10767
10832
|
* ```
|
|
10768
10833
|
*/
|
|
10769
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
10834
|
+
POST_PLAYER_FATAL_DAMAGE = 89,
|
|
10770
10835
|
/**
|
|
10771
10836
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
10772
10837
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -10788,7 +10853,7 @@ export declare enum ModCallbackCustom {
|
|
|
10788
10853
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
10789
10854
|
* ```
|
|
10790
10855
|
*/
|
|
10791
|
-
POST_PLAYER_INIT_FIRST =
|
|
10856
|
+
POST_PLAYER_INIT_FIRST = 90,
|
|
10792
10857
|
/**
|
|
10793
10858
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
10794
10859
|
*
|
|
@@ -10808,7 +10873,7 @@ export declare enum ModCallbackCustom {
|
|
|
10808
10873
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
10809
10874
|
* ```
|
|
10810
10875
|
*/
|
|
10811
|
-
POST_PLAYER_INIT_LATE =
|
|
10876
|
+
POST_PLAYER_INIT_LATE = 91,
|
|
10812
10877
|
/**
|
|
10813
10878
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
10814
10879
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -10832,7 +10897,7 @@ export declare enum ModCallbackCustom {
|
|
|
10832
10897
|
* function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
|
|
10833
10898
|
* ```
|
|
10834
10899
|
*/
|
|
10835
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
10900
|
+
POST_PLAYER_RENDER_REORDERED = 92,
|
|
10836
10901
|
/**
|
|
10837
10902
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10838
10903
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10857,7 +10922,7 @@ export declare enum ModCallbackCustom {
|
|
|
10857
10922
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
10858
10923
|
* ```
|
|
10859
10924
|
*/
|
|
10860
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
10925
|
+
POST_PLAYER_UPDATE_REORDERED = 93,
|
|
10861
10926
|
/**
|
|
10862
10927
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
10863
10928
|
*
|
|
@@ -10869,7 +10934,7 @@ export declare enum ModCallbackCustom {
|
|
|
10869
10934
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
10870
10935
|
* ```
|
|
10871
10936
|
*/
|
|
10872
|
-
POST_POOP_RENDER =
|
|
10937
|
+
POST_POOP_RENDER = 94,
|
|
10873
10938
|
/**
|
|
10874
10939
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
10875
10940
|
*
|
|
@@ -10881,7 +10946,7 @@ export declare enum ModCallbackCustom {
|
|
|
10881
10946
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
10882
10947
|
* ```
|
|
10883
10948
|
*/
|
|
10884
|
-
POST_POOP_UPDATE =
|
|
10949
|
+
POST_POOP_UPDATE = 95,
|
|
10885
10950
|
/**
|
|
10886
10951
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
10887
10952
|
*
|
|
@@ -10893,7 +10958,7 @@ export declare enum ModCallbackCustom {
|
|
|
10893
10958
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
10894
10959
|
* ```
|
|
10895
10960
|
*/
|
|
10896
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
10961
|
+
POST_PRESSURE_PLATE_RENDER = 96,
|
|
10897
10962
|
/**
|
|
10898
10963
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
10899
10964
|
*
|
|
@@ -10905,7 +10970,7 @@ export declare enum ModCallbackCustom {
|
|
|
10905
10970
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
10906
10971
|
* ```
|
|
10907
10972
|
*/
|
|
10908
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
10973
|
+
POST_PRESSURE_PLATE_UPDATE = 97,
|
|
10909
10974
|
/**
|
|
10910
10975
|
* The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
|
|
10911
10976
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10920,7 +10985,7 @@ export declare enum ModCallbackCustom {
|
|
|
10920
10985
|
* function postProjectileInitFilter(tear: EntityTear): void {}
|
|
10921
10986
|
* ```
|
|
10922
10987
|
*/
|
|
10923
|
-
POST_PROJECTILE_INIT_FILTER =
|
|
10988
|
+
POST_PROJECTILE_INIT_FILTER = 98,
|
|
10924
10989
|
/**
|
|
10925
10990
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
10926
10991
|
*
|
|
@@ -10937,7 +11002,7 @@ export declare enum ModCallbackCustom {
|
|
|
10937
11002
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
10938
11003
|
* ```
|
|
10939
11004
|
*/
|
|
10940
|
-
POST_PROJECTILE_INIT_LATE =
|
|
11005
|
+
POST_PROJECTILE_INIT_LATE = 99,
|
|
10941
11006
|
/**
|
|
10942
11007
|
* The exact same thing as the vanilla `POST_PROJECTILE_RENDER` callback, except this callback
|
|
10943
11008
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10952,7 +11017,7 @@ export declare enum ModCallbackCustom {
|
|
|
10952
11017
|
* function postProjectileRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
|
|
10953
11018
|
* ```
|
|
10954
11019
|
*/
|
|
10955
|
-
POST_PROJECTILE_RENDER_FILTER =
|
|
11020
|
+
POST_PROJECTILE_RENDER_FILTER = 100,
|
|
10956
11021
|
/**
|
|
10957
11022
|
* The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
|
|
10958
11023
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10967,7 +11032,7 @@ export declare enum ModCallbackCustom {
|
|
|
10967
11032
|
* function postProjectileUpdateFilter(tear: EntityTear): void {}
|
|
10968
11033
|
* ```
|
|
10969
11034
|
*/
|
|
10970
|
-
POST_PROJECTILE_UPDATE_FILTER =
|
|
11035
|
+
POST_PROJECTILE_UPDATE_FILTER = 101,
|
|
10971
11036
|
/**
|
|
10972
11037
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
10973
11038
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -10983,7 +11048,7 @@ export declare enum ModCallbackCustom {
|
|
|
10983
11048
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
10984
11049
|
* ```
|
|
10985
11050
|
*/
|
|
10986
|
-
POST_PURCHASE =
|
|
11051
|
+
POST_PURCHASE = 102,
|
|
10987
11052
|
/**
|
|
10988
11053
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
10989
11054
|
*
|
|
@@ -10997,7 +11062,7 @@ export declare enum ModCallbackCustom {
|
|
|
10997
11062
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
10998
11063
|
* ```
|
|
10999
11064
|
*/
|
|
11000
|
-
POST_ROCK_RENDER =
|
|
11065
|
+
POST_ROCK_RENDER = 103,
|
|
11001
11066
|
/**
|
|
11002
11067
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
11003
11068
|
*
|
|
@@ -11011,7 +11076,7 @@ export declare enum ModCallbackCustom {
|
|
|
11011
11076
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
11012
11077
|
* ```
|
|
11013
11078
|
*/
|
|
11014
|
-
POST_ROCK_UPDATE =
|
|
11079
|
+
POST_ROCK_UPDATE = 104,
|
|
11015
11080
|
/**
|
|
11016
11081
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
11017
11082
|
* the `Room.IsClear` method).
|
|
@@ -11028,7 +11093,7 @@ export declare enum ModCallbackCustom {
|
|
|
11028
11093
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
11029
11094
|
* ```
|
|
11030
11095
|
*/
|
|
11031
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
11096
|
+
POST_ROOM_CLEAR_CHANGED = 105,
|
|
11032
11097
|
/**
|
|
11033
11098
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
11034
11099
|
* Room.
|
|
@@ -11043,7 +11108,7 @@ export declare enum ModCallbackCustom {
|
|
|
11043
11108
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
11044
11109
|
* ```
|
|
11045
11110
|
*/
|
|
11046
|
-
POST_SACRIFICE =
|
|
11111
|
+
POST_SACRIFICE = 106,
|
|
11047
11112
|
/**
|
|
11048
11113
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
11049
11114
|
*
|
|
@@ -11061,7 +11126,7 @@ export declare enum ModCallbackCustom {
|
|
|
11061
11126
|
* ): void {}
|
|
11062
11127
|
* ```
|
|
11063
11128
|
*/
|
|
11064
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
11129
|
+
POST_SLOT_ANIMATION_CHANGED = 107,
|
|
11065
11130
|
/**
|
|
11066
11131
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
11067
11132
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -11085,7 +11150,7 @@ export declare enum ModCallbackCustom {
|
|
|
11085
11150
|
* ): void {}
|
|
11086
11151
|
* ```
|
|
11087
11152
|
*/
|
|
11088
|
-
POST_SLOT_COLLISION =
|
|
11153
|
+
POST_SLOT_COLLISION = 108,
|
|
11089
11154
|
/**
|
|
11090
11155
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
11091
11156
|
* destroyed or a beggar is removed.
|
|
@@ -11127,7 +11192,7 @@ export declare enum ModCallbackCustom {
|
|
|
11127
11192
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
11128
11193
|
* ```
|
|
11129
11194
|
*/
|
|
11130
|
-
POST_SLOT_DESTROYED =
|
|
11195
|
+
POST_SLOT_DESTROYED = 109,
|
|
11131
11196
|
/**
|
|
11132
11197
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
11133
11198
|
*
|
|
@@ -11146,7 +11211,7 @@ export declare enum ModCallbackCustom {
|
|
|
11146
11211
|
* function postSlotInit(slot: Entity): void {}
|
|
11147
11212
|
* ```
|
|
11148
11213
|
*/
|
|
11149
|
-
POST_SLOT_INIT =
|
|
11214
|
+
POST_SLOT_INIT = 110,
|
|
11150
11215
|
/**
|
|
11151
11216
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
11152
11217
|
*
|
|
@@ -11160,7 +11225,7 @@ export declare enum ModCallbackCustom {
|
|
|
11160
11225
|
* function postSlotRender(slot: Entity): void {}
|
|
11161
11226
|
* ```
|
|
11162
11227
|
*/
|
|
11163
|
-
POST_SLOT_RENDER =
|
|
11228
|
+
POST_SLOT_RENDER = 111,
|
|
11164
11229
|
/**
|
|
11165
11230
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
11166
11231
|
*
|
|
@@ -11174,7 +11239,7 @@ export declare enum ModCallbackCustom {
|
|
|
11174
11239
|
* function postSlotUpdate(slot: Entity): void {}
|
|
11175
11240
|
* ```
|
|
11176
11241
|
*/
|
|
11177
|
-
POST_SLOT_UPDATE =
|
|
11242
|
+
POST_SLOT_UPDATE = 112,
|
|
11178
11243
|
/**
|
|
11179
11244
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
11180
11245
|
*
|
|
@@ -11186,7 +11251,7 @@ export declare enum ModCallbackCustom {
|
|
|
11186
11251
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
11187
11252
|
* ```
|
|
11188
11253
|
*/
|
|
11189
|
-
POST_SPIKES_RENDER =
|
|
11254
|
+
POST_SPIKES_RENDER = 113,
|
|
11190
11255
|
/**
|
|
11191
11256
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
11192
11257
|
*
|
|
@@ -11198,7 +11263,7 @@ export declare enum ModCallbackCustom {
|
|
|
11198
11263
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
11199
11264
|
* ```
|
|
11200
11265
|
*/
|
|
11201
|
-
POST_SPIKES_UPDATE =
|
|
11266
|
+
POST_SPIKES_UPDATE = 114,
|
|
11202
11267
|
/**
|
|
11203
11268
|
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
11204
11269
|
* to specify extra arguments for additional filtration.
|
|
@@ -11213,7 +11278,7 @@ export declare enum ModCallbackCustom {
|
|
|
11213
11278
|
* function postTearInitFilter(tear: EntityTear): void {}
|
|
11214
11279
|
* ```
|
|
11215
11280
|
*/
|
|
11216
|
-
POST_TEAR_INIT_FILTER =
|
|
11281
|
+
POST_TEAR_INIT_FILTER = 115,
|
|
11217
11282
|
/**
|
|
11218
11283
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11219
11284
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -11231,7 +11296,7 @@ export declare enum ModCallbackCustom {
|
|
|
11231
11296
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
11232
11297
|
* ```
|
|
11233
11298
|
*/
|
|
11234
|
-
POST_TEAR_INIT_LATE =
|
|
11299
|
+
POST_TEAR_INIT_LATE = 116,
|
|
11235
11300
|
/**
|
|
11236
11301
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11237
11302
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -11248,7 +11313,7 @@ export declare enum ModCallbackCustom {
|
|
|
11248
11313
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
11249
11314
|
* ```
|
|
11250
11315
|
*/
|
|
11251
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
11316
|
+
POST_TEAR_INIT_VERY_LATE = 117,
|
|
11252
11317
|
/**
|
|
11253
11318
|
* The exact same thing as the vanilla `POST_TEAR_RENDER` callback, except this callback allows
|
|
11254
11319
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11263,7 +11328,7 @@ export declare enum ModCallbackCustom {
|
|
|
11263
11328
|
* function postTearRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
|
|
11264
11329
|
* ```
|
|
11265
11330
|
*/
|
|
11266
|
-
POST_TEAR_RENDER_FILTER =
|
|
11331
|
+
POST_TEAR_RENDER_FILTER = 118,
|
|
11267
11332
|
/**
|
|
11268
11333
|
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
11269
11334
|
* to specify extra arguments for additional filtration.
|
|
@@ -11278,7 +11343,7 @@ export declare enum ModCallbackCustom {
|
|
|
11278
11343
|
* function postTearUpdateFilter(tear: EntityTear): void {}
|
|
11279
11344
|
* ```
|
|
11280
11345
|
*/
|
|
11281
|
-
POST_TEAR_UPDATE_FILTER =
|
|
11346
|
+
POST_TEAR_UPDATE_FILTER = 119,
|
|
11282
11347
|
/**
|
|
11283
11348
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
11284
11349
|
*
|
|
@@ -11290,7 +11355,7 @@ export declare enum ModCallbackCustom {
|
|
|
11290
11355
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
11291
11356
|
* ```
|
|
11292
11357
|
*/
|
|
11293
|
-
POST_TNT_RENDER =
|
|
11358
|
+
POST_TNT_RENDER = 120,
|
|
11294
11359
|
/**
|
|
11295
11360
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
11296
11361
|
*
|
|
@@ -11302,7 +11367,7 @@ export declare enum ModCallbackCustom {
|
|
|
11302
11367
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
11303
11368
|
* ```
|
|
11304
11369
|
*/
|
|
11305
|
-
POST_TNT_UPDATE =
|
|
11370
|
+
POST_TNT_UPDATE = 121,
|
|
11306
11371
|
/**
|
|
11307
11372
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
11308
11373
|
* transformation.
|
|
@@ -11321,7 +11386,7 @@ export declare enum ModCallbackCustom {
|
|
|
11321
11386
|
* ): void {}
|
|
11322
11387
|
* ```
|
|
11323
11388
|
*/
|
|
11324
|
-
POST_TRANSFORMATION =
|
|
11389
|
+
POST_TRANSFORMATION = 122,
|
|
11325
11390
|
/**
|
|
11326
11391
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
11327
11392
|
*
|
|
@@ -11336,7 +11401,7 @@ export declare enum ModCallbackCustom {
|
|
|
11336
11401
|
* ): void {}
|
|
11337
11402
|
* ```
|
|
11338
11403
|
*/
|
|
11339
|
-
POST_TRINKET_BREAK =
|
|
11404
|
+
POST_TRINKET_BREAK = 123,
|
|
11340
11405
|
/**
|
|
11341
11406
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
11342
11407
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -11352,7 +11417,26 @@ export declare enum ModCallbackCustom {
|
|
|
11352
11417
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
11353
11418
|
* ```
|
|
11354
11419
|
*/
|
|
11355
|
-
PRE_BERSERK_DEATH =
|
|
11420
|
+
PRE_BERSERK_DEATH = 124,
|
|
11421
|
+
/**
|
|
11422
|
+
* The exact same thing as the vanilla `PRE_BOMB_COLLISION` callback, except this callback allows
|
|
11423
|
+
* you to specify extra arguments for additional filtration.
|
|
11424
|
+
*
|
|
11425
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11426
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11427
|
+
* matches the `BombVariant` provided.
|
|
11428
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11429
|
+
* matches the sub-type provided.
|
|
11430
|
+
*
|
|
11431
|
+
* ```ts
|
|
11432
|
+
* function preBombCollisionFilter(
|
|
11433
|
+
* bomb: EntityBomb,
|
|
11434
|
+
* collider: Entity,
|
|
11435
|
+
* low: boolean,
|
|
11436
|
+
* ): void {}
|
|
11437
|
+
* ```
|
|
11438
|
+
*/
|
|
11439
|
+
PRE_BOMB_COLLISION_FILTER = 125,
|
|
11356
11440
|
/**
|
|
11357
11441
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
11358
11442
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -11371,7 +11455,7 @@ export declare enum ModCallbackCustom {
|
|
|
11371
11455
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
11372
11456
|
* ```
|
|
11373
11457
|
*/
|
|
11374
|
-
PRE_CUSTOM_REVIVE =
|
|
11458
|
+
PRE_CUSTOM_REVIVE = 126,
|
|
11375
11459
|
/**
|
|
11376
11460
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
11377
11461
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11396,7 +11480,7 @@ export declare enum ModCallbackCustom {
|
|
|
11396
11480
|
* ): [EntityType, int, int, int] | undefined {}
|
|
11397
11481
|
* ```
|
|
11398
11482
|
*/
|
|
11399
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
11483
|
+
PRE_ENTITY_SPAWN_FILTER = 127,
|
|
11400
11484
|
/**
|
|
11401
11485
|
* The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
|
|
11402
11486
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11415,7 +11499,7 @@ export declare enum ModCallbackCustom {
|
|
|
11415
11499
|
* ): void {}
|
|
11416
11500
|
* ```
|
|
11417
11501
|
*/
|
|
11418
|
-
PRE_FAMILIAR_COLLISION_FILTER =
|
|
11502
|
+
PRE_FAMILIAR_COLLISION_FILTER = 128,
|
|
11419
11503
|
/**
|
|
11420
11504
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
11421
11505
|
* meets all of the conditions to pick it up.
|
|
@@ -11435,7 +11519,7 @@ export declare enum ModCallbackCustom {
|
|
|
11435
11519
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
11436
11520
|
* ```
|
|
11437
11521
|
*/
|
|
11438
|
-
PRE_GET_PEDESTAL =
|
|
11522
|
+
PRE_GET_PEDESTAL = 129,
|
|
11439
11523
|
/**
|
|
11440
11524
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
11441
11525
|
* the player begins to hold the item above their head).
|
|
@@ -11455,7 +11539,7 @@ export declare enum ModCallbackCustom {
|
|
|
11455
11539
|
* ): void {}
|
|
11456
11540
|
* ```
|
|
11457
11541
|
*/
|
|
11458
|
-
PRE_ITEM_PICKUP =
|
|
11542
|
+
PRE_ITEM_PICKUP = 130,
|
|
11459
11543
|
/**
|
|
11460
11544
|
* The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
|
|
11461
11545
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11474,7 +11558,7 @@ export declare enum ModCallbackCustom {
|
|
|
11474
11558
|
* ): void {}
|
|
11475
11559
|
* ```
|
|
11476
11560
|
*/
|
|
11477
|
-
PRE_KNIFE_COLLISION_FILTER =
|
|
11561
|
+
PRE_KNIFE_COLLISION_FILTER = 131,
|
|
11478
11562
|
/**
|
|
11479
11563
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
11480
11564
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -11488,7 +11572,7 @@ export declare enum ModCallbackCustom {
|
|
|
11488
11572
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
11489
11573
|
* ```
|
|
11490
11574
|
*/
|
|
11491
|
-
PRE_NEW_LEVEL =
|
|
11575
|
+
PRE_NEW_LEVEL = 132,
|
|
11492
11576
|
/**
|
|
11493
11577
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
11494
11578
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11509,7 +11593,7 @@ export declare enum ModCallbackCustom {
|
|
|
11509
11593
|
* ): boolean | undefined {}
|
|
11510
11594
|
* ```
|
|
11511
11595
|
*/
|
|
11512
|
-
PRE_NPC_COLLISION_FILTER =
|
|
11596
|
+
PRE_NPC_COLLISION_FILTER = 133,
|
|
11513
11597
|
/**
|
|
11514
11598
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
11515
11599
|
* to specify extra arguments for additional filtration.
|
|
@@ -11526,7 +11610,7 @@ export declare enum ModCallbackCustom {
|
|
|
11526
11610
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
11527
11611
|
* ```
|
|
11528
11612
|
*/
|
|
11529
|
-
PRE_NPC_UPDATE_FILTER =
|
|
11613
|
+
PRE_NPC_UPDATE_FILTER = 134,
|
|
11530
11614
|
/**
|
|
11531
11615
|
* The exact same thing as the vanilla `PRE_PROJECTILE_COLLISION` callback, except this callback
|
|
11532
11616
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11545,7 +11629,7 @@ export declare enum ModCallbackCustom {
|
|
|
11545
11629
|
* ): void {}
|
|
11546
11630
|
* ```
|
|
11547
11631
|
*/
|
|
11548
|
-
PRE_PROJECTILE_COLLISION_FILTER =
|
|
11632
|
+
PRE_PROJECTILE_COLLISION_FILTER = 135,
|
|
11549
11633
|
/**
|
|
11550
11634
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
11551
11635
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11568,7 +11652,7 @@ export declare enum ModCallbackCustom {
|
|
|
11568
11652
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
11569
11653
|
* ```
|
|
11570
11654
|
*/
|
|
11571
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
11655
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 136,
|
|
11572
11656
|
/**
|
|
11573
11657
|
* The exact same thing as the vanilla `PRE_TEAR_COLLISION` callback, except this callback allows
|
|
11574
11658
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11587,7 +11671,7 @@ export declare enum ModCallbackCustom {
|
|
|
11587
11671
|
* ): void {}
|
|
11588
11672
|
* ```
|
|
11589
11673
|
*/
|
|
11590
|
-
PRE_TEAR_COLLISION_FILTER =
|
|
11674
|
+
PRE_TEAR_COLLISION_FILTER = 137
|
|
11591
11675
|
}
|
|
11592
11676
|
|
|
11593
11677
|
/**
|