isaacscript-common 26.3.0 → 26.4.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 +120 -93
- package/dist/isaacscript-common.lua +127 -94
- package/dist/src/callbackClasses.d.ts +1 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +5 -0
- package/dist/src/callbacks.d.ts +94 -93
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +1 -0
- package/dist/src/classes/callbacks/PostEntityKillFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostEntityKillFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostEntityKillFilter.lua +23 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +110 -93
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +95 -93
- package/dist/src/functions/utils.d.ts +4 -0
- package/dist/src/functions/utils.d.ts.map +1 -1
- package/dist/src/functions/utils.lua +4 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +6 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbackClasses.ts +1 -0
- package/src/callbacks.ts +1 -0
- package/src/classes/callbacks/PostEntityKillFilter.ts +22 -0
- package/src/enums/ModCallbackCustom.ts +18 -0
- package/src/functions/utils.ts +4 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +7 -0
package/dist/index.rollup.d.ts
CHANGED
|
@@ -164,6 +164,12 @@ declare interface AddCallbackParametersCustom {
|
|
|
164
164
|
effectVariant?: EffectVariant,
|
|
165
165
|
subType?: int
|
|
166
166
|
];
|
|
167
|
+
[ModCallbackCustom.POST_ENTITY_KILL_FILTER]: [
|
|
168
|
+
callback: (entity: Entity) => void,
|
|
169
|
+
entityType?: EntityType,
|
|
170
|
+
variant?: int,
|
|
171
|
+
subType?: int
|
|
172
|
+
];
|
|
167
173
|
[ModCallbackCustom.POST_ESAU_JR]: [callback: (player: EntityPlayer) => void];
|
|
168
174
|
[ModCallbackCustom.POST_FAMILIAR_INIT_LATE]: [
|
|
169
175
|
callback: (familiar: EntityFamiliar) => void,
|
|
@@ -7962,6 +7968,10 @@ export declare function isMoveActionTriggeredOnAnyInput(): boolean;
|
|
|
7962
7968
|
* Helper function to detect if there is two or more players currently playing.
|
|
7963
7969
|
*
|
|
7964
7970
|
* Specifically, this function looks for unique `ControllerIndex` values across all players.
|
|
7971
|
+
*
|
|
7972
|
+
* This function is not safe to use in the `POST_PLAYER_INIT` callback, because the
|
|
7973
|
+
* `ControllerIndex` will not be set properly. As a workaround, you can use it in the
|
|
7974
|
+
* `POST_PLAYER_INIT_FIRST` callback (or some other callback like `POST_UPDATE`).
|
|
7965
7975
|
*/
|
|
7966
7976
|
export declare function isMultiplayer(): boolean;
|
|
7967
7977
|
|
|
@@ -9356,6 +9366,23 @@ export declare enum ModCallbackCustom {
|
|
|
9356
9366
|
* ```
|
|
9357
9367
|
*/
|
|
9358
9368
|
POST_EFFECT_STATE_CHANGED = 17,
|
|
9369
|
+
/**
|
|
9370
|
+
* The exact same thing as the vanilla `POST_ENTITY_KILL` callback, except this callback allows
|
|
9371
|
+
* you to specify extra arguments for additional filtration.
|
|
9372
|
+
*
|
|
9373
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9374
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9375
|
+
* matches the `EntityType` provided.
|
|
9376
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
9377
|
+
* matches the variant provided.
|
|
9378
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9379
|
+
* matches the sub-type provided.
|
|
9380
|
+
*
|
|
9381
|
+
* ```ts
|
|
9382
|
+
* function postEntityKillFilter(entity: Entity): void {}
|
|
9383
|
+
* ```
|
|
9384
|
+
*/
|
|
9385
|
+
POST_ENTITY_KILL_FILTER = 18,
|
|
9359
9386
|
/**
|
|
9360
9387
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
9361
9388
|
* updated to the new character until a game frame has passed.)
|
|
@@ -9364,7 +9391,7 @@ export declare enum ModCallbackCustom {
|
|
|
9364
9391
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
9365
9392
|
* ```
|
|
9366
9393
|
*/
|
|
9367
|
-
POST_ESAU_JR =
|
|
9394
|
+
POST_ESAU_JR = 19,
|
|
9368
9395
|
/**
|
|
9369
9396
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
9370
9397
|
*
|
|
@@ -9381,7 +9408,7 @@ export declare enum ModCallbackCustom {
|
|
|
9381
9408
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
9382
9409
|
* ```
|
|
9383
9410
|
*/
|
|
9384
|
-
POST_FAMILIAR_INIT_LATE =
|
|
9411
|
+
POST_FAMILIAR_INIT_LATE = 20,
|
|
9385
9412
|
/**
|
|
9386
9413
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
9387
9414
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -9401,7 +9428,7 @@ export declare enum ModCallbackCustom {
|
|
|
9401
9428
|
* ): void {}
|
|
9402
9429
|
* ```
|
|
9403
9430
|
*/
|
|
9404
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
9431
|
+
POST_FAMILIAR_STATE_CHANGED = 21,
|
|
9405
9432
|
/**
|
|
9406
9433
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
9407
9434
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -9413,7 +9440,7 @@ export declare enum ModCallbackCustom {
|
|
|
9413
9440
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
9414
9441
|
* ```
|
|
9415
9442
|
*/
|
|
9416
|
-
POST_FIRST_ESAU_JR =
|
|
9443
|
+
POST_FIRST_ESAU_JR = 22,
|
|
9417
9444
|
/**
|
|
9418
9445
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
9419
9446
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -9426,7 +9453,7 @@ export declare enum ModCallbackCustom {
|
|
|
9426
9453
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
9427
9454
|
* ```
|
|
9428
9455
|
*/
|
|
9429
|
-
POST_FIRST_FLIP =
|
|
9456
|
+
POST_FIRST_FLIP = 23,
|
|
9430
9457
|
/**
|
|
9431
9458
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
9432
9459
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -9439,7 +9466,7 @@ export declare enum ModCallbackCustom {
|
|
|
9439
9466
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
9440
9467
|
* ```
|
|
9441
9468
|
*/
|
|
9442
|
-
POST_FLIP =
|
|
9469
|
+
POST_FLIP = 24,
|
|
9443
9470
|
/**
|
|
9444
9471
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
9445
9472
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -9458,7 +9485,7 @@ export declare enum ModCallbackCustom {
|
|
|
9458
9485
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
9459
9486
|
* ```
|
|
9460
9487
|
*/
|
|
9461
|
-
POST_GAME_STARTED_REORDERED =
|
|
9488
|
+
POST_GAME_STARTED_REORDERED = 25,
|
|
9462
9489
|
/**
|
|
9463
9490
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
9464
9491
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -9477,7 +9504,7 @@ export declare enum ModCallbackCustom {
|
|
|
9477
9504
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
9478
9505
|
* ```
|
|
9479
9506
|
*/
|
|
9480
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
9507
|
+
POST_GAME_STARTED_REORDERED_LAST = 26,
|
|
9481
9508
|
/**
|
|
9482
9509
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
9483
9510
|
*
|
|
@@ -9485,7 +9512,7 @@ export declare enum ModCallbackCustom {
|
|
|
9485
9512
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
9486
9513
|
* ```
|
|
9487
9514
|
*/
|
|
9488
|
-
POST_GREED_MODE_WAVE =
|
|
9515
|
+
POST_GREED_MODE_WAVE = 27,
|
|
9489
9516
|
/**
|
|
9490
9517
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
9491
9518
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -9504,7 +9531,7 @@ export declare enum ModCallbackCustom {
|
|
|
9504
9531
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
9505
9532
|
* ```
|
|
9506
9533
|
*/
|
|
9507
|
-
POST_GRID_ENTITY_BROKEN =
|
|
9534
|
+
POST_GRID_ENTITY_BROKEN = 28,
|
|
9508
9535
|
/**
|
|
9509
9536
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
9510
9537
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -9532,7 +9559,7 @@ export declare enum ModCallbackCustom {
|
|
|
9532
9559
|
* ): void {}
|
|
9533
9560
|
* ```
|
|
9534
9561
|
*/
|
|
9535
|
-
POST_GRID_ENTITY_COLLISION =
|
|
9562
|
+
POST_GRID_ENTITY_COLLISION = 29,
|
|
9536
9563
|
/**
|
|
9537
9564
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
9538
9565
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9549,7 +9576,7 @@ export declare enum ModCallbackCustom {
|
|
|
9549
9576
|
* ): void {}
|
|
9550
9577
|
* ```
|
|
9551
9578
|
*/
|
|
9552
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
9579
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 30,
|
|
9553
9580
|
/**
|
|
9554
9581
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
9555
9582
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9573,7 +9600,7 @@ export declare enum ModCallbackCustom {
|
|
|
9573
9600
|
* ): void {}
|
|
9574
9601
|
* ```
|
|
9575
9602
|
*/
|
|
9576
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
9603
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 31,
|
|
9577
9604
|
/**
|
|
9578
9605
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
9579
9606
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -9590,7 +9617,7 @@ export declare enum ModCallbackCustom {
|
|
|
9590
9617
|
* ): void {}
|
|
9591
9618
|
* ```
|
|
9592
9619
|
*/
|
|
9593
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
9620
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 32,
|
|
9594
9621
|
/**
|
|
9595
9622
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
9596
9623
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9607,7 +9634,7 @@ export declare enum ModCallbackCustom {
|
|
|
9607
9634
|
* ): void {}
|
|
9608
9635
|
* ```
|
|
9609
9636
|
*/
|
|
9610
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
9637
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 33,
|
|
9611
9638
|
/**
|
|
9612
9639
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
9613
9640
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9624,7 +9651,7 @@ export declare enum ModCallbackCustom {
|
|
|
9624
9651
|
* ): void {}
|
|
9625
9652
|
* ```
|
|
9626
9653
|
*/
|
|
9627
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
9654
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 34,
|
|
9628
9655
|
/**
|
|
9629
9656
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
9630
9657
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -9643,7 +9670,7 @@ export declare enum ModCallbackCustom {
|
|
|
9643
9670
|
* ): void {}
|
|
9644
9671
|
* ```
|
|
9645
9672
|
*/
|
|
9646
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
9673
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 35,
|
|
9647
9674
|
/**
|
|
9648
9675
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
9649
9676
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9660,7 +9687,7 @@ export declare enum ModCallbackCustom {
|
|
|
9660
9687
|
* ): void {}
|
|
9661
9688
|
* ```
|
|
9662
9689
|
*/
|
|
9663
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
9690
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 36,
|
|
9664
9691
|
/**
|
|
9665
9692
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
9666
9693
|
*
|
|
@@ -9682,7 +9709,7 @@ export declare enum ModCallbackCustom {
|
|
|
9682
9709
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
9683
9710
|
* ```
|
|
9684
9711
|
*/
|
|
9685
|
-
POST_GRID_ENTITY_INIT =
|
|
9712
|
+
POST_GRID_ENTITY_INIT = 37,
|
|
9686
9713
|
/**
|
|
9687
9714
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
9688
9715
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -9707,7 +9734,7 @@ export declare enum ModCallbackCustom {
|
|
|
9707
9734
|
* ): void {}
|
|
9708
9735
|
* ```
|
|
9709
9736
|
*/
|
|
9710
|
-
POST_GRID_ENTITY_REMOVE =
|
|
9737
|
+
POST_GRID_ENTITY_REMOVE = 38,
|
|
9711
9738
|
/**
|
|
9712
9739
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
9713
9740
|
*
|
|
@@ -9724,7 +9751,7 @@ export declare enum ModCallbackCustom {
|
|
|
9724
9751
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
9725
9752
|
* ```
|
|
9726
9753
|
*/
|
|
9727
|
-
POST_GRID_ENTITY_RENDER =
|
|
9754
|
+
POST_GRID_ENTITY_RENDER = 39,
|
|
9728
9755
|
/**
|
|
9729
9756
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
9730
9757
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -9746,7 +9773,7 @@ export declare enum ModCallbackCustom {
|
|
|
9746
9773
|
* ): void {}
|
|
9747
9774
|
* ```
|
|
9748
9775
|
*/
|
|
9749
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
9776
|
+
POST_GRID_ENTITY_STATE_CHANGED = 40,
|
|
9750
9777
|
/**
|
|
9751
9778
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
9752
9779
|
*
|
|
@@ -9763,7 +9790,7 @@ export declare enum ModCallbackCustom {
|
|
|
9763
9790
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
9764
9791
|
* ```
|
|
9765
9792
|
*/
|
|
9766
|
-
POST_GRID_ENTITY_UPDATE =
|
|
9793
|
+
POST_GRID_ENTITY_UPDATE = 41,
|
|
9767
9794
|
/**
|
|
9768
9795
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
9769
9796
|
* temporary collectible effect.
|
|
@@ -9786,7 +9813,7 @@ export declare enum ModCallbackCustom {
|
|
|
9786
9813
|
* ): void {}
|
|
9787
9814
|
* ```
|
|
9788
9815
|
*/
|
|
9789
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
9816
|
+
POST_HOLY_MANTLE_REMOVED = 42,
|
|
9790
9817
|
/**
|
|
9791
9818
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
9792
9819
|
* active collectible item, implying that the item was just used.
|
|
@@ -9809,7 +9836,7 @@ export declare enum ModCallbackCustom {
|
|
|
9809
9836
|
* ): void {}
|
|
9810
9837
|
* ```
|
|
9811
9838
|
*/
|
|
9812
|
-
POST_ITEM_DISCHARGE =
|
|
9839
|
+
POST_ITEM_DISCHARGE = 43,
|
|
9813
9840
|
/**
|
|
9814
9841
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
9815
9842
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -9830,7 +9857,7 @@ export declare enum ModCallbackCustom {
|
|
|
9830
9857
|
* ): void {}
|
|
9831
9858
|
* ```
|
|
9832
9859
|
*/
|
|
9833
|
-
POST_ITEM_PICKUP =
|
|
9860
|
+
POST_ITEM_PICKUP = 44,
|
|
9834
9861
|
/**
|
|
9835
9862
|
* Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
|
|
9836
9863
|
* released. (In other words, the callback only fires when the "pressed" status is different than
|
|
@@ -9846,7 +9873,7 @@ export declare enum ModCallbackCustom {
|
|
|
9846
9873
|
* function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
|
|
9847
9874
|
* ```
|
|
9848
9875
|
*/
|
|
9849
|
-
POST_KEYBOARD_CHANGED =
|
|
9876
|
+
POST_KEYBOARD_CHANGED = 45,
|
|
9850
9877
|
/**
|
|
9851
9878
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
9852
9879
|
*
|
|
@@ -9863,7 +9890,7 @@ export declare enum ModCallbackCustom {
|
|
|
9863
9890
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
9864
9891
|
* ```
|
|
9865
9892
|
*/
|
|
9866
|
-
POST_KNIFE_INIT_LATE =
|
|
9893
|
+
POST_KNIFE_INIT_LATE = 46,
|
|
9867
9894
|
/**
|
|
9868
9895
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
9869
9896
|
*
|
|
@@ -9880,7 +9907,7 @@ export declare enum ModCallbackCustom {
|
|
|
9880
9907
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
9881
9908
|
* ```
|
|
9882
9909
|
*/
|
|
9883
|
-
POST_LASER_INIT_LATE =
|
|
9910
|
+
POST_LASER_INIT_LATE = 47,
|
|
9884
9911
|
/**
|
|
9885
9912
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
9886
9913
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -9897,7 +9924,7 @@ export declare enum ModCallbackCustom {
|
|
|
9897
9924
|
* function postNewLevelReordered(): void {}
|
|
9898
9925
|
* ```
|
|
9899
9926
|
*/
|
|
9900
|
-
POST_NEW_LEVEL_REORDERED =
|
|
9927
|
+
POST_NEW_LEVEL_REORDERED = 48,
|
|
9901
9928
|
/**
|
|
9902
9929
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
9903
9930
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -9908,7 +9935,7 @@ export declare enum ModCallbackCustom {
|
|
|
9908
9935
|
* function postNewRoomEarly(): void {}
|
|
9909
9936
|
* ```
|
|
9910
9937
|
*/
|
|
9911
|
-
POST_NEW_ROOM_EARLY =
|
|
9938
|
+
POST_NEW_ROOM_EARLY = 49,
|
|
9912
9939
|
/**
|
|
9913
9940
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
9914
9941
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -9925,7 +9952,7 @@ export declare enum ModCallbackCustom {
|
|
|
9925
9952
|
* function postNewRoomReordered(): void {}
|
|
9926
9953
|
* ```
|
|
9927
9954
|
*/
|
|
9928
|
-
POST_NEW_ROOM_REORDERED =
|
|
9955
|
+
POST_NEW_ROOM_REORDERED = 50,
|
|
9929
9956
|
/**
|
|
9930
9957
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
9931
9958
|
* to specify extra arguments for additional filtration.
|
|
@@ -9942,7 +9969,7 @@ export declare enum ModCallbackCustom {
|
|
|
9942
9969
|
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
9943
9970
|
* ```
|
|
9944
9971
|
*/
|
|
9945
|
-
POST_NPC_DEATH_FILTER =
|
|
9972
|
+
POST_NPC_DEATH_FILTER = 51,
|
|
9946
9973
|
/**
|
|
9947
9974
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
9948
9975
|
* to specify extra arguments for additional filtration.
|
|
@@ -9959,7 +9986,7 @@ export declare enum ModCallbackCustom {
|
|
|
9959
9986
|
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
9960
9987
|
* ```
|
|
9961
9988
|
*/
|
|
9962
|
-
POST_NPC_INIT_FILTER =
|
|
9989
|
+
POST_NPC_INIT_FILTER = 52,
|
|
9963
9990
|
/**
|
|
9964
9991
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
9965
9992
|
*
|
|
@@ -9978,7 +10005,7 @@ export declare enum ModCallbackCustom {
|
|
|
9978
10005
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
9979
10006
|
* ```
|
|
9980
10007
|
*/
|
|
9981
|
-
POST_NPC_INIT_LATE =
|
|
10008
|
+
POST_NPC_INIT_LATE = 53,
|
|
9982
10009
|
/**
|
|
9983
10010
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
9984
10011
|
* to specify extra arguments for additional filtration.
|
|
@@ -9995,7 +10022,7 @@ export declare enum ModCallbackCustom {
|
|
|
9995
10022
|
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
9996
10023
|
* ```
|
|
9997
10024
|
*/
|
|
9998
|
-
POST_NPC_RENDER_FILTER =
|
|
10025
|
+
POST_NPC_RENDER_FILTER = 54,
|
|
9999
10026
|
/**
|
|
10000
10027
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
10001
10028
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -10016,7 +10043,7 @@ export declare enum ModCallbackCustom {
|
|
|
10016
10043
|
* ): void {}
|
|
10017
10044
|
* ```
|
|
10018
10045
|
*/
|
|
10019
|
-
POST_NPC_STATE_CHANGED =
|
|
10046
|
+
POST_NPC_STATE_CHANGED = 55,
|
|
10020
10047
|
/**
|
|
10021
10048
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
10022
10049
|
* to specify extra arguments for additional filtration.
|
|
@@ -10033,7 +10060,7 @@ export declare enum ModCallbackCustom {
|
|
|
10033
10060
|
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
10034
10061
|
* ```
|
|
10035
10062
|
*/
|
|
10036
|
-
POST_NPC_UPDATE_FILTER =
|
|
10063
|
+
POST_NPC_UPDATE_FILTER = 56,
|
|
10037
10064
|
/**
|
|
10038
10065
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10039
10066
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10058,7 +10085,7 @@ export declare enum ModCallbackCustom {
|
|
|
10058
10085
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
10059
10086
|
* ```
|
|
10060
10087
|
*/
|
|
10061
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
10088
|
+
POST_PEFFECT_UPDATE_REORDERED = 57,
|
|
10062
10089
|
/**
|
|
10063
10090
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
|
|
10064
10091
|
* than what it was on the previous frame.
|
|
@@ -10079,7 +10106,7 @@ export declare enum ModCallbackCustom {
|
|
|
10079
10106
|
* ): void {}
|
|
10080
10107
|
* ```
|
|
10081
10108
|
*/
|
|
10082
|
-
POST_PICKUP_CHANGED =
|
|
10109
|
+
POST_PICKUP_CHANGED = 58,
|
|
10083
10110
|
/**
|
|
10084
10111
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
10085
10112
|
*
|
|
@@ -10098,7 +10125,7 @@ export declare enum ModCallbackCustom {
|
|
|
10098
10125
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
10099
10126
|
* ```
|
|
10100
10127
|
*/
|
|
10101
|
-
POST_PICKUP_COLLECT =
|
|
10128
|
+
POST_PICKUP_COLLECT = 59,
|
|
10102
10129
|
/**
|
|
10103
10130
|
* The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
|
|
10104
10131
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10113,7 +10140,7 @@ export declare enum ModCallbackCustom {
|
|
|
10113
10140
|
* function postPickupInitFilter(pickup: EntityPickup): void {}
|
|
10114
10141
|
* ```
|
|
10115
10142
|
*/
|
|
10116
|
-
POST_PICKUP_INIT_FILTER =
|
|
10143
|
+
POST_PICKUP_INIT_FILTER = 60,
|
|
10117
10144
|
/**
|
|
10118
10145
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
10119
10146
|
* respective pickup on the run.
|
|
@@ -10131,7 +10158,7 @@ export declare enum ModCallbackCustom {
|
|
|
10131
10158
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
10132
10159
|
* ```
|
|
10133
10160
|
*/
|
|
10134
|
-
POST_PICKUP_INIT_FIRST =
|
|
10161
|
+
POST_PICKUP_INIT_FIRST = 61,
|
|
10135
10162
|
/**
|
|
10136
10163
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
10137
10164
|
*
|
|
@@ -10148,7 +10175,7 @@ export declare enum ModCallbackCustom {
|
|
|
10148
10175
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
10149
10176
|
* ```
|
|
10150
10177
|
*/
|
|
10151
|
-
POST_PICKUP_INIT_LATE =
|
|
10178
|
+
POST_PICKUP_INIT_LATE = 62,
|
|
10152
10179
|
/**
|
|
10153
10180
|
* The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
|
|
10154
10181
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10163,7 +10190,7 @@ export declare enum ModCallbackCustom {
|
|
|
10163
10190
|
* function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
|
|
10164
10191
|
* ```
|
|
10165
10192
|
*/
|
|
10166
|
-
POST_PICKUP_RENDER_FILTER =
|
|
10193
|
+
POST_PICKUP_RENDER_FILTER = 63,
|
|
10167
10194
|
/**
|
|
10168
10195
|
* The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
|
|
10169
10196
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10182,7 +10209,7 @@ export declare enum ModCallbackCustom {
|
|
|
10182
10209
|
* ): [PickupVariant, int] | undefined {}
|
|
10183
10210
|
* ```
|
|
10184
10211
|
*/
|
|
10185
|
-
POST_PICKUP_SELECTION_FILTER =
|
|
10212
|
+
POST_PICKUP_SELECTION_FILTER = 64,
|
|
10186
10213
|
/**
|
|
10187
10214
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
10188
10215
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -10201,7 +10228,7 @@ export declare enum ModCallbackCustom {
|
|
|
10201
10228
|
* ): void {}
|
|
10202
10229
|
* ```
|
|
10203
10230
|
*/
|
|
10204
|
-
POST_PICKUP_STATE_CHANGED =
|
|
10231
|
+
POST_PICKUP_STATE_CHANGED = 65,
|
|
10205
10232
|
/**
|
|
10206
10233
|
* The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
|
|
10207
10234
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10216,7 +10243,7 @@ export declare enum ModCallbackCustom {
|
|
|
10216
10243
|
* function postPickupUpdateFilter(pickup: EntityPickup): void {}
|
|
10217
10244
|
* ```
|
|
10218
10245
|
*/
|
|
10219
|
-
POST_PICKUP_UPDATE_FILTER =
|
|
10246
|
+
POST_PICKUP_UPDATE_FILTER = 66,
|
|
10220
10247
|
/**
|
|
10221
10248
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
10222
10249
|
*
|
|
@@ -10228,7 +10255,7 @@ export declare enum ModCallbackCustom {
|
|
|
10228
10255
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
10229
10256
|
* ```
|
|
10230
10257
|
*/
|
|
10231
|
-
POST_PIT_RENDER =
|
|
10258
|
+
POST_PIT_RENDER = 67,
|
|
10232
10259
|
/**
|
|
10233
10260
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
10234
10261
|
*
|
|
@@ -10240,7 +10267,7 @@ export declare enum ModCallbackCustom {
|
|
|
10240
10267
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
10241
10268
|
* ```
|
|
10242
10269
|
*/
|
|
10243
|
-
POST_PIT_UPDATE =
|
|
10270
|
+
POST_PIT_UPDATE = 68,
|
|
10244
10271
|
/**
|
|
10245
10272
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
10246
10273
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -10262,7 +10289,7 @@ export declare enum ModCallbackCustom {
|
|
|
10262
10289
|
* ): void {}
|
|
10263
10290
|
* ```
|
|
10264
10291
|
*/
|
|
10265
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
10292
|
+
POST_PLAYER_CHANGE_HEALTH = 69,
|
|
10266
10293
|
/**
|
|
10267
10294
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
10268
10295
|
* from what they were on the previous frame.
|
|
@@ -10292,7 +10319,7 @@ export declare enum ModCallbackCustom {
|
|
|
10292
10319
|
* ) => void {}
|
|
10293
10320
|
* ```
|
|
10294
10321
|
*/
|
|
10295
|
-
POST_PLAYER_CHANGE_STAT =
|
|
10322
|
+
POST_PLAYER_CHANGE_STAT = 70,
|
|
10296
10323
|
/**
|
|
10297
10324
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
10298
10325
|
* type
|
|
@@ -10315,7 +10342,7 @@ export declare enum ModCallbackCustom {
|
|
|
10315
10342
|
* ): void {}
|
|
10316
10343
|
* ```
|
|
10317
10344
|
*/
|
|
10318
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
10345
|
+
POST_PLAYER_CHANGE_TYPE = 71,
|
|
10319
10346
|
/**
|
|
10320
10347
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10321
10348
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10332,7 +10359,7 @@ export declare enum ModCallbackCustom {
|
|
|
10332
10359
|
* ): void {}
|
|
10333
10360
|
* ```
|
|
10334
10361
|
*/
|
|
10335
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
10362
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 72,
|
|
10336
10363
|
/**
|
|
10337
10364
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10338
10365
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10349,7 +10376,7 @@ export declare enum ModCallbackCustom {
|
|
|
10349
10376
|
* ): void {}
|
|
10350
10377
|
* ```
|
|
10351
10378
|
*/
|
|
10352
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
10379
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 73,
|
|
10353
10380
|
/**
|
|
10354
10381
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
10355
10382
|
* prevent the fatal damage.
|
|
@@ -10367,7 +10394,7 @@ export declare enum ModCallbackCustom {
|
|
|
10367
10394
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
10368
10395
|
* ```
|
|
10369
10396
|
*/
|
|
10370
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
10397
|
+
POST_PLAYER_FATAL_DAMAGE = 74,
|
|
10371
10398
|
/**
|
|
10372
10399
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
10373
10400
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -10389,7 +10416,7 @@ export declare enum ModCallbackCustom {
|
|
|
10389
10416
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
10390
10417
|
* ```
|
|
10391
10418
|
*/
|
|
10392
|
-
POST_PLAYER_INIT_FIRST =
|
|
10419
|
+
POST_PLAYER_INIT_FIRST = 75,
|
|
10393
10420
|
/**
|
|
10394
10421
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
10395
10422
|
*
|
|
@@ -10409,7 +10436,7 @@ export declare enum ModCallbackCustom {
|
|
|
10409
10436
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
10410
10437
|
* ```
|
|
10411
10438
|
*/
|
|
10412
|
-
POST_PLAYER_INIT_LATE =
|
|
10439
|
+
POST_PLAYER_INIT_LATE = 76,
|
|
10413
10440
|
/**
|
|
10414
10441
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
10415
10442
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -10433,7 +10460,7 @@ export declare enum ModCallbackCustom {
|
|
|
10433
10460
|
* function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
|
|
10434
10461
|
* ```
|
|
10435
10462
|
*/
|
|
10436
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
10463
|
+
POST_PLAYER_RENDER_REORDERED = 77,
|
|
10437
10464
|
/**
|
|
10438
10465
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10439
10466
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10458,7 +10485,7 @@ export declare enum ModCallbackCustom {
|
|
|
10458
10485
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
10459
10486
|
* ```
|
|
10460
10487
|
*/
|
|
10461
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
10488
|
+
POST_PLAYER_UPDATE_REORDERED = 78,
|
|
10462
10489
|
/**
|
|
10463
10490
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
10464
10491
|
*
|
|
@@ -10470,7 +10497,7 @@ export declare enum ModCallbackCustom {
|
|
|
10470
10497
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
10471
10498
|
* ```
|
|
10472
10499
|
*/
|
|
10473
|
-
POST_POOP_RENDER =
|
|
10500
|
+
POST_POOP_RENDER = 79,
|
|
10474
10501
|
/**
|
|
10475
10502
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
10476
10503
|
*
|
|
@@ -10482,7 +10509,7 @@ export declare enum ModCallbackCustom {
|
|
|
10482
10509
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
10483
10510
|
* ```
|
|
10484
10511
|
*/
|
|
10485
|
-
POST_POOP_UPDATE =
|
|
10512
|
+
POST_POOP_UPDATE = 80,
|
|
10486
10513
|
/**
|
|
10487
10514
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
10488
10515
|
*
|
|
@@ -10494,7 +10521,7 @@ export declare enum ModCallbackCustom {
|
|
|
10494
10521
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
10495
10522
|
* ```
|
|
10496
10523
|
*/
|
|
10497
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
10524
|
+
POST_PRESSURE_PLATE_RENDER = 81,
|
|
10498
10525
|
/**
|
|
10499
10526
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
10500
10527
|
*
|
|
@@ -10506,7 +10533,7 @@ export declare enum ModCallbackCustom {
|
|
|
10506
10533
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
10507
10534
|
* ```
|
|
10508
10535
|
*/
|
|
10509
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
10536
|
+
POST_PRESSURE_PLATE_UPDATE = 82,
|
|
10510
10537
|
/**
|
|
10511
10538
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
10512
10539
|
*
|
|
@@ -10523,7 +10550,7 @@ export declare enum ModCallbackCustom {
|
|
|
10523
10550
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
10524
10551
|
* ```
|
|
10525
10552
|
*/
|
|
10526
|
-
POST_PROJECTILE_INIT_LATE =
|
|
10553
|
+
POST_PROJECTILE_INIT_LATE = 83,
|
|
10527
10554
|
/**
|
|
10528
10555
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
10529
10556
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -10539,7 +10566,7 @@ export declare enum ModCallbackCustom {
|
|
|
10539
10566
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
10540
10567
|
* ```
|
|
10541
10568
|
*/
|
|
10542
|
-
POST_PURCHASE =
|
|
10569
|
+
POST_PURCHASE = 84,
|
|
10543
10570
|
/**
|
|
10544
10571
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
10545
10572
|
*
|
|
@@ -10553,7 +10580,7 @@ export declare enum ModCallbackCustom {
|
|
|
10553
10580
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
10554
10581
|
* ```
|
|
10555
10582
|
*/
|
|
10556
|
-
POST_ROCK_RENDER =
|
|
10583
|
+
POST_ROCK_RENDER = 85,
|
|
10557
10584
|
/**
|
|
10558
10585
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
10559
10586
|
*
|
|
@@ -10567,7 +10594,7 @@ export declare enum ModCallbackCustom {
|
|
|
10567
10594
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
10568
10595
|
* ```
|
|
10569
10596
|
*/
|
|
10570
|
-
POST_ROCK_UPDATE =
|
|
10597
|
+
POST_ROCK_UPDATE = 86,
|
|
10571
10598
|
/**
|
|
10572
10599
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
10573
10600
|
* the `Room.IsClear` method).
|
|
@@ -10584,7 +10611,7 @@ export declare enum ModCallbackCustom {
|
|
|
10584
10611
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
10585
10612
|
* ```
|
|
10586
10613
|
*/
|
|
10587
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
10614
|
+
POST_ROOM_CLEAR_CHANGED = 87,
|
|
10588
10615
|
/**
|
|
10589
10616
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
10590
10617
|
* Room.
|
|
@@ -10599,7 +10626,7 @@ export declare enum ModCallbackCustom {
|
|
|
10599
10626
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
10600
10627
|
* ```
|
|
10601
10628
|
*/
|
|
10602
|
-
POST_SACRIFICE =
|
|
10629
|
+
POST_SACRIFICE = 88,
|
|
10603
10630
|
/**
|
|
10604
10631
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
10605
10632
|
*
|
|
@@ -10617,7 +10644,7 @@ export declare enum ModCallbackCustom {
|
|
|
10617
10644
|
* ): void {}
|
|
10618
10645
|
* ```
|
|
10619
10646
|
*/
|
|
10620
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
10647
|
+
POST_SLOT_ANIMATION_CHANGED = 89,
|
|
10621
10648
|
/**
|
|
10622
10649
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
10623
10650
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -10641,7 +10668,7 @@ export declare enum ModCallbackCustom {
|
|
|
10641
10668
|
* ): void {}
|
|
10642
10669
|
* ```
|
|
10643
10670
|
*/
|
|
10644
|
-
POST_SLOT_COLLISION =
|
|
10671
|
+
POST_SLOT_COLLISION = 90,
|
|
10645
10672
|
/**
|
|
10646
10673
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
10647
10674
|
* destroyed or a beggar is removed.
|
|
@@ -10683,7 +10710,7 @@ export declare enum ModCallbackCustom {
|
|
|
10683
10710
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
10684
10711
|
* ```
|
|
10685
10712
|
*/
|
|
10686
|
-
POST_SLOT_DESTROYED =
|
|
10713
|
+
POST_SLOT_DESTROYED = 91,
|
|
10687
10714
|
/**
|
|
10688
10715
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
10689
10716
|
*
|
|
@@ -10702,7 +10729,7 @@ export declare enum ModCallbackCustom {
|
|
|
10702
10729
|
* function postSlotInit(slot: Entity): void {}
|
|
10703
10730
|
* ```
|
|
10704
10731
|
*/
|
|
10705
|
-
POST_SLOT_INIT =
|
|
10732
|
+
POST_SLOT_INIT = 92,
|
|
10706
10733
|
/**
|
|
10707
10734
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
10708
10735
|
*
|
|
@@ -10716,7 +10743,7 @@ export declare enum ModCallbackCustom {
|
|
|
10716
10743
|
* function postSlotRender(slot: Entity): void {}
|
|
10717
10744
|
* ```
|
|
10718
10745
|
*/
|
|
10719
|
-
POST_SLOT_RENDER =
|
|
10746
|
+
POST_SLOT_RENDER = 93,
|
|
10720
10747
|
/**
|
|
10721
10748
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
10722
10749
|
*
|
|
@@ -10730,7 +10757,7 @@ export declare enum ModCallbackCustom {
|
|
|
10730
10757
|
* function postSlotUpdate(slot: Entity): void {}
|
|
10731
10758
|
* ```
|
|
10732
10759
|
*/
|
|
10733
|
-
POST_SLOT_UPDATE =
|
|
10760
|
+
POST_SLOT_UPDATE = 94,
|
|
10734
10761
|
/**
|
|
10735
10762
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
10736
10763
|
*
|
|
@@ -10742,7 +10769,7 @@ export declare enum ModCallbackCustom {
|
|
|
10742
10769
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
10743
10770
|
* ```
|
|
10744
10771
|
*/
|
|
10745
|
-
POST_SPIKES_RENDER =
|
|
10772
|
+
POST_SPIKES_RENDER = 95,
|
|
10746
10773
|
/**
|
|
10747
10774
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
10748
10775
|
*
|
|
@@ -10754,7 +10781,7 @@ export declare enum ModCallbackCustom {
|
|
|
10754
10781
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
10755
10782
|
* ```
|
|
10756
10783
|
*/
|
|
10757
|
-
POST_SPIKES_UPDATE =
|
|
10784
|
+
POST_SPIKES_UPDATE = 96,
|
|
10758
10785
|
/**
|
|
10759
10786
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
10760
10787
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -10772,7 +10799,7 @@ export declare enum ModCallbackCustom {
|
|
|
10772
10799
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
10773
10800
|
* ```
|
|
10774
10801
|
*/
|
|
10775
|
-
POST_TEAR_INIT_LATE =
|
|
10802
|
+
POST_TEAR_INIT_LATE = 97,
|
|
10776
10803
|
/**
|
|
10777
10804
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
10778
10805
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -10789,7 +10816,7 @@ export declare enum ModCallbackCustom {
|
|
|
10789
10816
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
10790
10817
|
* ```
|
|
10791
10818
|
*/
|
|
10792
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
10819
|
+
POST_TEAR_INIT_VERY_LATE = 98,
|
|
10793
10820
|
/**
|
|
10794
10821
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
10795
10822
|
*
|
|
@@ -10801,7 +10828,7 @@ export declare enum ModCallbackCustom {
|
|
|
10801
10828
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
10802
10829
|
* ```
|
|
10803
10830
|
*/
|
|
10804
|
-
POST_TNT_RENDER =
|
|
10831
|
+
POST_TNT_RENDER = 99,
|
|
10805
10832
|
/**
|
|
10806
10833
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
10807
10834
|
*
|
|
@@ -10813,7 +10840,7 @@ export declare enum ModCallbackCustom {
|
|
|
10813
10840
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
10814
10841
|
* ```
|
|
10815
10842
|
*/
|
|
10816
|
-
POST_TNT_UPDATE =
|
|
10843
|
+
POST_TNT_UPDATE = 100,
|
|
10817
10844
|
/**
|
|
10818
10845
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
10819
10846
|
* transformation.
|
|
@@ -10832,7 +10859,7 @@ export declare enum ModCallbackCustom {
|
|
|
10832
10859
|
* ): void {}
|
|
10833
10860
|
* ```
|
|
10834
10861
|
*/
|
|
10835
|
-
POST_TRANSFORMATION =
|
|
10862
|
+
POST_TRANSFORMATION = 101,
|
|
10836
10863
|
/**
|
|
10837
10864
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
10838
10865
|
*
|
|
@@ -10847,7 +10874,7 @@ export declare enum ModCallbackCustom {
|
|
|
10847
10874
|
* ): void {}
|
|
10848
10875
|
* ```
|
|
10849
10876
|
*/
|
|
10850
|
-
POST_TRINKET_BREAK =
|
|
10877
|
+
POST_TRINKET_BREAK = 102,
|
|
10851
10878
|
/**
|
|
10852
10879
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
10853
10880
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -10863,7 +10890,7 @@ export declare enum ModCallbackCustom {
|
|
|
10863
10890
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
10864
10891
|
* ```
|
|
10865
10892
|
*/
|
|
10866
|
-
PRE_BERSERK_DEATH =
|
|
10893
|
+
PRE_BERSERK_DEATH = 103,
|
|
10867
10894
|
/**
|
|
10868
10895
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
10869
10896
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -10882,7 +10909,7 @@ export declare enum ModCallbackCustom {
|
|
|
10882
10909
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
10883
10910
|
* ```
|
|
10884
10911
|
*/
|
|
10885
|
-
PRE_CUSTOM_REVIVE =
|
|
10912
|
+
PRE_CUSTOM_REVIVE = 104,
|
|
10886
10913
|
/**
|
|
10887
10914
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
10888
10915
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10907,7 +10934,7 @@ export declare enum ModCallbackCustom {
|
|
|
10907
10934
|
* ): [EntityType, int, int, int] | undefined {}
|
|
10908
10935
|
* ```
|
|
10909
10936
|
*/
|
|
10910
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
10937
|
+
PRE_ENTITY_SPAWN_FILTER = 105,
|
|
10911
10938
|
/**
|
|
10912
10939
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
10913
10940
|
* meets all of the conditions to pick it up.
|
|
@@ -10927,7 +10954,7 @@ export declare enum ModCallbackCustom {
|
|
|
10927
10954
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
10928
10955
|
* ```
|
|
10929
10956
|
*/
|
|
10930
|
-
PRE_GET_PEDESTAL =
|
|
10957
|
+
PRE_GET_PEDESTAL = 106,
|
|
10931
10958
|
/**
|
|
10932
10959
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
10933
10960
|
* the player begins to hold the item above their head).
|
|
@@ -10947,7 +10974,7 @@ export declare enum ModCallbackCustom {
|
|
|
10947
10974
|
* ): void {}
|
|
10948
10975
|
* ```
|
|
10949
10976
|
*/
|
|
10950
|
-
PRE_ITEM_PICKUP =
|
|
10977
|
+
PRE_ITEM_PICKUP = 107,
|
|
10951
10978
|
/**
|
|
10952
10979
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
10953
10980
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -10961,7 +10988,7 @@ export declare enum ModCallbackCustom {
|
|
|
10961
10988
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
10962
10989
|
* ```
|
|
10963
10990
|
*/
|
|
10964
|
-
PRE_NEW_LEVEL =
|
|
10991
|
+
PRE_NEW_LEVEL = 108,
|
|
10965
10992
|
/**
|
|
10966
10993
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
10967
10994
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10982,7 +11009,7 @@ export declare enum ModCallbackCustom {
|
|
|
10982
11009
|
* ): boolean | undefined {}
|
|
10983
11010
|
* ```
|
|
10984
11011
|
*/
|
|
10985
|
-
PRE_NPC_COLLISION_FILTER =
|
|
11012
|
+
PRE_NPC_COLLISION_FILTER = 109,
|
|
10986
11013
|
/**
|
|
10987
11014
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
10988
11015
|
* to specify extra arguments for additional filtration.
|
|
@@ -10999,7 +11026,7 @@ export declare enum ModCallbackCustom {
|
|
|
10999
11026
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
11000
11027
|
* ```
|
|
11001
11028
|
*/
|
|
11002
|
-
PRE_NPC_UPDATE_FILTER =
|
|
11029
|
+
PRE_NPC_UPDATE_FILTER = 110,
|
|
11003
11030
|
/**
|
|
11004
11031
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
11005
11032
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11022,7 +11049,7 @@ export declare enum ModCallbackCustom {
|
|
|
11022
11049
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
11023
11050
|
* ```
|
|
11024
11051
|
*/
|
|
11025
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
11052
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 111
|
|
11026
11053
|
}
|
|
11027
11054
|
|
|
11028
11055
|
/**
|