isaacscript-common 7.4.3 → 7.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/callbacks/postGridEntity.d.ts.map +1 -1
- package/dist/callbacks/postGridEntity.lua +53 -6
- package/dist/callbacks/postPlayerChangeStat.d.ts.map +1 -1
- package/dist/callbacks/postPlayerChangeStat.lua +9 -2
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.d.ts +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postGridEntityCustomBroken.lua +5 -2
- package/dist/callbacks/subscriptions/postGridEntityCustomInit.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomInit.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomInit.lua +23 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRemove.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRemove.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRemove.lua +23 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.d.ts +9 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomStateChanged.lua +29 -0
- package/dist/callbacks/subscriptions/postPlayerChangeStat.d.ts +3 -2
- package/dist/callbacks/subscriptions/postPlayerChangeStat.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.d.ts +131 -81
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.lua +67 -61
- package/dist/enums/StatType.d.ts +3 -1
- package/dist/enums/StatType.d.ts.map +1 -1
- package/dist/enums/StatType.lua +2 -0
- package/dist/features/customGridEntity.d.ts +30 -13
- package/dist/features/customGridEntity.d.ts.map +1 -1
- package/dist/features/customGridEntity.lua +67 -48
- package/dist/features/customStage/customStageGridEntities.d.ts.map +1 -1
- package/dist/features/customStage/customStageGridEntities.lua +37 -31
- package/dist/functions/dev.d.ts +20 -0
- package/dist/functions/dev.d.ts.map +1 -0
- package/dist/functions/dev.lua +34 -0
- package/dist/functions/playerStats.d.ts.map +1 -1
- package/dist/functions/playerStats.lua +2 -1
- package/dist/functions/rooms.d.ts +5 -0
- package/dist/functions/rooms.d.ts.map +1 -1
- package/dist/functions/rooms.lua +12 -2
- package/dist/index.d.ts +204 -96
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +1134 -8
- package/dist/interfaces/StatTypeType.d.ts +1 -0
- package/dist/interfaces/StatTypeType.d.ts.map +1 -1
- package/dist/interfaces/private/AddCallbackParameterCustom.d.ts +6 -0
- package/dist/interfaces/private/AddCallbackParameterCustom.d.ts.map +1 -1
- package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
- package/dist/objects/callbackRegisterFunctions.lua +9 -0
- package/dist/types/PossibleStatType.d.ts +7 -0
- package/dist/types/PossibleStatType.d.ts.map +1 -0
- package/dist/{interfaces/index.lua → types/PossibleStatType.lua} +0 -0
- package/package.json +1 -1
- package/src/callbacks/postGridEntity.ts +75 -10
- package/src/callbacks/postPlayerChangeStat.ts +8 -4
- package/src/callbacks/subscriptions/postGridEntityCustomBroken.ts +4 -0
- package/src/callbacks/subscriptions/postGridEntityCustomInit.ts +38 -0
- package/src/callbacks/subscriptions/postGridEntityCustomRemove.ts +35 -0
- package/src/callbacks/subscriptions/postGridEntityCustomStateChanged.ts +42 -0
- package/src/callbacks/subscriptions/postPlayerChangeStat.ts +4 -7
- package/src/enums/ModCallbackCustom.ts +73 -20
- package/src/enums/StatType.ts +3 -3
- package/src/features/customGridEntity.ts +87 -61
- package/src/features/customStage/customStageGridEntities.ts +16 -7
- package/src/functions/dev.ts +31 -0
- package/src/functions/playerStats.ts +1 -0
- package/src/functions/rooms.ts +18 -0
- package/src/index.ts +208 -9
- package/src/interfaces/StatTypeType.ts +1 -0
- package/src/interfaces/private/AddCallbackParameterCustom.ts +6 -0
- package/src/objects/callbackRegisterFunctions.ts +9 -0
- package/src/types/PossibleStatType.ts +12 -0
- package/dist/classes/index.d.ts +0 -3
- package/dist/classes/index.d.ts.map +0 -1
- package/dist/classes/index.lua +0 -18
- package/dist/core/index.d.ts +0 -5
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.lua +0 -34
- package/dist/enums/DecorationVariant.d.ts +0 -10
- package/dist/enums/DecorationVariant.d.ts.map +0 -1
- package/dist/enums/DecorationVariant.lua +0 -7
- package/dist/enums/index.d.ts +0 -11
- package/dist/enums/index.d.ts.map +0 -1
- package/dist/enums/index.lua +0 -82
- package/dist/features/index.d.ts +0 -30
- package/dist/features/index.d.ts.map +0 -1
- package/dist/features/index.lua +0 -216
- package/dist/functions/index.d.ts +0 -100
- package/dist/functions/index.d.ts.map +0 -1
- package/dist/functions/index.lua +0 -794
- package/dist/interfaces/index.d.ts +0 -12
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/maps/index.d.ts +0 -5
- package/dist/maps/index.d.ts.map +0 -1
- package/dist/maps/index.lua +0 -34
- package/dist/objects/index.d.ts +0 -2
- package/dist/objects/index.d.ts.map +0 -1
- package/dist/objects/index.lua +0 -10
- package/dist/types/index.d.ts +0 -11
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.lua +0 -10
- package/src/classes/index.ts +0 -2
- package/src/classes/indexTypeDoc.ts +0 -2
- package/src/core/index.ts +0 -4
- package/src/core/indexTypeDoc.ts +0 -4
- package/src/enums/DecorationVariant.ts +0 -10
- package/src/enums/index.ts +0 -10
- package/src/enums/indexTypeDoc.ts +0 -10
- package/src/features/index.ts +0 -59
- package/src/features/indexTypeDoc.ts +0 -30
- package/src/functions/index.ts +0 -101
- package/src/functions/indexTypeDoc.ts +0 -101
- package/src/indexTypeDoc.ts +0 -13
- package/src/interfaces/index.ts +0 -11
- package/src/interfaces/indexTypeDoc.ts +0 -11
- package/src/maps/index.ts +0 -4
- package/src/maps/indexTypeDoc.ts +0 -4
- package/src/objects/index.ts +0 -1
- package/src/objects/indexTypeDoc.ts +0 -1
- package/src/types/index.ts +0 -10
- package/src/types/indexTypeDoc.ts +0 -10
package/dist/index.d.ts
CHANGED
|
@@ -104,7 +104,10 @@ declare interface AddCallbackParameterCustom {
|
|
|
104
104
|
[ModCallbackCustom.POST_GRID_ENTITY_COLLISION]: PostGridEntityCollisionRegisterParameters;
|
|
105
105
|
[ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_BROKEN]: PostGridEntityCustomBrokenRegisterParameters;
|
|
106
106
|
[ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_COLLISION]: PostGridEntityCustomCollisionRegisterParameters;
|
|
107
|
+
[ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_INIT]: PostGridEntityCustomInitRegisterParameters;
|
|
108
|
+
[ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_REMOVE]: PostGridEntityCustomRemoveRegisterParameters;
|
|
107
109
|
[ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_RENDER]: PostGridEntityCustomRenderRegisterParameters;
|
|
110
|
+
[ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_STATE_CHANGED]: PostGridEntityCustomStateChangedRegisterParameters;
|
|
108
111
|
[ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_UPDATE]: PostGridEntityCustomUpdateRegisterParameters;
|
|
109
112
|
[ModCallbackCustom.POST_GRID_ENTITY_INIT]: PostGridEntityInitRegisterParameters;
|
|
110
113
|
[ModCallbackCustom.POST_GRID_ENTITY_REMOVE]: PostGridEntityRemoveRegisterParameters;
|
|
@@ -1913,6 +1916,25 @@ export declare function enableAllInputsExceptFor(key: string, blacklist: Set<But
|
|
|
1913
1916
|
*/
|
|
1914
1917
|
export declare function enableAllSound(key: string): void;
|
|
1915
1918
|
|
|
1919
|
+
/**
|
|
1920
|
+
* Helper function to enable some IsaacScript features that are useful when developing a mod. They
|
|
1921
|
+
* shouldn't be enabled when your mod goes to production (i.e. it is uploaded to the Steam
|
|
1922
|
+
* Workshop).
|
|
1923
|
+
*
|
|
1924
|
+
* The list of development features that are enabled are as follows:
|
|
1925
|
+
*
|
|
1926
|
+
* - `saveDataManagerSetGlobal` - Sets your local variables registered with the save data manager as
|
|
1927
|
+
* global variables so you can access them from the in-game console.
|
|
1928
|
+
* - `setLogFunctionsGlobal` - Sets the various log functions global so that you can access them
|
|
1929
|
+
* from the in-game console.
|
|
1930
|
+
* - `enableExtraConsoleCommands` - Enables many extra in-game console commands that make warping
|
|
1931
|
+
* around easier (like e.g. `angel` to warp to the Angel Room).
|
|
1932
|
+
* - `enableFastReset` - Makes it so that the r key resets the game instantaneously.
|
|
1933
|
+
* - `removeFadeIn` - Removes the slow fade in that occurs at the beginning of the run, so that you
|
|
1934
|
+
* can immediately start playing or testing.
|
|
1935
|
+
*/
|
|
1936
|
+
export declare function enableDevFeatures(mod: ModUpgraded): void;
|
|
1937
|
+
|
|
1916
1938
|
/**
|
|
1917
1939
|
* Enables extra console commands which are useful for debugging. See [the
|
|
1918
1940
|
* docs](https://isaacscript.github.io/isaacscript-common/features/extraConsoleCommands_listCommands)
|
|
@@ -5017,6 +5039,12 @@ export declare function inMineShaft(): boolean;
|
|
|
5017
5039
|
*/
|
|
5018
5040
|
export declare function inMinibossRoomOf(minibossID: MinibossID): boolean;
|
|
5019
5041
|
|
|
5042
|
+
/**
|
|
5043
|
+
* Helper function to check if the current room is a "mirror room" in Downpour or Dross. (These
|
|
5044
|
+
* rooms are marked with a specific sub-type.)
|
|
5045
|
+
*/
|
|
5046
|
+
export declare function inMirrorRoom(): boolean;
|
|
5047
|
+
|
|
5020
5048
|
/**
|
|
5021
5049
|
* Helper function to check if a given position is within a given rectangle.
|
|
5022
5050
|
*
|
|
@@ -6457,7 +6485,7 @@ export declare enum ModCallbackCustom {
|
|
|
6457
6485
|
POST_EFFECT_INIT_LATE = 13,
|
|
6458
6486
|
/**
|
|
6459
6487
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
6460
|
-
* was on the previous frame.
|
|
6488
|
+
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
6461
6489
|
*
|
|
6462
6490
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
6463
6491
|
* only fire if it matches the `EffectVariant` provided.
|
|
@@ -6496,7 +6524,8 @@ export declare enum ModCallbackCustom {
|
|
|
6496
6524
|
POST_FAMILIAR_INIT_LATE = 16,
|
|
6497
6525
|
/**
|
|
6498
6526
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
6499
|
-
* was on the previous frame.
|
|
6527
|
+
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
6528
|
+
* field.)
|
|
6500
6529
|
*
|
|
6501
6530
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
6502
6531
|
* only fire if it matches the `FamiliarVariant` provided.
|
|
@@ -6569,7 +6598,8 @@ export declare enum ModCallbackCustom {
|
|
|
6569
6598
|
POST_GREED_MODE_WAVE = 22,
|
|
6570
6599
|
/**
|
|
6571
6600
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
6572
|
-
* the broken state for the respective grid entity type.
|
|
6601
|
+
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
6602
|
+
* `GridEntityType.ROCK` (2) when its state changes to `RockState.BROKEN` (2).)
|
|
6573
6603
|
*
|
|
6574
6604
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
6575
6605
|
* only fire if it matches the `GridEntityType` provided.
|
|
@@ -6594,12 +6624,8 @@ export declare enum ModCallbackCustom {
|
|
|
6594
6624
|
*/
|
|
6595
6625
|
POST_GRID_ENTITY_COLLISION = 24,
|
|
6596
6626
|
/**
|
|
6597
|
-
*
|
|
6598
|
-
* `spawnCustomGridEntity` helper function
|
|
6599
|
-
*
|
|
6600
|
-
* In most cases, you will want to remove the grid entity inside of this callback in order to
|
|
6601
|
-
* prevent further "broken" callbacks from firing. (This would not be the case if you were trying
|
|
6602
|
-
* to emulate a super tinted rock that takes multiple explosions to destroy, for example.)
|
|
6627
|
+
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
6628
|
+
* with the `spawnCustomGridEntity` helper function.
|
|
6603
6629
|
*
|
|
6604
6630
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
6605
6631
|
* only fire if it matches the `GridEntityType` provided.
|
|
@@ -6613,23 +6639,54 @@ export declare enum ModCallbackCustom {
|
|
|
6613
6639
|
*/
|
|
6614
6640
|
POST_GRID_ENTITY_CUSTOM_BROKEN = 25,
|
|
6615
6641
|
/**
|
|
6616
|
-
*
|
|
6617
|
-
* `spawnCustomGridEntity` helper function.
|
|
6642
|
+
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
6643
|
+
* with the `spawnCustomGridEntity` helper function.
|
|
6618
6644
|
*
|
|
6619
6645
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
6620
6646
|
* only fire if it matches the `GridEntityType` provided.
|
|
6621
6647
|
*
|
|
6622
6648
|
* ```ts
|
|
6623
|
-
* function
|
|
6649
|
+
* function postGridEntityCustomCollision(
|
|
6624
6650
|
* gridEntity: GridEntity,
|
|
6625
6651
|
* gridEntityTypeCustom: GridEntityType,
|
|
6652
|
+
* entity: Entity,
|
|
6626
6653
|
* ): void {}
|
|
6627
6654
|
* ```
|
|
6628
6655
|
*/
|
|
6629
6656
|
POST_GRID_ENTITY_CUSTOM_COLLISION = 26,
|
|
6630
6657
|
/**
|
|
6631
|
-
*
|
|
6632
|
-
* `spawnCustomGridEntity` helper function
|
|
6658
|
+
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
6659
|
+
* the `spawnCustomGridEntity` helper function.
|
|
6660
|
+
*
|
|
6661
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
6662
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
6663
|
+
*
|
|
6664
|
+
* ```ts
|
|
6665
|
+
* function postGridEntityCustomInit(
|
|
6666
|
+
* gridEntity: GridEntity,
|
|
6667
|
+
* gridEntityTypeCustom: GridEntityType,
|
|
6668
|
+
* ): void {}
|
|
6669
|
+
* ```
|
|
6670
|
+
*/
|
|
6671
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 27,
|
|
6672
|
+
/**
|
|
6673
|
+
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
6674
|
+
* with the `spawnCustomGridEntity` helper function.
|
|
6675
|
+
*
|
|
6676
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
6677
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
6678
|
+
*
|
|
6679
|
+
* ```ts
|
|
6680
|
+
* function postGridEntityCustomRemove(
|
|
6681
|
+
* gridIndex: int,
|
|
6682
|
+
* gridEntityTypeCustom: GridEntityType,
|
|
6683
|
+
* ): void {}
|
|
6684
|
+
* ```
|
|
6685
|
+
*/
|
|
6686
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 28,
|
|
6687
|
+
/**
|
|
6688
|
+
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
6689
|
+
* with the `spawnCustomGridEntity` helper function.
|
|
6633
6690
|
*
|
|
6634
6691
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
6635
6692
|
* only fire if it matches the `GridEntityType` provided.
|
|
@@ -6641,10 +6698,27 @@ export declare enum ModCallbackCustom {
|
|
|
6641
6698
|
* ): void {}
|
|
6642
6699
|
* ```
|
|
6643
6700
|
*/
|
|
6644
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
6701
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 29,
|
|
6702
|
+
/**
|
|
6703
|
+
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
6704
|
+
* created with the `spawnCustomGridEntity` helper function.
|
|
6705
|
+
*
|
|
6706
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
6707
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
6708
|
+
*
|
|
6709
|
+
* ```ts
|
|
6710
|
+
* function postGridEntityCustomStateChanged(
|
|
6711
|
+
* gridEntity: GridEntity,
|
|
6712
|
+
* gridEntityTypeCustom: GridEntityType,
|
|
6713
|
+
* oldState: int,
|
|
6714
|
+
* newState: int,
|
|
6715
|
+
* ): void {}
|
|
6716
|
+
* ```
|
|
6717
|
+
*/
|
|
6718
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 30,
|
|
6645
6719
|
/**
|
|
6646
|
-
*
|
|
6647
|
-
* `spawnCustomGridEntity` helper function
|
|
6720
|
+
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
6721
|
+
* with the `spawnCustomGridEntity` helper function.
|
|
6648
6722
|
*
|
|
6649
6723
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
6650
6724
|
* only fire if it matches the `GridEntityType` provided.
|
|
@@ -6656,7 +6730,7 @@ export declare enum ModCallbackCustom {
|
|
|
6656
6730
|
* ): void {}
|
|
6657
6731
|
* ```
|
|
6658
6732
|
*/
|
|
6659
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
6733
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 31,
|
|
6660
6734
|
/**
|
|
6661
6735
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
6662
6736
|
*
|
|
@@ -6672,11 +6746,13 @@ export declare enum ModCallbackCustom {
|
|
|
6672
6746
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
6673
6747
|
* ```
|
|
6674
6748
|
*/
|
|
6675
|
-
POST_GRID_ENTITY_INIT =
|
|
6749
|
+
POST_GRID_ENTITY_INIT = 32,
|
|
6676
6750
|
/**
|
|
6677
6751
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
6678
6752
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
6679
6753
|
*
|
|
6754
|
+
* (Leaving a room with a grid entity does not count as "removing" it.)
|
|
6755
|
+
*
|
|
6680
6756
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
6681
6757
|
* only fire if it matches the `GridEntityType` provided.
|
|
6682
6758
|
*
|
|
@@ -6687,7 +6763,7 @@ export declare enum ModCallbackCustom {
|
|
|
6687
6763
|
* ): void {}
|
|
6688
6764
|
* ```
|
|
6689
6765
|
*/
|
|
6690
|
-
POST_GRID_ENTITY_REMOVE =
|
|
6766
|
+
POST_GRID_ENTITY_REMOVE = 33,
|
|
6691
6767
|
/**
|
|
6692
6768
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
6693
6769
|
*
|
|
@@ -6700,9 +6776,10 @@ export declare enum ModCallbackCustom {
|
|
|
6700
6776
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
6701
6777
|
* ```
|
|
6702
6778
|
*/
|
|
6703
|
-
POST_GRID_ENTITY_RENDER =
|
|
6779
|
+
POST_GRID_ENTITY_RENDER = 34,
|
|
6704
6780
|
/**
|
|
6705
|
-
* Fires from the `POST_UPDATE` callback when a grid entity changes its state.
|
|
6781
|
+
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
6782
|
+
* "state" refers to the `GridEntity.State` field.)
|
|
6706
6783
|
*
|
|
6707
6784
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
6708
6785
|
* only fire if it matches the `GridEntityType` provided.
|
|
@@ -6715,7 +6792,7 @@ export declare enum ModCallbackCustom {
|
|
|
6715
6792
|
* ): void {}
|
|
6716
6793
|
* ```
|
|
6717
6794
|
*/
|
|
6718
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
6795
|
+
POST_GRID_ENTITY_STATE_CHANGED = 35,
|
|
6719
6796
|
/**
|
|
6720
6797
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
6721
6798
|
*
|
|
@@ -6728,7 +6805,7 @@ export declare enum ModCallbackCustom {
|
|
|
6728
6805
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
6729
6806
|
* ```
|
|
6730
6807
|
*/
|
|
6731
|
-
POST_GRID_ENTITY_UPDATE =
|
|
6808
|
+
POST_GRID_ENTITY_UPDATE = 36,
|
|
6732
6809
|
/**
|
|
6733
6810
|
* Fires from the `POST_PEFFECT_UPDATE` callback when the player loses a Holy Mantle temporary
|
|
6734
6811
|
* collectible effect.
|
|
@@ -6750,7 +6827,7 @@ export declare enum ModCallbackCustom {
|
|
|
6750
6827
|
* ): void {}
|
|
6751
6828
|
* ```
|
|
6752
6829
|
*/
|
|
6753
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
6830
|
+
POST_HOLY_MANTLE_REMOVED = 37,
|
|
6754
6831
|
/**
|
|
6755
6832
|
* Fires from `POST_PEFFECT_UPDATE` callback when the player loses charge on their active
|
|
6756
6833
|
* collectible item, implying that the item was just used.
|
|
@@ -6772,7 +6849,7 @@ export declare enum ModCallbackCustom {
|
|
|
6772
6849
|
* ): void {}
|
|
6773
6850
|
* ```
|
|
6774
6851
|
*/
|
|
6775
|
-
POST_ITEM_DISCHARGE =
|
|
6852
|
+
POST_ITEM_DISCHARGE = 38,
|
|
6776
6853
|
/**
|
|
6777
6854
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item is no longer queued (i.e. when the
|
|
6778
6855
|
* animation of the player holding the item above their head is finished and the item is actually
|
|
@@ -6792,7 +6869,7 @@ export declare enum ModCallbackCustom {
|
|
|
6792
6869
|
* ): void {}
|
|
6793
6870
|
* ```
|
|
6794
6871
|
*/
|
|
6795
|
-
POST_ITEM_PICKUP =
|
|
6872
|
+
POST_ITEM_PICKUP = 39,
|
|
6796
6873
|
/**
|
|
6797
6874
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
6798
6875
|
*
|
|
@@ -6806,7 +6883,7 @@ export declare enum ModCallbackCustom {
|
|
|
6806
6883
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
6807
6884
|
* ```
|
|
6808
6885
|
*/
|
|
6809
|
-
POST_KNIFE_INIT_LATE =
|
|
6886
|
+
POST_KNIFE_INIT_LATE = 40,
|
|
6810
6887
|
/**
|
|
6811
6888
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
6812
6889
|
*
|
|
@@ -6820,7 +6897,7 @@ export declare enum ModCallbackCustom {
|
|
|
6820
6897
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
6821
6898
|
* ```
|
|
6822
6899
|
*/
|
|
6823
|
-
POST_LASER_INIT_LATE =
|
|
6900
|
+
POST_LASER_INIT_LATE = 41,
|
|
6824
6901
|
/**
|
|
6825
6902
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
6826
6903
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -6837,7 +6914,7 @@ export declare enum ModCallbackCustom {
|
|
|
6837
6914
|
* function postNewLevelReordered(): void {}
|
|
6838
6915
|
* ```
|
|
6839
6916
|
*/
|
|
6840
|
-
POST_NEW_LEVEL_REORDERED =
|
|
6917
|
+
POST_NEW_LEVEL_REORDERED = 42,
|
|
6841
6918
|
/**
|
|
6842
6919
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
6843
6920
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -6848,7 +6925,7 @@ export declare enum ModCallbackCustom {
|
|
|
6848
6925
|
* function postNewRoomEarly(): void {}
|
|
6849
6926
|
* ```
|
|
6850
6927
|
*/
|
|
6851
|
-
POST_NEW_ROOM_EARLY =
|
|
6928
|
+
POST_NEW_ROOM_EARLY = 43,
|
|
6852
6929
|
/**
|
|
6853
6930
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
6854
6931
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -6865,7 +6942,7 @@ export declare enum ModCallbackCustom {
|
|
|
6865
6942
|
* function postNewRoomReordered(): void {}
|
|
6866
6943
|
* ```
|
|
6867
6944
|
*/
|
|
6868
|
-
POST_NEW_ROOM_REORDERED =
|
|
6945
|
+
POST_NEW_ROOM_REORDERED = 44,
|
|
6869
6946
|
/**
|
|
6870
6947
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
6871
6948
|
*
|
|
@@ -6879,10 +6956,10 @@ export declare enum ModCallbackCustom {
|
|
|
6879
6956
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
6880
6957
|
* ```
|
|
6881
6958
|
*/
|
|
6882
|
-
POST_NPC_INIT_LATE =
|
|
6959
|
+
POST_NPC_INIT_LATE = 45,
|
|
6883
6960
|
/**
|
|
6884
6961
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
6885
|
-
* the previous frame.
|
|
6962
|
+
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
6886
6963
|
*
|
|
6887
6964
|
* - When registering the callback, takes an optional second argument that will make the callback
|
|
6888
6965
|
* only fire if it matches the `EntityType` provided.
|
|
@@ -6897,7 +6974,7 @@ export declare enum ModCallbackCustom {
|
|
|
6897
6974
|
* ): void {}
|
|
6898
6975
|
* ```
|
|
6899
6976
|
*/
|
|
6900
|
-
POST_NPC_STATE_CHANGED =
|
|
6977
|
+
POST_NPC_STATE_CHANGED = 46,
|
|
6901
6978
|
/**
|
|
6902
6979
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
6903
6980
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -6920,7 +6997,7 @@ export declare enum ModCallbackCustom {
|
|
|
6920
6997
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
6921
6998
|
* ```
|
|
6922
6999
|
*/
|
|
6923
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
7000
|
+
POST_PEFFECT_UPDATE_REORDERED = 47,
|
|
6924
7001
|
/**
|
|
6925
7002
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
6926
7003
|
*
|
|
@@ -6933,7 +7010,7 @@ export declare enum ModCallbackCustom {
|
|
|
6933
7010
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
6934
7011
|
* ```
|
|
6935
7012
|
*/
|
|
6936
|
-
POST_PICKUP_COLLECT =
|
|
7013
|
+
POST_PICKUP_COLLECT = 48,
|
|
6937
7014
|
/**
|
|
6938
7015
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
6939
7016
|
* respective pickup on the run.
|
|
@@ -6948,7 +7025,7 @@ export declare enum ModCallbackCustom {
|
|
|
6948
7025
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
6949
7026
|
* ```
|
|
6950
7027
|
*/
|
|
6951
|
-
POST_PICKUP_INIT_FIRST =
|
|
7028
|
+
POST_PICKUP_INIT_FIRST = 49,
|
|
6952
7029
|
/**
|
|
6953
7030
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
6954
7031
|
*
|
|
@@ -6962,10 +7039,10 @@ export declare enum ModCallbackCustom {
|
|
|
6962
7039
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
6963
7040
|
* ```
|
|
6964
7041
|
*/
|
|
6965
|
-
POST_PICKUP_INIT_LATE =
|
|
7042
|
+
POST_PICKUP_INIT_LATE = 50,
|
|
6966
7043
|
/**
|
|
6967
7044
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
6968
|
-
* on the previous frame.
|
|
7045
|
+
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
6969
7046
|
*
|
|
6970
7047
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
6971
7048
|
* only fire if it matches the `PickupVariant` provided.
|
|
@@ -6978,7 +7055,7 @@ export declare enum ModCallbackCustom {
|
|
|
6978
7055
|
* ): void {}
|
|
6979
7056
|
* ```
|
|
6980
7057
|
*/
|
|
6981
|
-
POST_PICKUP_STATE_CHANGED =
|
|
7058
|
+
POST_PICKUP_STATE_CHANGED = 51,
|
|
6982
7059
|
/**
|
|
6983
7060
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
6984
7061
|
*
|
|
@@ -6989,7 +7066,7 @@ export declare enum ModCallbackCustom {
|
|
|
6989
7066
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
6990
7067
|
* ```
|
|
6991
7068
|
*/
|
|
6992
|
-
POST_PIT_RENDER =
|
|
7069
|
+
POST_PIT_RENDER = 52,
|
|
6993
7070
|
/**
|
|
6994
7071
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
6995
7072
|
*
|
|
@@ -7000,7 +7077,7 @@ export declare enum ModCallbackCustom {
|
|
|
7000
7077
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
7001
7078
|
* ```
|
|
7002
7079
|
*/
|
|
7003
|
-
POST_PIT_UPDATE =
|
|
7080
|
+
POST_PIT_UPDATE = 53,
|
|
7004
7081
|
/**
|
|
7005
7082
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's health (i.e. hearts) is different
|
|
7006
7083
|
* than what it was on the previous frame. For more information, see the `PlayerHealth` enum.
|
|
@@ -7020,7 +7097,7 @@ export declare enum ModCallbackCustom {
|
|
|
7020
7097
|
* ): void {}
|
|
7021
7098
|
* ```
|
|
7022
7099
|
*/
|
|
7023
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
7100
|
+
POST_PLAYER_CHANGE_HEALTH = 54,
|
|
7024
7101
|
/**
|
|
7025
7102
|
* Fires from the `POST_PEFFECT_UPDATE` callback when one of the player's stats change from what
|
|
7026
7103
|
* they were on the previous frame.
|
|
@@ -7049,7 +7126,7 @@ export declare enum ModCallbackCustom {
|
|
|
7049
7126
|
* ): void {}
|
|
7050
7127
|
* ```
|
|
7051
7128
|
*/
|
|
7052
|
-
POST_PLAYER_CHANGE_STAT =
|
|
7129
|
+
POST_PLAYER_CHANGE_STAT = 55,
|
|
7053
7130
|
/**
|
|
7054
7131
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity changes its player type
|
|
7055
7132
|
* (i.e. character) from what it was on the previous frame. For example, it will fire after using
|
|
@@ -7067,7 +7144,7 @@ export declare enum ModCallbackCustom {
|
|
|
7067
7144
|
* ): void {}
|
|
7068
7145
|
* ```
|
|
7069
7146
|
*/
|
|
7070
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
7147
|
+
POST_PLAYER_CHANGE_TYPE = 56,
|
|
7071
7148
|
/**
|
|
7072
7149
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is higher than
|
|
7073
7150
|
* what it was on the previous frame.
|
|
@@ -7082,7 +7159,7 @@ export declare enum ModCallbackCustom {
|
|
|
7082
7159
|
* ): void {}
|
|
7083
7160
|
* ```
|
|
7084
7161
|
*/
|
|
7085
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
7162
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 57,
|
|
7086
7163
|
/**
|
|
7087
7164
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is lower than
|
|
7088
7165
|
* what it was on the previous frame.
|
|
@@ -7097,7 +7174,7 @@ export declare enum ModCallbackCustom {
|
|
|
7097
7174
|
* ): void {}
|
|
7098
7175
|
* ```
|
|
7099
7176
|
*/
|
|
7100
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
7177
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 58,
|
|
7101
7178
|
/**
|
|
7102
7179
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
7103
7180
|
* prevent the fatal damage.
|
|
@@ -7114,7 +7191,7 @@ export declare enum ModCallbackCustom {
|
|
|
7114
7191
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
7115
7192
|
* ```
|
|
7116
7193
|
*/
|
|
7117
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
7194
|
+
POST_PLAYER_FATAL_DAMAGE = 59,
|
|
7118
7195
|
/**
|
|
7119
7196
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
7120
7197
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -7135,7 +7212,7 @@ export declare enum ModCallbackCustom {
|
|
|
7135
7212
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
7136
7213
|
* ```
|
|
7137
7214
|
*/
|
|
7138
|
-
POST_PLAYER_INIT_FIRST =
|
|
7215
|
+
POST_PLAYER_INIT_FIRST = 60,
|
|
7139
7216
|
/**
|
|
7140
7217
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
7141
7218
|
*
|
|
@@ -7154,7 +7231,7 @@ export declare enum ModCallbackCustom {
|
|
|
7154
7231
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
7155
7232
|
* ```
|
|
7156
7233
|
*/
|
|
7157
|
-
POST_PLAYER_INIT_LATE =
|
|
7234
|
+
POST_PLAYER_INIT_LATE = 61,
|
|
7158
7235
|
/**
|
|
7159
7236
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
7160
7237
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -7177,7 +7254,7 @@ export declare enum ModCallbackCustom {
|
|
|
7177
7254
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
7178
7255
|
* ```
|
|
7179
7256
|
*/
|
|
7180
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
7257
|
+
POST_PLAYER_RENDER_REORDERED = 62,
|
|
7181
7258
|
/**
|
|
7182
7259
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
7183
7260
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -7200,7 +7277,7 @@ export declare enum ModCallbackCustom {
|
|
|
7200
7277
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
7201
7278
|
* ```
|
|
7202
7279
|
*/
|
|
7203
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
7280
|
+
POST_PLAYER_UPDATE_REORDERED = 63,
|
|
7204
7281
|
/**
|
|
7205
7282
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
7206
7283
|
*
|
|
@@ -7211,7 +7288,7 @@ export declare enum ModCallbackCustom {
|
|
|
7211
7288
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
7212
7289
|
* ```
|
|
7213
7290
|
*/
|
|
7214
|
-
POST_POOP_RENDER =
|
|
7291
|
+
POST_POOP_RENDER = 64,
|
|
7215
7292
|
/**
|
|
7216
7293
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
7217
7294
|
*
|
|
@@ -7222,7 +7299,7 @@ export declare enum ModCallbackCustom {
|
|
|
7222
7299
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
7223
7300
|
* ```
|
|
7224
7301
|
*/
|
|
7225
|
-
POST_POOP_UPDATE =
|
|
7302
|
+
POST_POOP_UPDATE = 65,
|
|
7226
7303
|
/**
|
|
7227
7304
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
7228
7305
|
*
|
|
@@ -7233,7 +7310,7 @@ export declare enum ModCallbackCustom {
|
|
|
7233
7310
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
7234
7311
|
* ```
|
|
7235
7312
|
*/
|
|
7236
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
7313
|
+
POST_PRESSURE_PLATE_RENDER = 66,
|
|
7237
7314
|
/**
|
|
7238
7315
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
7239
7316
|
*
|
|
@@ -7244,7 +7321,7 @@ export declare enum ModCallbackCustom {
|
|
|
7244
7321
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
7245
7322
|
* ```
|
|
7246
7323
|
*/
|
|
7247
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
7324
|
+
POST_PRESSURE_PLATE_UPDATE = 67,
|
|
7248
7325
|
/**
|
|
7249
7326
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
7250
7327
|
*
|
|
@@ -7258,7 +7335,7 @@ export declare enum ModCallbackCustom {
|
|
|
7258
7335
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
7259
7336
|
* ```
|
|
7260
7337
|
*/
|
|
7261
|
-
POST_PROJECTILE_INIT_LATE =
|
|
7338
|
+
POST_PROJECTILE_INIT_LATE = 68,
|
|
7262
7339
|
/**
|
|
7263
7340
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player first picks up a new item. The
|
|
7264
7341
|
* pickup returned in the callback is assumed to be the first pickup that no longer exists.
|
|
@@ -7272,7 +7349,7 @@ export declare enum ModCallbackCustom {
|
|
|
7272
7349
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
7273
7350
|
* ```
|
|
7274
7351
|
*/
|
|
7275
|
-
POST_PURCHASE =
|
|
7352
|
+
POST_PURCHASE = 69,
|
|
7276
7353
|
/**
|
|
7277
7354
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
7278
7355
|
*
|
|
@@ -7283,7 +7360,7 @@ export declare enum ModCallbackCustom {
|
|
|
7283
7360
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
7284
7361
|
* ```
|
|
7285
7362
|
*/
|
|
7286
|
-
POST_ROCK_RENDER =
|
|
7363
|
+
POST_ROCK_RENDER = 70,
|
|
7287
7364
|
/**
|
|
7288
7365
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
7289
7366
|
*
|
|
@@ -7294,9 +7371,10 @@ export declare enum ModCallbackCustom {
|
|
|
7294
7371
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
7295
7372
|
* ```
|
|
7296
7373
|
*/
|
|
7297
|
-
POST_ROCK_UPDATE =
|
|
7374
|
+
POST_ROCK_UPDATE = 71,
|
|
7298
7375
|
/**
|
|
7299
|
-
* Fires from the `POST_UPDATE` callback when the clear state of a room changes
|
|
7376
|
+
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
7377
|
+
* the `Room.IsClear` method).
|
|
7300
7378
|
*
|
|
7301
7379
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
7302
7380
|
* only fire if the room clear state matches the boolean provided.
|
|
@@ -7305,7 +7383,7 @@ export declare enum ModCallbackCustom {
|
|
|
7305
7383
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
7306
7384
|
* ```
|
|
7307
7385
|
*/
|
|
7308
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
7386
|
+
POST_ROOM_CLEAR_CHANGED = 72,
|
|
7309
7387
|
/**
|
|
7310
7388
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
7311
7389
|
* Room.
|
|
@@ -7319,7 +7397,7 @@ export declare enum ModCallbackCustom {
|
|
|
7319
7397
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
7320
7398
|
* ```
|
|
7321
7399
|
*/
|
|
7322
|
-
POST_SACRIFICE =
|
|
7400
|
+
POST_SACRIFICE = 73,
|
|
7323
7401
|
/**
|
|
7324
7402
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
7325
7403
|
*
|
|
@@ -7330,7 +7408,7 @@ export declare enum ModCallbackCustom {
|
|
|
7330
7408
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
7331
7409
|
* ```
|
|
7332
7410
|
*/
|
|
7333
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
7411
|
+
POST_SLOT_ANIMATION_CHANGED = 74,
|
|
7334
7412
|
/**
|
|
7335
7413
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
7336
7414
|
* has broken.
|
|
@@ -7344,7 +7422,7 @@ export declare enum ModCallbackCustom {
|
|
|
7344
7422
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
7345
7423
|
* ```
|
|
7346
7424
|
*/
|
|
7347
|
-
POST_SLOT_DESTROYED =
|
|
7425
|
+
POST_SLOT_DESTROYED = 75,
|
|
7348
7426
|
/**
|
|
7349
7427
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
7350
7428
|
*
|
|
@@ -7360,7 +7438,7 @@ export declare enum ModCallbackCustom {
|
|
|
7360
7438
|
* function postSlotInit(slot: Entity): void {}
|
|
7361
7439
|
* ```
|
|
7362
7440
|
*/
|
|
7363
|
-
POST_SLOT_INIT =
|
|
7441
|
+
POST_SLOT_INIT = 76,
|
|
7364
7442
|
/**
|
|
7365
7443
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
7366
7444
|
*
|
|
@@ -7371,7 +7449,7 @@ export declare enum ModCallbackCustom {
|
|
|
7371
7449
|
* function postSlotRender(slot: Entity): void {}
|
|
7372
7450
|
* ```
|
|
7373
7451
|
*/
|
|
7374
|
-
POST_SLOT_RENDER =
|
|
7452
|
+
POST_SLOT_RENDER = 77,
|
|
7375
7453
|
/**
|
|
7376
7454
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
7377
7455
|
*
|
|
@@ -7382,7 +7460,7 @@ export declare enum ModCallbackCustom {
|
|
|
7382
7460
|
* function postSlotUpdate(slot: Entity): void {}
|
|
7383
7461
|
* ```
|
|
7384
7462
|
*/
|
|
7385
|
-
POST_SLOT_UPDATE =
|
|
7463
|
+
POST_SLOT_UPDATE = 78,
|
|
7386
7464
|
/**
|
|
7387
7465
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
7388
7466
|
*
|
|
@@ -7393,7 +7471,7 @@ export declare enum ModCallbackCustom {
|
|
|
7393
7471
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
7394
7472
|
* ```
|
|
7395
7473
|
*/
|
|
7396
|
-
POST_SPIKES_RENDER =
|
|
7474
|
+
POST_SPIKES_RENDER = 79,
|
|
7397
7475
|
/**
|
|
7398
7476
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
7399
7477
|
*
|
|
@@ -7404,7 +7482,7 @@ export declare enum ModCallbackCustom {
|
|
|
7404
7482
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
7405
7483
|
* ```
|
|
7406
7484
|
*/
|
|
7407
|
-
POST_SPIKES_UPDATE =
|
|
7485
|
+
POST_SPIKES_UPDATE = 80,
|
|
7408
7486
|
/**
|
|
7409
7487
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
7410
7488
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -7419,7 +7497,7 @@ export declare enum ModCallbackCustom {
|
|
|
7419
7497
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
7420
7498
|
* ```
|
|
7421
7499
|
*/
|
|
7422
|
-
POST_TEAR_INIT_LATE =
|
|
7500
|
+
POST_TEAR_INIT_LATE = 81,
|
|
7423
7501
|
/**
|
|
7424
7502
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
7425
7503
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -7433,7 +7511,7 @@ export declare enum ModCallbackCustom {
|
|
|
7433
7511
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
7434
7512
|
* ```
|
|
7435
7513
|
*/
|
|
7436
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
7514
|
+
POST_TEAR_INIT_VERY_LATE = 82,
|
|
7437
7515
|
/**
|
|
7438
7516
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
7439
7517
|
*
|
|
@@ -7444,7 +7522,7 @@ export declare enum ModCallbackCustom {
|
|
|
7444
7522
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
7445
7523
|
* ```
|
|
7446
7524
|
*/
|
|
7447
|
-
POST_TNT_RENDER =
|
|
7525
|
+
POST_TNT_RENDER = 83,
|
|
7448
7526
|
/**
|
|
7449
7527
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
7450
7528
|
*
|
|
@@ -7455,7 +7533,7 @@ export declare enum ModCallbackCustom {
|
|
|
7455
7533
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
7456
7534
|
* ```
|
|
7457
7535
|
*/
|
|
7458
|
-
POST_TNT_UPDATE =
|
|
7536
|
+
POST_TNT_UPDATE = 84,
|
|
7459
7537
|
/**
|
|
7460
7538
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player gains or loses a new
|
|
7461
7539
|
* transformation.
|
|
@@ -7473,7 +7551,7 @@ export declare enum ModCallbackCustom {
|
|
|
7473
7551
|
* ): void {}
|
|
7474
7552
|
* ```
|
|
7475
7553
|
*/
|
|
7476
|
-
POST_TRANSFORMATION =
|
|
7554
|
+
POST_TRANSFORMATION = 85,
|
|
7477
7555
|
/**
|
|
7478
7556
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
7479
7557
|
*
|
|
@@ -7487,7 +7565,7 @@ export declare enum ModCallbackCustom {
|
|
|
7487
7565
|
* ): void {}
|
|
7488
7566
|
* ```
|
|
7489
7567
|
*/
|
|
7490
|
-
POST_TRINKET_BREAK =
|
|
7568
|
+
POST_TRINKET_BREAK = 86,
|
|
7491
7569
|
/**
|
|
7492
7570
|
* Fires from the `POST_PEFFECT_UPDATE` callback on the frame before a Berserk effect ends when
|
|
7493
7571
|
* the player is predicted to die (e.g. they currently have no health left or they took damage in
|
|
@@ -7502,7 +7580,7 @@ export declare enum ModCallbackCustom {
|
|
|
7502
7580
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
7503
7581
|
* ```
|
|
7504
7582
|
*/
|
|
7505
|
-
PRE_BERSERK_DEATH =
|
|
7583
|
+
PRE_BERSERK_DEATH = 87,
|
|
7506
7584
|
/**
|
|
7507
7585
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
7508
7586
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -7520,7 +7598,7 @@ export declare enum ModCallbackCustom {
|
|
|
7520
7598
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
7521
7599
|
* ```
|
|
7522
7600
|
*/
|
|
7523
|
-
PRE_CUSTOM_REVIVE =
|
|
7601
|
+
PRE_CUSTOM_REVIVE = 88,
|
|
7524
7602
|
/**
|
|
7525
7603
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item becomes queued (i.e. when the player
|
|
7526
7604
|
* begins to hold the item above their head).
|
|
@@ -7539,7 +7617,7 @@ export declare enum ModCallbackCustom {
|
|
|
7539
7617
|
* ): void {}
|
|
7540
7618
|
* ```
|
|
7541
7619
|
*/
|
|
7542
|
-
PRE_ITEM_PICKUP =
|
|
7620
|
+
PRE_ITEM_PICKUP = 89,
|
|
7543
7621
|
/**
|
|
7544
7622
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
7545
7623
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -7553,7 +7631,7 @@ export declare enum ModCallbackCustom {
|
|
|
7553
7631
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
7554
7632
|
* ```
|
|
7555
7633
|
*/
|
|
7556
|
-
PRE_NEW_LEVEL =
|
|
7634
|
+
PRE_NEW_LEVEL = 90
|
|
7557
7635
|
}
|
|
7558
7636
|
|
|
7559
7637
|
/**
|
|
@@ -7925,6 +8003,12 @@ export declare enum PocketItemType {
|
|
|
7925
8003
|
UNDETERMINABLE = 5
|
|
7926
8004
|
}
|
|
7927
8005
|
|
|
8006
|
+
/**
|
|
8007
|
+
* These are the possible types that player stats can be. For example, `EntityPlayer.Damage` is of
|
|
8008
|
+
* type `float`, `EntityPlayer.CanFly` is of type `boolean`, and so on.
|
|
8009
|
+
*/
|
|
8010
|
+
export declare type PossibleStatType = number | boolean | BitFlags<TearFlag> | Color | Vector;
|
|
8011
|
+
|
|
7928
8012
|
declare type PostAmbushFinishedRegisterParameters = [
|
|
7929
8013
|
callback: (ambushType: AmbushType) => void,
|
|
7930
8014
|
ambushType?: AmbushType
|
|
@@ -8054,11 +8138,26 @@ callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType, entity:
|
|
|
8054
8138
|
gridEntityTypeCustom?: GridEntityType
|
|
8055
8139
|
];
|
|
8056
8140
|
|
|
8141
|
+
declare type PostGridEntityCustomInitRegisterParameters = [
|
|
8142
|
+
callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType) => void,
|
|
8143
|
+
gridEntityTypeCustom?: GridEntityType
|
|
8144
|
+
];
|
|
8145
|
+
|
|
8146
|
+
declare type PostGridEntityCustomRemoveRegisterParameters = [
|
|
8147
|
+
callback: (gridIndex: int, gridEntityTypeCustom: GridEntityType) => void,
|
|
8148
|
+
gridEntityTypeCustom?: GridEntityType
|
|
8149
|
+
];
|
|
8150
|
+
|
|
8057
8151
|
declare type PostGridEntityCustomRenderRegisterParameters = [
|
|
8058
8152
|
callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType) => void,
|
|
8059
8153
|
gridEntityTypeCustom?: GridEntityType
|
|
8060
8154
|
];
|
|
8061
8155
|
|
|
8156
|
+
declare type PostGridEntityCustomStateChangedRegisterParameters = [
|
|
8157
|
+
callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType, oldState: int, newState: int) => void,
|
|
8158
|
+
gridEntityTypeCustom?: GridEntityType
|
|
8159
|
+
];
|
|
8160
|
+
|
|
8062
8161
|
declare type PostGridEntityCustomUpdateRegisterParameters = [
|
|
8063
8162
|
callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType) => void,
|
|
8064
8163
|
gridEntityTypeCustom?: GridEntityType
|
|
@@ -8185,7 +8284,7 @@ character?: PlayerType
|
|
|
8185
8284
|
];
|
|
8186
8285
|
|
|
8187
8286
|
declare type PostPlayerChangeStatRegisterParameters = [
|
|
8188
|
-
callback: (player: EntityPlayer, statType: StatType, difference: int, oldValue:
|
|
8287
|
+
callback: (player: EntityPlayer, statType: StatType, difference: int, oldValue: PossibleStatType, newValue: PossibleStatType) => void,
|
|
8189
8288
|
playerVariant?: PlayerVariant,
|
|
8190
8289
|
character?: PlayerType
|
|
8191
8290
|
];
|
|
@@ -10220,18 +10319,24 @@ export declare function spawnCustomDoor(effectVariant: EffectVariant, doorSlot:
|
|
|
10220
10319
|
* will reappear if the player leaves and re-enters the room. (It will be manually respawned in the
|
|
10221
10320
|
* `POST_NEW_ROOM` callback.)
|
|
10222
10321
|
*
|
|
10223
|
-
*
|
|
10224
|
-
*
|
|
10225
|
-
*
|
|
10322
|
+
* Custom grid entities are built on top of real grid entities. You can use any existing grid entity
|
|
10323
|
+
* type as a base. For example, if you want to create a custom rock that would be breakable like a
|
|
10324
|
+
* normal rock, then you should specify `GridEntityType.ROCK` as the base grid entity type.
|
|
10226
10325
|
*
|
|
10227
10326
|
* Once a custom grid entity is spawned, you can take advantage of the custom grid callbacks such as
|
|
10228
|
-
* `POST_GRID_ENTITY_CUSTOM_UPDATE`.
|
|
10327
|
+
* `POST_GRID_ENTITY_CUSTOM_UPDATE`. Note that the "normal" grid entities callbacks will not fire
|
|
10328
|
+
* for custom entities. For example, if you had a custom grid entity based on `GridEntityType.ROCK`,
|
|
10329
|
+
* and you also had a subscription to the `POST_GRID_ENTITY_UPDATE` callback, the callback would
|
|
10330
|
+
* only fire for normal rocks and not the custom entity.
|
|
10331
|
+
*
|
|
10332
|
+
* Custom grid entities are an IsaacScript feature because the vanilla game does not support any
|
|
10333
|
+
* custom grid entities.
|
|
10229
10334
|
*
|
|
10230
10335
|
* @param gridEntityTypeCustom An integer that identifies what kind of grid entity you are creating.
|
|
10231
|
-
* It should correspond to a local enum value in your mod. The
|
|
10232
|
-
* can be any unique value and will not correspond to the actual
|
|
10233
|
-
* entity type used. (This integer is used in the various custom
|
|
10234
|
-
* entity callbacks.)
|
|
10336
|
+
* It should correspond to a local enum value created in your mod. The
|
|
10337
|
+
* integer can be any unique value and will not correspond to the actual
|
|
10338
|
+
* grid entity type used. (This integer is used in the various custom
|
|
10339
|
+
* grid entity callbacks.)
|
|
10235
10340
|
* @param gridIndexOrPosition The grid index or position in the room that you want to spawn the grid
|
|
10236
10341
|
* entity at. If a position is specified, the closest grid index will be
|
|
10237
10342
|
* used.
|
|
@@ -10240,12 +10345,12 @@ export declare function spawnCustomDoor(effectVariant: EffectVariant, doorSlot:
|
|
|
10240
10345
|
* @param defaultAnimation Optional. The name of the animation to play after the sprite is
|
|
10241
10346
|
* initialized and after the player re-enters a room with this grid entity
|
|
10242
10347
|
* in it. If not specified, the default animation in the anm2 will be used.
|
|
10243
|
-
* @param
|
|
10244
|
-
*
|
|
10245
|
-
*
|
|
10246
|
-
*
|
|
10348
|
+
* @param baseGridEntityType Optional. The type of the grid entity to use as a "base" for this
|
|
10349
|
+
* custom grid entity. Default is `GridEntityType.DECORATION`.
|
|
10350
|
+
* @param baseGridEntityVariant Optional. The variant of the grid entity to use as a "base" for this
|
|
10351
|
+
* custom grid entity. Default is 0.
|
|
10247
10352
|
*/
|
|
10248
|
-
export declare function spawnCustomGrid(gridEntityTypeCustom: GridEntityType, gridIndexOrPosition: int | Vector, gridCollisionClass: GridCollisionClass, anm2Path: string, defaultAnimation?: string,
|
|
10353
|
+
export declare function spawnCustomGrid(gridEntityTypeCustom: GridEntityType, gridIndexOrPosition: int | Vector, gridCollisionClass: GridCollisionClass, anm2Path: string, defaultAnimation?: string, baseGridEntityType?: GridEntityType, baseGridEntityVariant?: number): GridEntity;
|
|
10249
10354
|
|
|
10250
10355
|
/**
|
|
10251
10356
|
* Helper function to spawn a trapdoor grid entity that will have one or more of the following
|
|
@@ -10578,7 +10683,9 @@ export declare enum StatType {
|
|
|
10578
10683
|
/** Corresponds to `CacheFlag.FLYING` (1 << 7) and `EntityPlayer.CanFly`. */
|
|
10579
10684
|
FLYING = 10,
|
|
10580
10685
|
/** Corresponds to `CacheFlag.LUCK` (1 << 10) and `EntityPlayer.Luck`. */
|
|
10581
|
-
LUCK = 11
|
|
10686
|
+
LUCK = 11,
|
|
10687
|
+
/** Corresponds to `CacheFlag.SIZE` (1 << 11) and `EntityPlayer.SpriteScale`. */
|
|
10688
|
+
SIZE = 12
|
|
10582
10689
|
}
|
|
10583
10690
|
|
|
10584
10691
|
/**
|
|
@@ -10598,6 +10705,7 @@ export declare interface StatTypeType {
|
|
|
10598
10705
|
[StatType.TEAR_COLOR]: Color;
|
|
10599
10706
|
[StatType.FLYING]: boolean;
|
|
10600
10707
|
[StatType.LUCK]: float;
|
|
10708
|
+
[StatType.SIZE]: Vector;
|
|
10601
10709
|
}
|
|
10602
10710
|
|
|
10603
10711
|
export declare function stopAllSoundEffects(): void;
|