isaacscript-common 26.3.1 → 26.5.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 +118 -93
- package/dist/isaacscript-common.lua +131 -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/classes/features/other/RoomHistory.d.ts +2 -0
- package/dist/src/classes/features/other/RoomHistory.d.ts.map +1 -1
- package/dist/src/classes/features/other/RoomHistory.lua +4 -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/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/classes/features/other/RoomHistory.ts +6 -0
- package/src/enums/ModCallbackCustom.ts +18 -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,
|
|
@@ -9360,6 +9366,23 @@ export declare enum ModCallbackCustom {
|
|
|
9360
9366
|
* ```
|
|
9361
9367
|
*/
|
|
9362
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,
|
|
9363
9386
|
/**
|
|
9364
9387
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
9365
9388
|
* updated to the new character until a game frame has passed.)
|
|
@@ -9368,7 +9391,7 @@ export declare enum ModCallbackCustom {
|
|
|
9368
9391
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
9369
9392
|
* ```
|
|
9370
9393
|
*/
|
|
9371
|
-
POST_ESAU_JR =
|
|
9394
|
+
POST_ESAU_JR = 19,
|
|
9372
9395
|
/**
|
|
9373
9396
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
9374
9397
|
*
|
|
@@ -9385,7 +9408,7 @@ export declare enum ModCallbackCustom {
|
|
|
9385
9408
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
9386
9409
|
* ```
|
|
9387
9410
|
*/
|
|
9388
|
-
POST_FAMILIAR_INIT_LATE =
|
|
9411
|
+
POST_FAMILIAR_INIT_LATE = 20,
|
|
9389
9412
|
/**
|
|
9390
9413
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
9391
9414
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -9405,7 +9428,7 @@ export declare enum ModCallbackCustom {
|
|
|
9405
9428
|
* ): void {}
|
|
9406
9429
|
* ```
|
|
9407
9430
|
*/
|
|
9408
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
9431
|
+
POST_FAMILIAR_STATE_CHANGED = 21,
|
|
9409
9432
|
/**
|
|
9410
9433
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
9411
9434
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -9417,7 +9440,7 @@ export declare enum ModCallbackCustom {
|
|
|
9417
9440
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
9418
9441
|
* ```
|
|
9419
9442
|
*/
|
|
9420
|
-
POST_FIRST_ESAU_JR =
|
|
9443
|
+
POST_FIRST_ESAU_JR = 22,
|
|
9421
9444
|
/**
|
|
9422
9445
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
9423
9446
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -9430,7 +9453,7 @@ export declare enum ModCallbackCustom {
|
|
|
9430
9453
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
9431
9454
|
* ```
|
|
9432
9455
|
*/
|
|
9433
|
-
POST_FIRST_FLIP =
|
|
9456
|
+
POST_FIRST_FLIP = 23,
|
|
9434
9457
|
/**
|
|
9435
9458
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
9436
9459
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -9443,7 +9466,7 @@ export declare enum ModCallbackCustom {
|
|
|
9443
9466
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
9444
9467
|
* ```
|
|
9445
9468
|
*/
|
|
9446
|
-
POST_FLIP =
|
|
9469
|
+
POST_FLIP = 24,
|
|
9447
9470
|
/**
|
|
9448
9471
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
9449
9472
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -9462,7 +9485,7 @@ export declare enum ModCallbackCustom {
|
|
|
9462
9485
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
9463
9486
|
* ```
|
|
9464
9487
|
*/
|
|
9465
|
-
POST_GAME_STARTED_REORDERED =
|
|
9488
|
+
POST_GAME_STARTED_REORDERED = 25,
|
|
9466
9489
|
/**
|
|
9467
9490
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
9468
9491
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -9481,7 +9504,7 @@ export declare enum ModCallbackCustom {
|
|
|
9481
9504
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
9482
9505
|
* ```
|
|
9483
9506
|
*/
|
|
9484
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
9507
|
+
POST_GAME_STARTED_REORDERED_LAST = 26,
|
|
9485
9508
|
/**
|
|
9486
9509
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
9487
9510
|
*
|
|
@@ -9489,7 +9512,7 @@ export declare enum ModCallbackCustom {
|
|
|
9489
9512
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
9490
9513
|
* ```
|
|
9491
9514
|
*/
|
|
9492
|
-
POST_GREED_MODE_WAVE =
|
|
9515
|
+
POST_GREED_MODE_WAVE = 27,
|
|
9493
9516
|
/**
|
|
9494
9517
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
9495
9518
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -9508,7 +9531,7 @@ export declare enum ModCallbackCustom {
|
|
|
9508
9531
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
9509
9532
|
* ```
|
|
9510
9533
|
*/
|
|
9511
|
-
POST_GRID_ENTITY_BROKEN =
|
|
9534
|
+
POST_GRID_ENTITY_BROKEN = 28,
|
|
9512
9535
|
/**
|
|
9513
9536
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
9514
9537
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -9536,7 +9559,7 @@ export declare enum ModCallbackCustom {
|
|
|
9536
9559
|
* ): void {}
|
|
9537
9560
|
* ```
|
|
9538
9561
|
*/
|
|
9539
|
-
POST_GRID_ENTITY_COLLISION =
|
|
9562
|
+
POST_GRID_ENTITY_COLLISION = 29,
|
|
9540
9563
|
/**
|
|
9541
9564
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
9542
9565
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9553,7 +9576,7 @@ export declare enum ModCallbackCustom {
|
|
|
9553
9576
|
* ): void {}
|
|
9554
9577
|
* ```
|
|
9555
9578
|
*/
|
|
9556
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
9579
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 30,
|
|
9557
9580
|
/**
|
|
9558
9581
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
9559
9582
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9577,7 +9600,7 @@ export declare enum ModCallbackCustom {
|
|
|
9577
9600
|
* ): void {}
|
|
9578
9601
|
* ```
|
|
9579
9602
|
*/
|
|
9580
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
9603
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 31,
|
|
9581
9604
|
/**
|
|
9582
9605
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
9583
9606
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -9594,7 +9617,7 @@ export declare enum ModCallbackCustom {
|
|
|
9594
9617
|
* ): void {}
|
|
9595
9618
|
* ```
|
|
9596
9619
|
*/
|
|
9597
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
9620
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 32,
|
|
9598
9621
|
/**
|
|
9599
9622
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
9600
9623
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9611,7 +9634,7 @@ export declare enum ModCallbackCustom {
|
|
|
9611
9634
|
* ): void {}
|
|
9612
9635
|
* ```
|
|
9613
9636
|
*/
|
|
9614
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
9637
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 33,
|
|
9615
9638
|
/**
|
|
9616
9639
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
9617
9640
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9628,7 +9651,7 @@ export declare enum ModCallbackCustom {
|
|
|
9628
9651
|
* ): void {}
|
|
9629
9652
|
* ```
|
|
9630
9653
|
*/
|
|
9631
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
9654
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 34,
|
|
9632
9655
|
/**
|
|
9633
9656
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
9634
9657
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -9647,7 +9670,7 @@ export declare enum ModCallbackCustom {
|
|
|
9647
9670
|
* ): void {}
|
|
9648
9671
|
* ```
|
|
9649
9672
|
*/
|
|
9650
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
9673
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 35,
|
|
9651
9674
|
/**
|
|
9652
9675
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
9653
9676
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -9664,7 +9687,7 @@ export declare enum ModCallbackCustom {
|
|
|
9664
9687
|
* ): void {}
|
|
9665
9688
|
* ```
|
|
9666
9689
|
*/
|
|
9667
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
9690
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 36,
|
|
9668
9691
|
/**
|
|
9669
9692
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
9670
9693
|
*
|
|
@@ -9686,7 +9709,7 @@ export declare enum ModCallbackCustom {
|
|
|
9686
9709
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
9687
9710
|
* ```
|
|
9688
9711
|
*/
|
|
9689
|
-
POST_GRID_ENTITY_INIT =
|
|
9712
|
+
POST_GRID_ENTITY_INIT = 37,
|
|
9690
9713
|
/**
|
|
9691
9714
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
9692
9715
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -9711,7 +9734,7 @@ export declare enum ModCallbackCustom {
|
|
|
9711
9734
|
* ): void {}
|
|
9712
9735
|
* ```
|
|
9713
9736
|
*/
|
|
9714
|
-
POST_GRID_ENTITY_REMOVE =
|
|
9737
|
+
POST_GRID_ENTITY_REMOVE = 38,
|
|
9715
9738
|
/**
|
|
9716
9739
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
9717
9740
|
*
|
|
@@ -9728,7 +9751,7 @@ export declare enum ModCallbackCustom {
|
|
|
9728
9751
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
9729
9752
|
* ```
|
|
9730
9753
|
*/
|
|
9731
|
-
POST_GRID_ENTITY_RENDER =
|
|
9754
|
+
POST_GRID_ENTITY_RENDER = 39,
|
|
9732
9755
|
/**
|
|
9733
9756
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
9734
9757
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -9750,7 +9773,7 @@ export declare enum ModCallbackCustom {
|
|
|
9750
9773
|
* ): void {}
|
|
9751
9774
|
* ```
|
|
9752
9775
|
*/
|
|
9753
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
9776
|
+
POST_GRID_ENTITY_STATE_CHANGED = 40,
|
|
9754
9777
|
/**
|
|
9755
9778
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
9756
9779
|
*
|
|
@@ -9767,7 +9790,7 @@ export declare enum ModCallbackCustom {
|
|
|
9767
9790
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
9768
9791
|
* ```
|
|
9769
9792
|
*/
|
|
9770
|
-
POST_GRID_ENTITY_UPDATE =
|
|
9793
|
+
POST_GRID_ENTITY_UPDATE = 41,
|
|
9771
9794
|
/**
|
|
9772
9795
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
9773
9796
|
* temporary collectible effect.
|
|
@@ -9790,7 +9813,7 @@ export declare enum ModCallbackCustom {
|
|
|
9790
9813
|
* ): void {}
|
|
9791
9814
|
* ```
|
|
9792
9815
|
*/
|
|
9793
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
9816
|
+
POST_HOLY_MANTLE_REMOVED = 42,
|
|
9794
9817
|
/**
|
|
9795
9818
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
9796
9819
|
* active collectible item, implying that the item was just used.
|
|
@@ -9813,7 +9836,7 @@ export declare enum ModCallbackCustom {
|
|
|
9813
9836
|
* ): void {}
|
|
9814
9837
|
* ```
|
|
9815
9838
|
*/
|
|
9816
|
-
POST_ITEM_DISCHARGE =
|
|
9839
|
+
POST_ITEM_DISCHARGE = 43,
|
|
9817
9840
|
/**
|
|
9818
9841
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
9819
9842
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -9834,7 +9857,7 @@ export declare enum ModCallbackCustom {
|
|
|
9834
9857
|
* ): void {}
|
|
9835
9858
|
* ```
|
|
9836
9859
|
*/
|
|
9837
|
-
POST_ITEM_PICKUP =
|
|
9860
|
+
POST_ITEM_PICKUP = 44,
|
|
9838
9861
|
/**
|
|
9839
9862
|
* Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
|
|
9840
9863
|
* released. (In other words, the callback only fires when the "pressed" status is different than
|
|
@@ -9850,7 +9873,7 @@ export declare enum ModCallbackCustom {
|
|
|
9850
9873
|
* function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
|
|
9851
9874
|
* ```
|
|
9852
9875
|
*/
|
|
9853
|
-
POST_KEYBOARD_CHANGED =
|
|
9876
|
+
POST_KEYBOARD_CHANGED = 45,
|
|
9854
9877
|
/**
|
|
9855
9878
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
9856
9879
|
*
|
|
@@ -9867,7 +9890,7 @@ export declare enum ModCallbackCustom {
|
|
|
9867
9890
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
9868
9891
|
* ```
|
|
9869
9892
|
*/
|
|
9870
|
-
POST_KNIFE_INIT_LATE =
|
|
9893
|
+
POST_KNIFE_INIT_LATE = 46,
|
|
9871
9894
|
/**
|
|
9872
9895
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
9873
9896
|
*
|
|
@@ -9884,7 +9907,7 @@ export declare enum ModCallbackCustom {
|
|
|
9884
9907
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
9885
9908
|
* ```
|
|
9886
9909
|
*/
|
|
9887
|
-
POST_LASER_INIT_LATE =
|
|
9910
|
+
POST_LASER_INIT_LATE = 47,
|
|
9888
9911
|
/**
|
|
9889
9912
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
9890
9913
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -9901,7 +9924,7 @@ export declare enum ModCallbackCustom {
|
|
|
9901
9924
|
* function postNewLevelReordered(): void {}
|
|
9902
9925
|
* ```
|
|
9903
9926
|
*/
|
|
9904
|
-
POST_NEW_LEVEL_REORDERED =
|
|
9927
|
+
POST_NEW_LEVEL_REORDERED = 48,
|
|
9905
9928
|
/**
|
|
9906
9929
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
9907
9930
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -9912,7 +9935,7 @@ export declare enum ModCallbackCustom {
|
|
|
9912
9935
|
* function postNewRoomEarly(): void {}
|
|
9913
9936
|
* ```
|
|
9914
9937
|
*/
|
|
9915
|
-
POST_NEW_ROOM_EARLY =
|
|
9938
|
+
POST_NEW_ROOM_EARLY = 49,
|
|
9916
9939
|
/**
|
|
9917
9940
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
9918
9941
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -9929,7 +9952,7 @@ export declare enum ModCallbackCustom {
|
|
|
9929
9952
|
* function postNewRoomReordered(): void {}
|
|
9930
9953
|
* ```
|
|
9931
9954
|
*/
|
|
9932
|
-
POST_NEW_ROOM_REORDERED =
|
|
9955
|
+
POST_NEW_ROOM_REORDERED = 50,
|
|
9933
9956
|
/**
|
|
9934
9957
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
9935
9958
|
* to specify extra arguments for additional filtration.
|
|
@@ -9946,7 +9969,7 @@ export declare enum ModCallbackCustom {
|
|
|
9946
9969
|
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
9947
9970
|
* ```
|
|
9948
9971
|
*/
|
|
9949
|
-
POST_NPC_DEATH_FILTER =
|
|
9972
|
+
POST_NPC_DEATH_FILTER = 51,
|
|
9950
9973
|
/**
|
|
9951
9974
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
9952
9975
|
* to specify extra arguments for additional filtration.
|
|
@@ -9963,7 +9986,7 @@ export declare enum ModCallbackCustom {
|
|
|
9963
9986
|
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
9964
9987
|
* ```
|
|
9965
9988
|
*/
|
|
9966
|
-
POST_NPC_INIT_FILTER =
|
|
9989
|
+
POST_NPC_INIT_FILTER = 52,
|
|
9967
9990
|
/**
|
|
9968
9991
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
9969
9992
|
*
|
|
@@ -9982,7 +10005,7 @@ export declare enum ModCallbackCustom {
|
|
|
9982
10005
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
9983
10006
|
* ```
|
|
9984
10007
|
*/
|
|
9985
|
-
POST_NPC_INIT_LATE =
|
|
10008
|
+
POST_NPC_INIT_LATE = 53,
|
|
9986
10009
|
/**
|
|
9987
10010
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
9988
10011
|
* to specify extra arguments for additional filtration.
|
|
@@ -9999,7 +10022,7 @@ export declare enum ModCallbackCustom {
|
|
|
9999
10022
|
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
10000
10023
|
* ```
|
|
10001
10024
|
*/
|
|
10002
|
-
POST_NPC_RENDER_FILTER =
|
|
10025
|
+
POST_NPC_RENDER_FILTER = 54,
|
|
10003
10026
|
/**
|
|
10004
10027
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
10005
10028
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -10020,7 +10043,7 @@ export declare enum ModCallbackCustom {
|
|
|
10020
10043
|
* ): void {}
|
|
10021
10044
|
* ```
|
|
10022
10045
|
*/
|
|
10023
|
-
POST_NPC_STATE_CHANGED =
|
|
10046
|
+
POST_NPC_STATE_CHANGED = 55,
|
|
10024
10047
|
/**
|
|
10025
10048
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
10026
10049
|
* to specify extra arguments for additional filtration.
|
|
@@ -10037,7 +10060,7 @@ export declare enum ModCallbackCustom {
|
|
|
10037
10060
|
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
10038
10061
|
* ```
|
|
10039
10062
|
*/
|
|
10040
|
-
POST_NPC_UPDATE_FILTER =
|
|
10063
|
+
POST_NPC_UPDATE_FILTER = 56,
|
|
10041
10064
|
/**
|
|
10042
10065
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10043
10066
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10062,7 +10085,7 @@ export declare enum ModCallbackCustom {
|
|
|
10062
10085
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
10063
10086
|
* ```
|
|
10064
10087
|
*/
|
|
10065
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
10088
|
+
POST_PEFFECT_UPDATE_REORDERED = 57,
|
|
10066
10089
|
/**
|
|
10067
10090
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
|
|
10068
10091
|
* than what it was on the previous frame.
|
|
@@ -10083,7 +10106,7 @@ export declare enum ModCallbackCustom {
|
|
|
10083
10106
|
* ): void {}
|
|
10084
10107
|
* ```
|
|
10085
10108
|
*/
|
|
10086
|
-
POST_PICKUP_CHANGED =
|
|
10109
|
+
POST_PICKUP_CHANGED = 58,
|
|
10087
10110
|
/**
|
|
10088
10111
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
10089
10112
|
*
|
|
@@ -10102,7 +10125,7 @@ export declare enum ModCallbackCustom {
|
|
|
10102
10125
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
10103
10126
|
* ```
|
|
10104
10127
|
*/
|
|
10105
|
-
POST_PICKUP_COLLECT =
|
|
10128
|
+
POST_PICKUP_COLLECT = 59,
|
|
10106
10129
|
/**
|
|
10107
10130
|
* The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
|
|
10108
10131
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10117,7 +10140,7 @@ export declare enum ModCallbackCustom {
|
|
|
10117
10140
|
* function postPickupInitFilter(pickup: EntityPickup): void {}
|
|
10118
10141
|
* ```
|
|
10119
10142
|
*/
|
|
10120
|
-
POST_PICKUP_INIT_FILTER =
|
|
10143
|
+
POST_PICKUP_INIT_FILTER = 60,
|
|
10121
10144
|
/**
|
|
10122
10145
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
10123
10146
|
* respective pickup on the run.
|
|
@@ -10135,7 +10158,7 @@ export declare enum ModCallbackCustom {
|
|
|
10135
10158
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
10136
10159
|
* ```
|
|
10137
10160
|
*/
|
|
10138
|
-
POST_PICKUP_INIT_FIRST =
|
|
10161
|
+
POST_PICKUP_INIT_FIRST = 61,
|
|
10139
10162
|
/**
|
|
10140
10163
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
10141
10164
|
*
|
|
@@ -10152,7 +10175,7 @@ export declare enum ModCallbackCustom {
|
|
|
10152
10175
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
10153
10176
|
* ```
|
|
10154
10177
|
*/
|
|
10155
|
-
POST_PICKUP_INIT_LATE =
|
|
10178
|
+
POST_PICKUP_INIT_LATE = 62,
|
|
10156
10179
|
/**
|
|
10157
10180
|
* The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
|
|
10158
10181
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10167,7 +10190,7 @@ export declare enum ModCallbackCustom {
|
|
|
10167
10190
|
* function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
|
|
10168
10191
|
* ```
|
|
10169
10192
|
*/
|
|
10170
|
-
POST_PICKUP_RENDER_FILTER =
|
|
10193
|
+
POST_PICKUP_RENDER_FILTER = 63,
|
|
10171
10194
|
/**
|
|
10172
10195
|
* The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
|
|
10173
10196
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10186,7 +10209,7 @@ export declare enum ModCallbackCustom {
|
|
|
10186
10209
|
* ): [PickupVariant, int] | undefined {}
|
|
10187
10210
|
* ```
|
|
10188
10211
|
*/
|
|
10189
|
-
POST_PICKUP_SELECTION_FILTER =
|
|
10212
|
+
POST_PICKUP_SELECTION_FILTER = 64,
|
|
10190
10213
|
/**
|
|
10191
10214
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
10192
10215
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -10205,7 +10228,7 @@ export declare enum ModCallbackCustom {
|
|
|
10205
10228
|
* ): void {}
|
|
10206
10229
|
* ```
|
|
10207
10230
|
*/
|
|
10208
|
-
POST_PICKUP_STATE_CHANGED =
|
|
10231
|
+
POST_PICKUP_STATE_CHANGED = 65,
|
|
10209
10232
|
/**
|
|
10210
10233
|
* The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
|
|
10211
10234
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10220,7 +10243,7 @@ export declare enum ModCallbackCustom {
|
|
|
10220
10243
|
* function postPickupUpdateFilter(pickup: EntityPickup): void {}
|
|
10221
10244
|
* ```
|
|
10222
10245
|
*/
|
|
10223
|
-
POST_PICKUP_UPDATE_FILTER =
|
|
10246
|
+
POST_PICKUP_UPDATE_FILTER = 66,
|
|
10224
10247
|
/**
|
|
10225
10248
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
10226
10249
|
*
|
|
@@ -10232,7 +10255,7 @@ export declare enum ModCallbackCustom {
|
|
|
10232
10255
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
10233
10256
|
* ```
|
|
10234
10257
|
*/
|
|
10235
|
-
POST_PIT_RENDER =
|
|
10258
|
+
POST_PIT_RENDER = 67,
|
|
10236
10259
|
/**
|
|
10237
10260
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
10238
10261
|
*
|
|
@@ -10244,7 +10267,7 @@ export declare enum ModCallbackCustom {
|
|
|
10244
10267
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
10245
10268
|
* ```
|
|
10246
10269
|
*/
|
|
10247
|
-
POST_PIT_UPDATE =
|
|
10270
|
+
POST_PIT_UPDATE = 68,
|
|
10248
10271
|
/**
|
|
10249
10272
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
10250
10273
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -10266,7 +10289,7 @@ export declare enum ModCallbackCustom {
|
|
|
10266
10289
|
* ): void {}
|
|
10267
10290
|
* ```
|
|
10268
10291
|
*/
|
|
10269
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
10292
|
+
POST_PLAYER_CHANGE_HEALTH = 69,
|
|
10270
10293
|
/**
|
|
10271
10294
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
10272
10295
|
* from what they were on the previous frame.
|
|
@@ -10296,7 +10319,7 @@ export declare enum ModCallbackCustom {
|
|
|
10296
10319
|
* ) => void {}
|
|
10297
10320
|
* ```
|
|
10298
10321
|
*/
|
|
10299
|
-
POST_PLAYER_CHANGE_STAT =
|
|
10322
|
+
POST_PLAYER_CHANGE_STAT = 70,
|
|
10300
10323
|
/**
|
|
10301
10324
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
10302
10325
|
* type
|
|
@@ -10319,7 +10342,7 @@ export declare enum ModCallbackCustom {
|
|
|
10319
10342
|
* ): void {}
|
|
10320
10343
|
* ```
|
|
10321
10344
|
*/
|
|
10322
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
10345
|
+
POST_PLAYER_CHANGE_TYPE = 71,
|
|
10323
10346
|
/**
|
|
10324
10347
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10325
10348
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10336,7 +10359,7 @@ export declare enum ModCallbackCustom {
|
|
|
10336
10359
|
* ): void {}
|
|
10337
10360
|
* ```
|
|
10338
10361
|
*/
|
|
10339
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
10362
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 72,
|
|
10340
10363
|
/**
|
|
10341
10364
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10342
10365
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10353,7 +10376,7 @@ export declare enum ModCallbackCustom {
|
|
|
10353
10376
|
* ): void {}
|
|
10354
10377
|
* ```
|
|
10355
10378
|
*/
|
|
10356
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
10379
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 73,
|
|
10357
10380
|
/**
|
|
10358
10381
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
10359
10382
|
* prevent the fatal damage.
|
|
@@ -10371,7 +10394,7 @@ export declare enum ModCallbackCustom {
|
|
|
10371
10394
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
10372
10395
|
* ```
|
|
10373
10396
|
*/
|
|
10374
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
10397
|
+
POST_PLAYER_FATAL_DAMAGE = 74,
|
|
10375
10398
|
/**
|
|
10376
10399
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
10377
10400
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -10393,7 +10416,7 @@ export declare enum ModCallbackCustom {
|
|
|
10393
10416
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
10394
10417
|
* ```
|
|
10395
10418
|
*/
|
|
10396
|
-
POST_PLAYER_INIT_FIRST =
|
|
10419
|
+
POST_PLAYER_INIT_FIRST = 75,
|
|
10397
10420
|
/**
|
|
10398
10421
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
10399
10422
|
*
|
|
@@ -10413,7 +10436,7 @@ export declare enum ModCallbackCustom {
|
|
|
10413
10436
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
10414
10437
|
* ```
|
|
10415
10438
|
*/
|
|
10416
|
-
POST_PLAYER_INIT_LATE =
|
|
10439
|
+
POST_PLAYER_INIT_LATE = 76,
|
|
10417
10440
|
/**
|
|
10418
10441
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
10419
10442
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -10437,7 +10460,7 @@ export declare enum ModCallbackCustom {
|
|
|
10437
10460
|
* function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
|
|
10438
10461
|
* ```
|
|
10439
10462
|
*/
|
|
10440
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
10463
|
+
POST_PLAYER_RENDER_REORDERED = 77,
|
|
10441
10464
|
/**
|
|
10442
10465
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10443
10466
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10462,7 +10485,7 @@ export declare enum ModCallbackCustom {
|
|
|
10462
10485
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
10463
10486
|
* ```
|
|
10464
10487
|
*/
|
|
10465
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
10488
|
+
POST_PLAYER_UPDATE_REORDERED = 78,
|
|
10466
10489
|
/**
|
|
10467
10490
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
10468
10491
|
*
|
|
@@ -10474,7 +10497,7 @@ export declare enum ModCallbackCustom {
|
|
|
10474
10497
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
10475
10498
|
* ```
|
|
10476
10499
|
*/
|
|
10477
|
-
POST_POOP_RENDER =
|
|
10500
|
+
POST_POOP_RENDER = 79,
|
|
10478
10501
|
/**
|
|
10479
10502
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
10480
10503
|
*
|
|
@@ -10486,7 +10509,7 @@ export declare enum ModCallbackCustom {
|
|
|
10486
10509
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
10487
10510
|
* ```
|
|
10488
10511
|
*/
|
|
10489
|
-
POST_POOP_UPDATE =
|
|
10512
|
+
POST_POOP_UPDATE = 80,
|
|
10490
10513
|
/**
|
|
10491
10514
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
10492
10515
|
*
|
|
@@ -10498,7 +10521,7 @@ export declare enum ModCallbackCustom {
|
|
|
10498
10521
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
10499
10522
|
* ```
|
|
10500
10523
|
*/
|
|
10501
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
10524
|
+
POST_PRESSURE_PLATE_RENDER = 81,
|
|
10502
10525
|
/**
|
|
10503
10526
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
10504
10527
|
*
|
|
@@ -10510,7 +10533,7 @@ export declare enum ModCallbackCustom {
|
|
|
10510
10533
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
10511
10534
|
* ```
|
|
10512
10535
|
*/
|
|
10513
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
10536
|
+
POST_PRESSURE_PLATE_UPDATE = 82,
|
|
10514
10537
|
/**
|
|
10515
10538
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
10516
10539
|
*
|
|
@@ -10527,7 +10550,7 @@ export declare enum ModCallbackCustom {
|
|
|
10527
10550
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
10528
10551
|
* ```
|
|
10529
10552
|
*/
|
|
10530
|
-
POST_PROJECTILE_INIT_LATE =
|
|
10553
|
+
POST_PROJECTILE_INIT_LATE = 83,
|
|
10531
10554
|
/**
|
|
10532
10555
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
10533
10556
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -10543,7 +10566,7 @@ export declare enum ModCallbackCustom {
|
|
|
10543
10566
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
10544
10567
|
* ```
|
|
10545
10568
|
*/
|
|
10546
|
-
POST_PURCHASE =
|
|
10569
|
+
POST_PURCHASE = 84,
|
|
10547
10570
|
/**
|
|
10548
10571
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
10549
10572
|
*
|
|
@@ -10557,7 +10580,7 @@ export declare enum ModCallbackCustom {
|
|
|
10557
10580
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
10558
10581
|
* ```
|
|
10559
10582
|
*/
|
|
10560
|
-
POST_ROCK_RENDER =
|
|
10583
|
+
POST_ROCK_RENDER = 85,
|
|
10561
10584
|
/**
|
|
10562
10585
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
10563
10586
|
*
|
|
@@ -10571,7 +10594,7 @@ export declare enum ModCallbackCustom {
|
|
|
10571
10594
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
10572
10595
|
* ```
|
|
10573
10596
|
*/
|
|
10574
|
-
POST_ROCK_UPDATE =
|
|
10597
|
+
POST_ROCK_UPDATE = 86,
|
|
10575
10598
|
/**
|
|
10576
10599
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
10577
10600
|
* the `Room.IsClear` method).
|
|
@@ -10588,7 +10611,7 @@ export declare enum ModCallbackCustom {
|
|
|
10588
10611
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
10589
10612
|
* ```
|
|
10590
10613
|
*/
|
|
10591
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
10614
|
+
POST_ROOM_CLEAR_CHANGED = 87,
|
|
10592
10615
|
/**
|
|
10593
10616
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
10594
10617
|
* Room.
|
|
@@ -10603,7 +10626,7 @@ export declare enum ModCallbackCustom {
|
|
|
10603
10626
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
10604
10627
|
* ```
|
|
10605
10628
|
*/
|
|
10606
|
-
POST_SACRIFICE =
|
|
10629
|
+
POST_SACRIFICE = 88,
|
|
10607
10630
|
/**
|
|
10608
10631
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
10609
10632
|
*
|
|
@@ -10621,7 +10644,7 @@ export declare enum ModCallbackCustom {
|
|
|
10621
10644
|
* ): void {}
|
|
10622
10645
|
* ```
|
|
10623
10646
|
*/
|
|
10624
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
10647
|
+
POST_SLOT_ANIMATION_CHANGED = 89,
|
|
10625
10648
|
/**
|
|
10626
10649
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
10627
10650
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -10645,7 +10668,7 @@ export declare enum ModCallbackCustom {
|
|
|
10645
10668
|
* ): void {}
|
|
10646
10669
|
* ```
|
|
10647
10670
|
*/
|
|
10648
|
-
POST_SLOT_COLLISION =
|
|
10671
|
+
POST_SLOT_COLLISION = 90,
|
|
10649
10672
|
/**
|
|
10650
10673
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
10651
10674
|
* destroyed or a beggar is removed.
|
|
@@ -10687,7 +10710,7 @@ export declare enum ModCallbackCustom {
|
|
|
10687
10710
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
10688
10711
|
* ```
|
|
10689
10712
|
*/
|
|
10690
|
-
POST_SLOT_DESTROYED =
|
|
10713
|
+
POST_SLOT_DESTROYED = 91,
|
|
10691
10714
|
/**
|
|
10692
10715
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
10693
10716
|
*
|
|
@@ -10706,7 +10729,7 @@ export declare enum ModCallbackCustom {
|
|
|
10706
10729
|
* function postSlotInit(slot: Entity): void {}
|
|
10707
10730
|
* ```
|
|
10708
10731
|
*/
|
|
10709
|
-
POST_SLOT_INIT =
|
|
10732
|
+
POST_SLOT_INIT = 92,
|
|
10710
10733
|
/**
|
|
10711
10734
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
10712
10735
|
*
|
|
@@ -10720,7 +10743,7 @@ export declare enum ModCallbackCustom {
|
|
|
10720
10743
|
* function postSlotRender(slot: Entity): void {}
|
|
10721
10744
|
* ```
|
|
10722
10745
|
*/
|
|
10723
|
-
POST_SLOT_RENDER =
|
|
10746
|
+
POST_SLOT_RENDER = 93,
|
|
10724
10747
|
/**
|
|
10725
10748
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
10726
10749
|
*
|
|
@@ -10734,7 +10757,7 @@ export declare enum ModCallbackCustom {
|
|
|
10734
10757
|
* function postSlotUpdate(slot: Entity): void {}
|
|
10735
10758
|
* ```
|
|
10736
10759
|
*/
|
|
10737
|
-
POST_SLOT_UPDATE =
|
|
10760
|
+
POST_SLOT_UPDATE = 94,
|
|
10738
10761
|
/**
|
|
10739
10762
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
10740
10763
|
*
|
|
@@ -10746,7 +10769,7 @@ export declare enum ModCallbackCustom {
|
|
|
10746
10769
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
10747
10770
|
* ```
|
|
10748
10771
|
*/
|
|
10749
|
-
POST_SPIKES_RENDER =
|
|
10772
|
+
POST_SPIKES_RENDER = 95,
|
|
10750
10773
|
/**
|
|
10751
10774
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
10752
10775
|
*
|
|
@@ -10758,7 +10781,7 @@ export declare enum ModCallbackCustom {
|
|
|
10758
10781
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
10759
10782
|
* ```
|
|
10760
10783
|
*/
|
|
10761
|
-
POST_SPIKES_UPDATE =
|
|
10784
|
+
POST_SPIKES_UPDATE = 96,
|
|
10762
10785
|
/**
|
|
10763
10786
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
10764
10787
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -10776,7 +10799,7 @@ export declare enum ModCallbackCustom {
|
|
|
10776
10799
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
10777
10800
|
* ```
|
|
10778
10801
|
*/
|
|
10779
|
-
POST_TEAR_INIT_LATE =
|
|
10802
|
+
POST_TEAR_INIT_LATE = 97,
|
|
10780
10803
|
/**
|
|
10781
10804
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
10782
10805
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -10793,7 +10816,7 @@ export declare enum ModCallbackCustom {
|
|
|
10793
10816
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
10794
10817
|
* ```
|
|
10795
10818
|
*/
|
|
10796
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
10819
|
+
POST_TEAR_INIT_VERY_LATE = 98,
|
|
10797
10820
|
/**
|
|
10798
10821
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
10799
10822
|
*
|
|
@@ -10805,7 +10828,7 @@ export declare enum ModCallbackCustom {
|
|
|
10805
10828
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
10806
10829
|
* ```
|
|
10807
10830
|
*/
|
|
10808
|
-
POST_TNT_RENDER =
|
|
10831
|
+
POST_TNT_RENDER = 99,
|
|
10809
10832
|
/**
|
|
10810
10833
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
10811
10834
|
*
|
|
@@ -10817,7 +10840,7 @@ export declare enum ModCallbackCustom {
|
|
|
10817
10840
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
10818
10841
|
* ```
|
|
10819
10842
|
*/
|
|
10820
|
-
POST_TNT_UPDATE =
|
|
10843
|
+
POST_TNT_UPDATE = 100,
|
|
10821
10844
|
/**
|
|
10822
10845
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
10823
10846
|
* transformation.
|
|
@@ -10836,7 +10859,7 @@ export declare enum ModCallbackCustom {
|
|
|
10836
10859
|
* ): void {}
|
|
10837
10860
|
* ```
|
|
10838
10861
|
*/
|
|
10839
|
-
POST_TRANSFORMATION =
|
|
10862
|
+
POST_TRANSFORMATION = 101,
|
|
10840
10863
|
/**
|
|
10841
10864
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
10842
10865
|
*
|
|
@@ -10851,7 +10874,7 @@ export declare enum ModCallbackCustom {
|
|
|
10851
10874
|
* ): void {}
|
|
10852
10875
|
* ```
|
|
10853
10876
|
*/
|
|
10854
|
-
POST_TRINKET_BREAK =
|
|
10877
|
+
POST_TRINKET_BREAK = 102,
|
|
10855
10878
|
/**
|
|
10856
10879
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
10857
10880
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -10867,7 +10890,7 @@ export declare enum ModCallbackCustom {
|
|
|
10867
10890
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
10868
10891
|
* ```
|
|
10869
10892
|
*/
|
|
10870
|
-
PRE_BERSERK_DEATH =
|
|
10893
|
+
PRE_BERSERK_DEATH = 103,
|
|
10871
10894
|
/**
|
|
10872
10895
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
10873
10896
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -10886,7 +10909,7 @@ export declare enum ModCallbackCustom {
|
|
|
10886
10909
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
10887
10910
|
* ```
|
|
10888
10911
|
*/
|
|
10889
|
-
PRE_CUSTOM_REVIVE =
|
|
10912
|
+
PRE_CUSTOM_REVIVE = 104,
|
|
10890
10913
|
/**
|
|
10891
10914
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
10892
10915
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10911,7 +10934,7 @@ export declare enum ModCallbackCustom {
|
|
|
10911
10934
|
* ): [EntityType, int, int, int] | undefined {}
|
|
10912
10935
|
* ```
|
|
10913
10936
|
*/
|
|
10914
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
10937
|
+
PRE_ENTITY_SPAWN_FILTER = 105,
|
|
10915
10938
|
/**
|
|
10916
10939
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
10917
10940
|
* meets all of the conditions to pick it up.
|
|
@@ -10931,7 +10954,7 @@ export declare enum ModCallbackCustom {
|
|
|
10931
10954
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
10932
10955
|
* ```
|
|
10933
10956
|
*/
|
|
10934
|
-
PRE_GET_PEDESTAL =
|
|
10957
|
+
PRE_GET_PEDESTAL = 106,
|
|
10935
10958
|
/**
|
|
10936
10959
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
10937
10960
|
* the player begins to hold the item above their head).
|
|
@@ -10951,7 +10974,7 @@ export declare enum ModCallbackCustom {
|
|
|
10951
10974
|
* ): void {}
|
|
10952
10975
|
* ```
|
|
10953
10976
|
*/
|
|
10954
|
-
PRE_ITEM_PICKUP =
|
|
10977
|
+
PRE_ITEM_PICKUP = 107,
|
|
10955
10978
|
/**
|
|
10956
10979
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
10957
10980
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -10965,7 +10988,7 @@ export declare enum ModCallbackCustom {
|
|
|
10965
10988
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
10966
10989
|
* ```
|
|
10967
10990
|
*/
|
|
10968
|
-
PRE_NEW_LEVEL =
|
|
10991
|
+
PRE_NEW_LEVEL = 108,
|
|
10969
10992
|
/**
|
|
10970
10993
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
10971
10994
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10986,7 +11009,7 @@ export declare enum ModCallbackCustom {
|
|
|
10986
11009
|
* ): boolean | undefined {}
|
|
10987
11010
|
* ```
|
|
10988
11011
|
*/
|
|
10989
|
-
PRE_NPC_COLLISION_FILTER =
|
|
11012
|
+
PRE_NPC_COLLISION_FILTER = 109,
|
|
10990
11013
|
/**
|
|
10991
11014
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
10992
11015
|
* to specify extra arguments for additional filtration.
|
|
@@ -11003,7 +11026,7 @@ export declare enum ModCallbackCustom {
|
|
|
11003
11026
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
11004
11027
|
* ```
|
|
11005
11028
|
*/
|
|
11006
|
-
PRE_NPC_UPDATE_FILTER =
|
|
11029
|
+
PRE_NPC_UPDATE_FILTER = 110,
|
|
11007
11030
|
/**
|
|
11008
11031
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
11009
11032
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11026,7 +11049,7 @@ export declare enum ModCallbackCustom {
|
|
|
11026
11049
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
11027
11050
|
* ```
|
|
11028
11051
|
*/
|
|
11029
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
11052
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 111
|
|
11030
11053
|
}
|
|
11031
11054
|
|
|
11032
11055
|
/**
|
|
@@ -13703,6 +13726,8 @@ declare class RoomHistory extends Feature {
|
|
|
13703
13726
|
* In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_HISTORY`.
|
|
13704
13727
|
*/
|
|
13705
13728
|
getLatestRoomDescription(): Readonly<RoomDescription> | undefined;
|
|
13729
|
+
/** Helper function to detect if the player is on the first room of the room. */
|
|
13730
|
+
isFirstRoom(): boolean;
|
|
13706
13731
|
/**
|
|
13707
13732
|
* Helper function to detect if the game is in the state where the room index has changed to a new
|
|
13708
13733
|
* room, but the entities from the previous room are currently in the process of despawning. (At
|