isaacscript-common 13.3.3 → 14.0.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.d.ts +586 -407
- package/dist/isaacscript-common.lua +15849 -15070
- package/dist/src/callbacks/postAmbush.d.ts.map +1 -1
- package/dist/src/callbacks/postAmbush.lua +7 -12
- package/dist/src/callbacks/postBombExploded.lua +3 -3
- package/dist/src/callbacks/postRoomClearChanged.d.ts.map +1 -1
- package/dist/src/callbacks/postRoomClearChanged.lua +3 -5
- package/dist/src/callbacks/subscriptions/{postBoneExploded.d.ts → postBombExploded.d.ts} +1 -1
- package/dist/src/callbacks/subscriptions/{postBoneExploded.d.ts.map → postBombExploded.d.ts.map} +1 -1
- package/dist/src/callbacks/subscriptions/{postBoneExploded.lua → postBombExploded.lua} +0 -0
- package/dist/src/callbacks/subscriptions/postCollectibleEmpty.d.ts +1 -1
- package/dist/src/callbacks/subscriptions/postCollectibleEmpty.d.ts.map +1 -1
- package/dist/src/callbacks/subscriptions/postCollectibleInitFirst.d.ts +1 -1
- package/dist/src/callbacks/subscriptions/postCollectibleInitFirst.d.ts.map +1 -1
- package/dist/src/callbacks/subscriptions/postCursedTeleport.d.ts +4 -2
- package/dist/src/callbacks/subscriptions/postCursedTeleport.d.ts.map +1 -1
- package/dist/src/callbacks/subscriptions/postCursedTeleport.lua +13 -1
- package/dist/src/callbacks/subscriptions/postHolyMantleRemoved.d.ts.map +1 -1
- package/dist/src/callbacks/subscriptions/postHolyMantleRemoved.lua +2 -2
- package/dist/src/callbacks/subscriptions/postPEffectUpdateReordered.d.ts.map +1 -1
- package/dist/src/callbacks/subscriptions/postPEffectUpdateReordered.lua +2 -2
- package/dist/src/classes/ModUpgraded.d.ts +18 -10
- package/dist/src/classes/ModUpgraded.d.ts.map +1 -1
- package/dist/src/classes/ModUpgraded.lua +105 -16
- package/dist/src/classes/callbacks/PostAmbushFinished.d.ts +12 -0
- package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostAmbushFinished.lua +37 -0
- package/dist/src/classes/callbacks/PostAmbushStarted.d.ts +12 -0
- package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostAmbushStarted.lua +37 -0
- package/dist/src/classes/callbacks/PostBombExploded.d.ts +7 -0
- package/dist/src/classes/callbacks/PostBombExploded.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostBombExploded.lua +24 -0
- package/dist/src/classes/callbacks/PostBombInitLate.d.ts +12 -0
- package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostBombInitLate.lua +27 -0
- package/dist/src/classes/callbacks/PostBoneSwing.d.ts +15 -0
- package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostBoneSwing.lua +43 -0
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts +17 -0
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostCollectibleEmpty.lua +47 -0
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts +13 -0
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.lua +32 -0
- package/dist/src/classes/callbacks/PostCursedTeleport.d.ts +21 -0
- package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostCursedTeleport.lua +113 -0
- package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts +12 -0
- package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostKnifeInitLate.lua +27 -0
- package/dist/src/classes/callbacks/PostNewRoomEarly.d.ts +14 -0
- package/dist/src/classes/callbacks/PostNewRoomEarly.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostNewRoomEarly.lua +65 -0
- package/dist/src/classes/callbacks/PostPitRender.d.ts +7 -0
- package/dist/src/classes/callbacks/PostPitRender.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostPitRender.lua +24 -0
- package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts +13 -0
- package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostRoomClearChanged.lua +33 -0
- package/dist/src/classes/callbacks/PostSpikesRender.d.ts +7 -0
- package/dist/src/classes/callbacks/PostSpikesRender.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostSpikesRender.lua +24 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackAmbush.d.ts +10 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackAmbush.d.ts.map +1 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackAmbush.lua +19 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackBomb.d.ts +10 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackBomb.d.ts.map +1 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackBomb.lua +19 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackCollectible.d.ts +10 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackCollectible.d.ts.map +1 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackCollectible.lua +19 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackKnife.d.ts +10 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackKnife.d.ts.map +1 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackKnife.lua +19 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackPit.d.ts +10 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackPit.d.ts.map +1 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackPit.lua +20 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackPlayer.d.ts +10 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackPlayer.d.ts.map +1 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackPlayer.lua +23 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackSpikes.d.ts +10 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackSpikes.d.ts.map +1 -0
- package/dist/src/classes/callbacks/validation/CustomCallbackSpikes.lua +20 -0
- package/dist/src/classes/private/CustomCallback.d.ts +32 -0
- package/dist/src/classes/private/CustomCallback.d.ts.map +1 -0
- package/dist/src/classes/private/CustomCallback.lua +53 -0
- package/dist/src/core/upgradeMod.d.ts.map +1 -1
- package/dist/src/core/upgradeMod.lua +16 -0
- package/dist/src/enums/IsaacScriptCommonFeature.d.ts +35 -0
- package/dist/src/enums/IsaacScriptCommonFeature.d.ts.map +1 -0
- package/dist/src/enums/IsaacScriptCommonFeature.lua +35 -0
- package/dist/src/enums/LadderSubTypeCustom.d.ts +17 -0
- package/dist/src/enums/LadderSubTypeCustom.d.ts.map +1 -0
- package/dist/src/enums/LadderSubTypeCustom.lua +19 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +399 -327
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +85 -87
- package/dist/src/enums/ModCallbackCustom2.d.ts +17 -0
- package/dist/src/enums/ModCallbackCustom2.d.ts.map +1 -0
- package/dist/src/enums/ModCallbackCustom2.lua +30 -0
- package/dist/src/features/{setHotkey.d.ts → customHotkeys.d.ts} +1 -1
- package/dist/src/features/customHotkeys.d.ts.map +1 -0
- package/dist/src/features/{setHotkey.lua → customHotkeys.lua} +2 -2
- package/dist/src/features/customPickup.d.ts.map +1 -1
- package/dist/src/features/customPickup.lua +6 -2
- package/dist/src/features/customStage/backdrop.d.ts.map +1 -1
- package/dist/src/features/customStage/backdrop.lua +3 -1
- package/dist/src/features/customStage/shadows.d.ts.map +1 -1
- package/dist/src/features/customStage/shadows.lua +3 -1
- package/dist/src/features/customTrapdoor/init.lua +1 -7
- package/dist/src/features/firstLast.d.ts.map +1 -1
- package/dist/src/features/firstLast.lua +3 -3
- package/dist/src/features/saveDataManager/main.d.ts +5 -2
- package/dist/src/features/saveDataManager/main.d.ts.map +1 -1
- package/dist/src/features/saveDataManager/main.lua +3 -5
- package/dist/src/functions/ambush.d.ts +6 -0
- package/dist/src/functions/ambush.d.ts.map +1 -1
- package/dist/src/functions/ambush.lua +31 -0
- package/dist/src/functions/minimap.d.ts +4 -0
- package/dist/src/functions/minimap.d.ts.map +1 -1
- package/dist/src/functions/minimap.lua +4 -0
- package/dist/src/functions/roomTransition.d.ts +3 -4
- package/dist/src/functions/roomTransition.d.ts.map +1 -1
- package/dist/src/functions/roomTransition.lua +4 -32
- package/dist/src/functions/spawnCollectible.d.ts +24 -5
- package/dist/src/functions/spawnCollectible.d.ts.map +1 -1
- package/dist/src/functions/spawnCollectible.lua +44 -4
- package/dist/src/functions/utils.d.ts +7 -2
- package/dist/src/functions/utils.d.ts.map +1 -1
- package/dist/src/functions/utils.lua +7 -2
- package/dist/src/index.d.ts +4 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.lua +26 -10
- package/dist/src/initCustomCallbacks.d.ts.map +1 -1
- package/dist/src/initCustomCallbacks.lua +0 -3
- package/dist/src/initFeatures.lua +3 -3
- package/dist/src/interfaces/private/{AddCallbackParameterCustom.d.ts → AddCallbackParametersCustom.d.ts} +4 -6
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -0
- package/dist/src/interfaces/private/{AddCallbackParameterCustom.lua → AddCallbackParametersCustom.lua} +0 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom2.d.ts +55 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom2.d.ts.map +1 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom2.lua +4 -0
- package/dist/src/objects/callbackRegisterFunctions.d.ts +2 -2
- package/dist/src/objects/callbackRegisterFunctions.d.ts.map +1 -1
- package/dist/src/objects/callbackRegisterFunctions.lua +2 -5
- package/dist/src/types/private/AllButFirst.d.ts +5 -0
- package/dist/src/types/private/AllButFirst.d.ts.map +1 -0
- package/dist/src/types/private/AllButFirst.lua +2 -0
- package/dist/src/types/private/CallbackTuple.d.ts +20 -0
- package/dist/src/types/private/CallbackTuple.d.ts.map +1 -0
- package/dist/src/types/private/CallbackTuple.lua +2 -0
- package/dist/src/types/private/MatchingCallbackCustom.d.ts +14 -0
- package/dist/src/types/private/MatchingCallbackCustom.d.ts.map +1 -0
- package/dist/src/types/private/MatchingCallbackCustom.lua +2 -0
- package/package.json +2 -2
- package/src/callbacks/postAmbush.ts +7 -14
- package/src/callbacks/postBombExploded.ts +1 -1
- package/src/callbacks/postBoneSwing.ts +2 -1
- package/src/callbacks/postCollectibleEmpty.ts +2 -0
- package/src/callbacks/postCollectibleInitFirst.ts +2 -0
- package/src/callbacks/postNewRoomEarly.ts +1 -1
- package/src/callbacks/postRoomClearChanged.ts +3 -7
- package/src/callbacks/subscriptions/{postBoneExploded.ts → postBombExploded.ts} +0 -0
- package/src/callbacks/subscriptions/postCollectibleEmpty.ts +1 -1
- package/src/callbacks/subscriptions/postCollectibleInitFirst.ts +1 -1
- package/src/callbacks/subscriptions/postCursedTeleport.ts +24 -1
- package/src/callbacks/subscriptions/postHolyMantleRemoved.ts +9 -2
- package/src/callbacks/subscriptions/postPEffectUpdateReordered.ts +9 -2
- package/src/classes/ModUpgraded.ts +132 -31
- package/src/classes/callbacks/PostAmbushFinished.ts +39 -0
- package/src/classes/callbacks/PostAmbushStarted.ts +39 -0
- package/src/classes/callbacks/PostBombExploded.ts +21 -0
- package/src/classes/callbacks/PostBombInitLate.ts +28 -0
- package/src/classes/callbacks/PostBoneSwing.ts +58 -0
- package/src/classes/callbacks/PostCollectibleEmpty.ts +72 -0
- package/src/classes/callbacks/PostCollectibleInitFirst.ts +37 -0
- package/src/classes/callbacks/PostCursedTeleport.ts +183 -0
- package/src/classes/callbacks/PostKnifeInitLate.ts +28 -0
- package/src/classes/callbacks/PostNewRoomEarly.ts +93 -0
- package/src/classes/callbacks/PostPitRender.ts +21 -0
- package/src/classes/callbacks/PostRoomClearChanged.ts +40 -0
- package/src/classes/callbacks/PostSpikesRender.ts +21 -0
- package/src/classes/callbacks/validation/CustomCallbackAmbush.ts +28 -0
- package/src/classes/callbacks/validation/CustomCallbackBomb.ts +27 -0
- package/src/classes/callbacks/validation/CustomCallbackCollectible.ts +30 -0
- package/src/classes/callbacks/validation/CustomCallbackKnife.ts +27 -0
- package/src/classes/callbacks/validation/CustomCallbackPit.ts +28 -0
- package/src/classes/callbacks/validation/CustomCallbackPlayer.ts +37 -0
- package/src/classes/callbacks/validation/CustomCallbackSpikes.ts +28 -0
- package/src/classes/private/CustomCallback.ts +79 -0
- package/src/core/upgradeMod.ts +16 -2
- package/src/enums/IsaacScriptCommonFeature.ts +34 -0
- package/src/enums/LadderSubTypeCustom.ts +17 -0
- package/src/enums/ModCallbackCustom.ts +314 -243
- package/src/enums/ModCallbackCustom2.ts +17 -0
- package/src/features/{setHotkey.ts → customHotkeys.ts} +2 -2
- package/src/features/customPickup.ts +4 -2
- package/src/features/customStage/backdrop.ts +2 -1
- package/src/features/customStage/shadows.ts +2 -1
- package/src/features/customTrapdoor/init.ts +0 -1
- package/src/features/firstLast.ts +3 -7
- package/src/features/saveDataManager/main.ts +32 -21
- package/src/functions/ambush.ts +26 -1
- package/src/functions/minimap.ts +4 -0
- package/src/functions/roomTransition.ts +3 -27
- package/src/functions/spawnCollectible.ts +44 -4
- package/src/functions/utils.ts +7 -2
- package/src/index.ts +4 -2
- package/src/initCustomCallbacks.ts +1 -2
- package/src/initFeatures.ts +2 -2
- package/src/interfaces/private/{AddCallbackParameterCustom.ts → AddCallbackParametersCustom.ts} +3 -25
- package/src/interfaces/private/AddCallbackParametersCustom2.ts +79 -0
- package/src/objects/callbackRegisterFunctions.ts +3 -5
- package/src/types/private/AllButFirst.ts +6 -0
- package/src/types/private/CallbackTuple.ts +21 -0
- package/src/types/private/MatchingCallbackCustom.ts +26 -0
- package/dist/src/callbacks/postCustomDoorEnter.d.ts +0 -6
- package/dist/src/callbacks/postCustomDoorEnter.d.ts.map +0 -1
- package/dist/src/callbacks/postCustomDoorEnter.lua +0 -199
- package/dist/src/callbacks/subscriptions/postCustomDoorEnter.d.ts +0 -9
- package/dist/src/callbacks/subscriptions/postCustomDoorEnter.d.ts.map +0 -1
- package/dist/src/callbacks/subscriptions/postCustomDoorEnter.lua +0 -29
- package/dist/src/features/customDoor.d.ts +0 -51
- package/dist/src/features/customDoor.d.ts.map +0 -1
- package/dist/src/features/customDoor.lua +0 -53
- package/dist/src/features/setHotkey.d.ts.map +0 -1
- package/dist/src/indexLua.d.ts +0 -186
- package/dist/src/indexLua.d.ts.map +0 -1
- package/dist/src/indexLua.lua +0 -1322
- package/dist/src/interfaces/private/AddCallbackParameterCustom.d.ts.map +0 -1
- package/src/callbacks/postCustomDoorEnter.ts +0 -250
- package/src/callbacks/subscriptions/postCustomDoorEnter.ts +0 -42
- package/src/features/customDoor.ts +0 -66
package/dist/index.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ import { TrapdoorVariant } from 'isaac-typescript-definitions';
|
|
|
79
79
|
import { TrinketType } from 'isaac-typescript-definitions';
|
|
80
80
|
import { UseFlag } from 'isaac-typescript-definitions';
|
|
81
81
|
|
|
82
|
-
declare interface
|
|
82
|
+
declare interface AddCallbackParametersCustom {
|
|
83
83
|
[ModCallbackCustom.POST_AMBUSH_FINISHED]: PostAmbushFinishedRegisterParameters;
|
|
84
84
|
[ModCallbackCustom.POST_AMBUSH_STARTED]: PostAmbushStartedRegisterParameters;
|
|
85
85
|
[ModCallbackCustom.POST_BOMB_EXPLODED]: PostBombExplodedRegisterParameters;
|
|
@@ -88,7 +88,6 @@ declare interface AddCallbackParameterCustom {
|
|
|
88
88
|
[ModCallbackCustom.POST_COLLECTIBLE_EMPTY]: PostCollectibleEmptyRegisterParameters;
|
|
89
89
|
[ModCallbackCustom.POST_COLLECTIBLE_INIT_FIRST]: PostCollectibleInitFirstRegisterParameters;
|
|
90
90
|
[ModCallbackCustom.POST_CURSED_TELEPORT]: PostCursedTeleportRegisterParameters;
|
|
91
|
-
[ModCallbackCustom.POST_CUSTOM_DOOR_ENTER]: PostCustomDoorEnterRegisterParameters;
|
|
92
91
|
[ModCallbackCustom.POST_CUSTOM_REVIVE]: PostCustomReviveRegisterParameters;
|
|
93
92
|
[ModCallbackCustom.POST_DICE_ROOM_ACTIVATED]: PostDiceRoomActivatedRegisterParameters;
|
|
94
93
|
[ModCallbackCustom.POST_DOOR_RENDER]: PostDoorRenderRegisterParameters;
|
|
@@ -133,7 +132,6 @@ declare interface AddCallbackParameterCustom {
|
|
|
133
132
|
[ModCallbackCustom.POST_PICKUP_INIT_FIRST]: PostPickupInitFirstRegisterParameters;
|
|
134
133
|
[ModCallbackCustom.POST_PICKUP_INIT_LATE]: PostPickupInitLateRegisterParameters;
|
|
135
134
|
[ModCallbackCustom.POST_PICKUP_STATE_CHANGED]: PostPickupStateChangedRegisterParameters;
|
|
136
|
-
[ModCallbackCustom.POST_PIT_RENDER]: PostPitRenderRegisterParameters;
|
|
137
135
|
[ModCallbackCustom.POST_PIT_UPDATE]: PostPitUpdateRegisterParameters;
|
|
138
136
|
[ModCallbackCustom.POST_PLAYER_CHANGE_HEALTH]: PostPlayerChangeHealthRegisterParameters;
|
|
139
137
|
[ModCallbackCustom.POST_PLAYER_CHANGE_STAT]: PostPlayerChangeStatRegisterParameters;
|
|
@@ -145,6 +143,7 @@ declare interface AddCallbackParameterCustom {
|
|
|
145
143
|
[ModCallbackCustom.POST_PLAYER_INIT_LATE]: PostPlayerInitLateRegisterParameters;
|
|
146
144
|
[ModCallbackCustom.POST_PLAYER_RENDER_REORDERED]: PostPlayerRenderReorderedRegisterParameters;
|
|
147
145
|
[ModCallbackCustom.POST_PLAYER_UPDATE_REORDERED]: PostPlayerUpdateReorderedRegisterParameters;
|
|
146
|
+
[ModCallbackCustom.POST_PIT_RENDER]: PostPitRenderRegisterParameters;
|
|
148
147
|
[ModCallbackCustom.POST_POOP_RENDER]: PostPoopRenderRegisterParameters;
|
|
149
148
|
[ModCallbackCustom.POST_POOP_UPDATE]: PostPoopUpdateRegisterParameters;
|
|
150
149
|
[ModCallbackCustom.POST_PRESSURE_PLATE_RENDER]: PostPressurePlateRenderRegisterParameters;
|
|
@@ -176,6 +175,58 @@ declare interface AddCallbackParameterCustom {
|
|
|
176
175
|
[ModCallbackCustom.PRE_NEW_LEVEL]: PreNewLevelRegisterParameters;
|
|
177
176
|
}
|
|
178
177
|
|
|
178
|
+
declare interface AddCallbackParametersCustom2 {
|
|
179
|
+
[ModCallbackCustom2.POST_AMBUSH_FINISHED]: [
|
|
180
|
+
callback: (ambushType: AmbushType) => void,
|
|
181
|
+
ambushType?: AmbushType
|
|
182
|
+
];
|
|
183
|
+
[ModCallbackCustom2.POST_AMBUSH_STARTED]: [
|
|
184
|
+
callback: (ambushType: AmbushType) => void,
|
|
185
|
+
ambushType?: AmbushType
|
|
186
|
+
];
|
|
187
|
+
[ModCallbackCustom2.POST_BOMB_EXPLODED]: [
|
|
188
|
+
callback: (bomb: EntityBomb) => void,
|
|
189
|
+
bombVariant?: BombVariant
|
|
190
|
+
];
|
|
191
|
+
[ModCallbackCustom2.POST_BOMB_INIT_LATE]: [
|
|
192
|
+
callback: (bomb: EntityBomb) => void,
|
|
193
|
+
bombVariant?: BombVariant
|
|
194
|
+
];
|
|
195
|
+
[ModCallbackCustom2.POST_BONE_SWING]: [
|
|
196
|
+
callback: (knife: EntityKnife) => void
|
|
197
|
+
];
|
|
198
|
+
[ModCallbackCustom2.POST_COLLECTIBLE_EMPTY]: [
|
|
199
|
+
callback: (collectible: EntityPickupCollectible, oldCollectibleType: CollectibleType) => void,
|
|
200
|
+
collectibleType?: CollectibleType
|
|
201
|
+
];
|
|
202
|
+
[ModCallbackCustom2.POST_COLLECTIBLE_INIT_FIRST]: [
|
|
203
|
+
callback: (collectible: EntityPickupCollectible) => void,
|
|
204
|
+
collectibleType?: CollectibleType
|
|
205
|
+
];
|
|
206
|
+
[ModCallbackCustom2.POST_CURSED_TELEPORT]: [
|
|
207
|
+
callback: (player: EntityPlayer) => void,
|
|
208
|
+
playerVariant?: PlayerVariant,
|
|
209
|
+
character?: PlayerType
|
|
210
|
+
];
|
|
211
|
+
[ModCallbackCustom2.POST_KNIFE_INIT_LATE]: [
|
|
212
|
+
callback: (knife: EntityKnife) => void,
|
|
213
|
+
knifeVariant?: KnifeVariant
|
|
214
|
+
];
|
|
215
|
+
[ModCallbackCustom2.POST_NEW_ROOM_EARLY]: [callback: () => void];
|
|
216
|
+
[ModCallbackCustom2.POST_PIT_RENDER]: [
|
|
217
|
+
callback: (pit: GridEntityPit) => void,
|
|
218
|
+
pitVariant?: PitVariant
|
|
219
|
+
];
|
|
220
|
+
[ModCallbackCustom2.POST_ROOM_CLEAR_CHANGED]: [
|
|
221
|
+
callback: (roomClear: boolean) => void,
|
|
222
|
+
roomClear?: boolean
|
|
223
|
+
];
|
|
224
|
+
[ModCallbackCustom2.POST_SPIKES_RENDER]: [
|
|
225
|
+
callback: (spikes: GridEntitySpikes) => void,
|
|
226
|
+
gridEntityVariant?: int
|
|
227
|
+
];
|
|
228
|
+
}
|
|
229
|
+
|
|
179
230
|
/**
|
|
180
231
|
* Helper function to add a charge to the player's active item. Will flash the HUD and play the
|
|
181
232
|
* appropriate sound effect, depending on whether the charge is partially full or completely full.
|
|
@@ -296,6 +347,8 @@ export declare function addRoomClearChargeToSlot(player: EntityPlayer, activeSlo
|
|
|
296
347
|
* Helper function to add a `DisplayFlag` to a particular room's minimap display flags (e.g. whether
|
|
297
348
|
* or not it is visible and so on).
|
|
298
349
|
*
|
|
350
|
+
* This function automatically accounts for whether or not MinimapAPI is being used.
|
|
351
|
+
*
|
|
299
352
|
* @param roomGridIndex Set to undefined to use the current room index.
|
|
300
353
|
* @param displayFlag The `DisplayFlag` to set. (See the `DisplayFlag` enum.)
|
|
301
354
|
* @param updateVisibility Optional. Whether to call the `Level.UpdateVisibility` method in order to
|
|
@@ -2470,6 +2523,12 @@ export declare function getAllPlayers(): EntityPlayer[];
|
|
|
2470
2523
|
/** Helper function to get the room safe grid index for every room on the entire floor. */
|
|
2471
2524
|
export declare function getAllRoomGridIndexes(): int[];
|
|
2472
2525
|
|
|
2526
|
+
/**
|
|
2527
|
+
* Helper function to get the corresponding ambush type for the current room. Returns undefined if
|
|
2528
|
+
* the current room does not correspond to any particular ambush type.
|
|
2529
|
+
*/
|
|
2530
|
+
export declare function getAmbushType(): AmbushType | undefined;
|
|
2531
|
+
|
|
2473
2532
|
export declare function getAngelRoomDoor(): GridEntityDoor | undefined;
|
|
2474
2533
|
|
|
2475
2534
|
export declare function getAngleDifference(angle1: float, angle2: float): float;
|
|
@@ -5712,33 +5771,6 @@ export declare function inHomeCloset(): boolean;
|
|
|
5712
5771
|
*/
|
|
5713
5772
|
export declare function initArray<T>(defaultValue: T, size: int): T[];
|
|
5714
5773
|
|
|
5715
|
-
/**
|
|
5716
|
-
* `isaacscript-common` provides custom doors that can be spawned where any wall segment is. If you
|
|
5717
|
-
* use this feature, you must first call this initialization function at the beginning of your mod.
|
|
5718
|
-
*
|
|
5719
|
-
* Each kind of custom door that you create must have an entry in the "content/entities2.xml" file,
|
|
5720
|
-
* like so:
|
|
5721
|
-
*
|
|
5722
|
-
* ```xml
|
|
5723
|
-
* <entity id="1000" name="Foo Custom Door" anm2path="grid/door_foo.anm2" />
|
|
5724
|
-
* ```
|
|
5725
|
-
*
|
|
5726
|
-
* (Custom door entities must have an id of "1000", which corresponds to an effect. If you do not
|
|
5727
|
-
* specify the variant, then the game will automatically assign it.)
|
|
5728
|
-
*
|
|
5729
|
-
* Next, pass the variant into this function:
|
|
5730
|
-
*
|
|
5731
|
-
* ```ts
|
|
5732
|
-
* const modVanilla = RegisterMod("My Mod", 1);
|
|
5733
|
-
* const mod = upgradeMod(modVanilla);
|
|
5734
|
-
* const fooEffectVariant = Isaac.GetEntityVariantByName("Foo Custom Door");
|
|
5735
|
-
* initCustomDoor(mod, fooEffectVariant);
|
|
5736
|
-
* ```
|
|
5737
|
-
*
|
|
5738
|
-
* Also see the `spawnCustomDoor` function.
|
|
5739
|
-
*/
|
|
5740
|
-
export declare function initCustomDoor(mod: ModUpgraded, effectVariant: EffectVariant): void;
|
|
5741
|
-
|
|
5742
5774
|
/** Helper function to determine if the current room shape is one of the four L room shapes. */
|
|
5743
5775
|
export declare function inLRoom(): boolean;
|
|
5744
5776
|
|
|
@@ -5830,6 +5862,41 @@ declare interface IsaacAPIClassTypeToType {
|
|
|
5830
5862
|
[CopyableIsaacAPIClassType.VECTOR]: Vector;
|
|
5831
5863
|
}
|
|
5832
5864
|
|
|
5865
|
+
export declare enum IsaacScriptCommonFeature {
|
|
5866
|
+
CHARACTER_HEALTH_CONVERSION = "characterHealthConversion",
|
|
5867
|
+
CHARACTER_STATS = "characterStats",
|
|
5868
|
+
COLLECTIBLE_ITEM_POOL_TYPE = "collectibleItemPoolType",
|
|
5869
|
+
CUSTOM_GRID_ENTITY = "customGridEntity",
|
|
5870
|
+
CUSTOM_HOTKEYS = "customHotkeys",
|
|
5871
|
+
CUSTOM_PICKUP = "customPickup",
|
|
5872
|
+
CUSTOM_STAGE = "customStage",
|
|
5873
|
+
CUSTOM_TRAPDOOR = "customTrapdoor",
|
|
5874
|
+
DEBUG_DISPLAY = "debugDisplay",
|
|
5875
|
+
DEPLOY_JSON_ROOM = "deployJSONRoom",
|
|
5876
|
+
DISABLE_ALL_SOUND = "displayAllSound",
|
|
5877
|
+
DISABLE_INPUTS = "disableInputs",
|
|
5878
|
+
FADE_IN_REMOVER = "fadeInRemover",
|
|
5879
|
+
FAST_RESET = "fastReset",
|
|
5880
|
+
FIRST_LAST = "firstLast",
|
|
5881
|
+
FORGOTTEN_SWITCH = "forgottenSwitch",
|
|
5882
|
+
EXTRA_CONSOLE_COMMANDS = "extraConsoleCommands",
|
|
5883
|
+
PAUSE = "pause",
|
|
5884
|
+
PERSISTENT_ENTITIES = "persistentEntities",
|
|
5885
|
+
PICKUP_INDEX = "pickupIndex",
|
|
5886
|
+
PLAYER_INVENTORY = "playerInventory",
|
|
5887
|
+
PONY_DETECTION = "ponyDetection",
|
|
5888
|
+
PREVENT_CHILD_ENTITIES = "preventChildEntities",
|
|
5889
|
+
PREVENT_COLLECTIBLE_ROTATION = "preventCollectibleRotation",
|
|
5890
|
+
ROOM_CLEAR_FRAME = "roomClearFrame",
|
|
5891
|
+
ROOM_HISTORY = "roomHistory",
|
|
5892
|
+
RUN_IN_N_FRAMES = "runInNFrames",
|
|
5893
|
+
RUN_NEXT_ROOM = "runNextRoom",
|
|
5894
|
+
SAVE_DATA_MANAGER = "saveDataManager",
|
|
5895
|
+
SIREN_HELPERS = "sirenHelpers",
|
|
5896
|
+
STAGE_HISTORY = "stageHistory",
|
|
5897
|
+
TAINTED_LAZARUS_PLAYERS = "taintedLazarusPlayers"
|
|
5898
|
+
}
|
|
5899
|
+
|
|
5833
5900
|
/** Iterates over all inputs to determine if a particular button is pressed (i.e. held down). */
|
|
5834
5901
|
export declare function isActionPressedOnAnyInput(buttonAction: ButtonAction): boolean;
|
|
5835
5902
|
|
|
@@ -6408,8 +6475,13 @@ export declare function isRedHeart(pickup: EntityPickup): boolean;
|
|
|
6408
6475
|
export declare function isRedKeyRoom(roomGridIndex?: int): boolean;
|
|
6409
6476
|
|
|
6410
6477
|
/**
|
|
6411
|
-
*
|
|
6412
|
-
*
|
|
6478
|
+
* Helper function to see if the current render callback is rendering a water reflection.
|
|
6479
|
+
*
|
|
6480
|
+
* When the player is in a room with water, things will be rendered twice: once for the normal
|
|
6481
|
+
* rendering, and once for the reflecting rendering. Thus, any mod code in a render callback will
|
|
6482
|
+
* run twice per frame in these situations, which may be unexpected or cause bugs.
|
|
6483
|
+
*
|
|
6484
|
+
* This function is typically used to early return from a render function if it returns true.
|
|
6413
6485
|
*/
|
|
6414
6486
|
export declare function isReflectionRender(): boolean;
|
|
6415
6487
|
|
|
@@ -6858,6 +6930,23 @@ export declare function kColorEquals(kColor1: KColor, kColor2: KColor): boolean;
|
|
|
6858
6930
|
*/
|
|
6859
6931
|
export declare function keyboardToString(keyboard: Keyboard, uppercase: boolean): string | undefined;
|
|
6860
6932
|
|
|
6933
|
+
/**
|
|
6934
|
+
* For `EntityType.EFFECT` (1000), `EffectVariant.LADDER` (8).
|
|
6935
|
+
*
|
|
6936
|
+
* Note that vanilla ladders only use a sub-type of 0. The `isaacscript-common` library uses ladders
|
|
6937
|
+
* to represent custom objects, since they are non-interacting and will not automatically despawn
|
|
6938
|
+
* after time passes, unlike most other effects.
|
|
6939
|
+
*
|
|
6940
|
+
* This enum tracks the kinds of custom objects that are represented by vanilla ladders. We start
|
|
6941
|
+
* assigning sub-types after 100 as to not interfere with any possible modded ladder variants.
|
|
6942
|
+
*/
|
|
6943
|
+
export declare enum LadderSubTypeCustom {
|
|
6944
|
+
LADDER = 0,
|
|
6945
|
+
CUSTOM_BACKDROP = 101,
|
|
6946
|
+
CUSTOM_SHADOW = 102,
|
|
6947
|
+
CUSTOM_PICKUP = 103
|
|
6948
|
+
}
|
|
6949
|
+
|
|
6861
6950
|
/**
|
|
6862
6951
|
* Equal to `PillColor.HORSE_WHITE_YELLOW`.
|
|
6863
6952
|
*
|
|
@@ -7182,8 +7271,9 @@ export declare enum ModCallbackCustom {
|
|
|
7182
7271
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
|
|
7183
7272
|
* Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
|
|
7184
7273
|
*
|
|
7185
|
-
* When registering the callback
|
|
7186
|
-
* only fire if
|
|
7274
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7275
|
+
* an optional third argument that will make the callback only fire if it matches the `AmbushType`
|
|
7276
|
+
* provided.
|
|
7187
7277
|
*
|
|
7188
7278
|
* ```ts
|
|
7189
7279
|
* function postAmbushFinished(ambushType: AmbushType): void {}
|
|
@@ -7194,8 +7284,9 @@ export declare enum ModCallbackCustom {
|
|
|
7194
7284
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
|
|
7195
7285
|
* Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
|
|
7196
7286
|
*
|
|
7197
|
-
* When registering the callback
|
|
7198
|
-
* only fire if
|
|
7287
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7288
|
+
* an optional third argument that will make the callback only fire if it matches the `AmbushType`
|
|
7289
|
+
* provided.
|
|
7199
7290
|
*
|
|
7200
7291
|
* ```ts
|
|
7201
7292
|
* function postAmbushStarted(ambushType: AmbushType): void {}
|
|
@@ -7205,8 +7296,9 @@ export declare enum ModCallbackCustom {
|
|
|
7205
7296
|
/**
|
|
7206
7297
|
* Fires on the `POST_BOMB_UPDATE` callback that it explodes.
|
|
7207
7298
|
*
|
|
7208
|
-
* When registering the callback
|
|
7209
|
-
* only fire if
|
|
7299
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7300
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7301
|
+
* `BombVariant` provided.
|
|
7210
7302
|
*
|
|
7211
7303
|
* ```ts
|
|
7212
7304
|
* function postBombDetonated(bomb: EntityBomb): void {}
|
|
@@ -7219,8 +7311,9 @@ export declare enum ModCallbackCustom {
|
|
|
7219
7311
|
* This callback is useful because many attributes cannot be set or retrieved properly in the
|
|
7220
7312
|
* normal `POST_BOMB_INIT` callback.
|
|
7221
7313
|
*
|
|
7222
|
-
* When registering the callback
|
|
7223
|
-
* only fire if
|
|
7314
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7315
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7316
|
+
* `BombVariant` provided.
|
|
7224
7317
|
*
|
|
7225
7318
|
* ```ts
|
|
7226
7319
|
* function postBombInitLate(bomb: EntityBomb): void {}
|
|
@@ -7239,8 +7332,9 @@ export declare enum ModCallbackCustom {
|
|
|
7239
7332
|
* Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
|
|
7240
7333
|
* to `CollectibleType.NULL` (i.e. an "empty" pedestal).
|
|
7241
7334
|
*
|
|
7242
|
-
* When registering the callback
|
|
7243
|
-
* only fire if the
|
|
7335
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7336
|
+
* an optional third argument that will make the callback only fire if the pedestal changed from
|
|
7337
|
+
* the `CollectibleType` provided.
|
|
7244
7338
|
*
|
|
7245
7339
|
* ```ts
|
|
7246
7340
|
* function postCollectibleEmpty(
|
|
@@ -7259,11 +7353,12 @@ export declare enum ModCallbackCustom {
|
|
|
7259
7353
|
* upon re-entering the room. Additionally, when playing as Tainted Isaac, the `POST_PICKUP_INIT`
|
|
7260
7354
|
* callback will fire every time the item shifts.
|
|
7261
7355
|
*
|
|
7262
|
-
* When registering the callback
|
|
7263
|
-
* only fire if
|
|
7356
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7357
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7358
|
+
* `CollectibleType` provided.
|
|
7264
7359
|
*
|
|
7265
7360
|
* ```ts
|
|
7266
|
-
* function postCollectibleInitLate(collectible:
|
|
7361
|
+
* function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
|
|
7267
7362
|
* ```
|
|
7268
7363
|
*/
|
|
7269
7364
|
POST_COLLECTIBLE_INIT_FIRST = 6,
|
|
@@ -7272,28 +7367,17 @@ export declare enum ModCallbackCustom {
|
|
|
7272
7367
|
* begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
|
|
7273
7368
|
* of these have the same effect in causing Isaac to be teleported to a random room.)
|
|
7274
7369
|
*
|
|
7370
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7371
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7372
|
+
* matches the `PlayerVariant` provided.
|
|
7373
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
7374
|
+
* matches the `PlayerType` provided.
|
|
7375
|
+
*
|
|
7275
7376
|
* ```ts
|
|
7276
7377
|
* function postCursedTeleport(player: EntityPlayer): void {}
|
|
7277
7378
|
* ```
|
|
7278
7379
|
*/
|
|
7279
7380
|
POST_CURSED_TELEPORT = 7,
|
|
7280
|
-
/**
|
|
7281
|
-
* Fires from the `POST_PEFFECT_UPDATE` callback when a player enters the loading zone of a custom
|
|
7282
|
-
* door created with the `spawnCustomDoor` helper function.
|
|
7283
|
-
*
|
|
7284
|
-
* When registering the callback, takes an optional second argument that will make the callback
|
|
7285
|
-
* only fire if it matches the `DoorVariant` provided.
|
|
7286
|
-
*
|
|
7287
|
-
* ```ts
|
|
7288
|
-
* function postCustomDoorEnter(
|
|
7289
|
-
* player: EntityPlayer,
|
|
7290
|
-
* effectVariant: int,
|
|
7291
|
-
* doorSlot: DoorSlot,
|
|
7292
|
-
* direction: Direction,
|
|
7293
|
-
* ): void {}
|
|
7294
|
-
* ```
|
|
7295
|
-
*/
|
|
7296
|
-
POST_CUSTOM_DOOR_ENTER = 8,
|
|
7297
7381
|
/**
|
|
7298
7382
|
* Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
|
|
7299
7383
|
* has teleported to the previous room, and is ready to play the animation for the modded revival
|
|
@@ -7303,20 +7387,22 @@ export declare enum ModCallbackCustom {
|
|
|
7303
7387
|
* `player.AnimateCollectible(CollectibleTypeCustom.COLLECTIBLE_MY_REVIVAL_ITEM);`, otherwise the
|
|
7304
7388
|
* animation for a 1-Up will play.
|
|
7305
7389
|
*
|
|
7306
|
-
* When registering the callback
|
|
7307
|
-
* only fire if the revival type matches
|
|
7390
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7391
|
+
* an optional third argument that will make the callback only fire if the revival type matches
|
|
7392
|
+
* the one provided.
|
|
7308
7393
|
*
|
|
7309
7394
|
* ```ts
|
|
7310
7395
|
* function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
|
|
7311
7396
|
* ```
|
|
7312
7397
|
*/
|
|
7313
|
-
POST_CUSTOM_REVIVE =
|
|
7398
|
+
POST_CUSTOM_REVIVE = 8,
|
|
7314
7399
|
/**
|
|
7315
7400
|
* Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
|
|
7316
7401
|
* Room floor.
|
|
7317
7402
|
*
|
|
7318
|
-
* When registering the callback
|
|
7319
|
-
* only fire if
|
|
7403
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7404
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7405
|
+
* `DiceFloorSubType` provided.
|
|
7320
7406
|
*
|
|
7321
7407
|
* ```ts
|
|
7322
7408
|
* function postDiceRoomActivated(
|
|
@@ -7325,49 +7411,53 @@ export declare enum ModCallbackCustom {
|
|
|
7325
7411
|
* ): void {}
|
|
7326
7412
|
* ```
|
|
7327
7413
|
*/
|
|
7328
|
-
POST_DICE_ROOM_ACTIVATED =
|
|
7414
|
+
POST_DICE_ROOM_ACTIVATED = 9,
|
|
7329
7415
|
/**
|
|
7330
7416
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
7331
7417
|
*
|
|
7332
|
-
* When registering the callback
|
|
7333
|
-
* only fire if it matches the variant
|
|
7418
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7419
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
7420
|
+
* provided.
|
|
7334
7421
|
*
|
|
7335
7422
|
* ```ts
|
|
7336
7423
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
7337
7424
|
* ```
|
|
7338
7425
|
*/
|
|
7339
|
-
POST_DOOR_RENDER =
|
|
7426
|
+
POST_DOOR_RENDER = 10,
|
|
7340
7427
|
/**
|
|
7341
7428
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
7342
7429
|
*
|
|
7343
|
-
* When registering the callback
|
|
7344
|
-
* only fire if it matches the variant
|
|
7430
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7431
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
7432
|
+
* provided.
|
|
7345
7433
|
*
|
|
7346
7434
|
* ```ts
|
|
7347
7435
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
7348
7436
|
* ```
|
|
7349
7437
|
*/
|
|
7350
|
-
POST_DOOR_UPDATE =
|
|
7438
|
+
POST_DOOR_UPDATE = 11,
|
|
7351
7439
|
/**
|
|
7352
7440
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
7353
7441
|
*
|
|
7354
7442
|
* This callback is useful because many attributes cannot be set or retrieved properly in the
|
|
7355
7443
|
* normal `POST_EFFECT_INIT` callback.
|
|
7356
7444
|
*
|
|
7357
|
-
* When registering the callback
|
|
7358
|
-
* only fire if
|
|
7445
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7446
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7447
|
+
* `EffectVariant` provided.
|
|
7359
7448
|
*
|
|
7360
7449
|
* ```ts
|
|
7361
7450
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
7362
7451
|
* ```
|
|
7363
7452
|
*/
|
|
7364
|
-
POST_EFFECT_INIT_LATE =
|
|
7453
|
+
POST_EFFECT_INIT_LATE = 12,
|
|
7365
7454
|
/**
|
|
7366
7455
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
7367
7456
|
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
7368
7457
|
*
|
|
7369
|
-
* When registering the callback
|
|
7370
|
-
* only fire if it matches the
|
|
7458
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7459
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7460
|
+
* `EffectVariant` provided.
|
|
7371
7461
|
*
|
|
7372
7462
|
* ```ts
|
|
7373
7463
|
* function postEffectStateChanged(
|
|
@@ -7377,7 +7467,7 @@ export declare enum ModCallbackCustom {
|
|
|
7377
7467
|
* ): void {}
|
|
7378
7468
|
* ```
|
|
7379
7469
|
*/
|
|
7380
|
-
POST_EFFECT_STATE_CHANGED =
|
|
7470
|
+
POST_EFFECT_STATE_CHANGED = 13,
|
|
7381
7471
|
/**
|
|
7382
7472
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
7383
7473
|
* updated to the new character until a game frame has passed.)
|
|
@@ -7386,28 +7476,30 @@ export declare enum ModCallbackCustom {
|
|
|
7386
7476
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
7387
7477
|
* ```
|
|
7388
7478
|
*/
|
|
7389
|
-
POST_ESAU_JR =
|
|
7479
|
+
POST_ESAU_JR = 14,
|
|
7390
7480
|
/**
|
|
7391
7481
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
7392
7482
|
*
|
|
7393
7483
|
* This callback is useful because many attributes cannot be set or retrieved properly in the
|
|
7394
7484
|
* normal `POST_TEAR_INIT` callback.
|
|
7395
7485
|
*
|
|
7396
|
-
* When registering the callback
|
|
7397
|
-
* only fire if
|
|
7486
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7487
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7488
|
+
* `FamiliarVariant` provided.
|
|
7398
7489
|
*
|
|
7399
7490
|
* ```ts
|
|
7400
7491
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
7401
7492
|
* ```
|
|
7402
7493
|
*/
|
|
7403
|
-
POST_FAMILIAR_INIT_LATE =
|
|
7494
|
+
POST_FAMILIAR_INIT_LATE = 15,
|
|
7404
7495
|
/**
|
|
7405
7496
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
7406
7497
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
7407
7498
|
* field.)
|
|
7408
7499
|
*
|
|
7409
|
-
* When registering the callback
|
|
7410
|
-
* only fire if it matches the
|
|
7500
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7501
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7502
|
+
* `FamiliarVariant` provided.
|
|
7411
7503
|
*
|
|
7412
7504
|
* ```ts
|
|
7413
7505
|
* function postFamiliarStateChanged(
|
|
@@ -7417,7 +7509,7 @@ export declare enum ModCallbackCustom {
|
|
|
7417
7509
|
* ): void {}
|
|
7418
7510
|
* ```
|
|
7419
7511
|
*/
|
|
7420
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
7512
|
+
POST_FAMILIAR_STATE_CHANGED = 16,
|
|
7421
7513
|
/**
|
|
7422
7514
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
7423
7515
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -7429,7 +7521,7 @@ export declare enum ModCallbackCustom {
|
|
|
7429
7521
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
7430
7522
|
* ```
|
|
7431
7523
|
*/
|
|
7432
|
-
POST_FIRST_ESAU_JR =
|
|
7524
|
+
POST_FIRST_ESAU_JR = 17,
|
|
7433
7525
|
/**
|
|
7434
7526
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
7435
7527
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -7442,7 +7534,7 @@ export declare enum ModCallbackCustom {
|
|
|
7442
7534
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
7443
7535
|
* ```
|
|
7444
7536
|
*/
|
|
7445
|
-
POST_FIRST_FLIP =
|
|
7537
|
+
POST_FIRST_FLIP = 18,
|
|
7446
7538
|
/**
|
|
7447
7539
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
7448
7540
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -7455,7 +7547,7 @@ export declare enum ModCallbackCustom {
|
|
|
7455
7547
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
7456
7548
|
* ```
|
|
7457
7549
|
*/
|
|
7458
|
-
POST_FLIP =
|
|
7550
|
+
POST_FLIP = 19,
|
|
7459
7551
|
/**
|
|
7460
7552
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
7461
7553
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -7466,7 +7558,7 @@ export declare enum ModCallbackCustom {
|
|
|
7466
7558
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
7467
7559
|
* ```
|
|
7468
7560
|
*/
|
|
7469
|
-
POST_GAME_STARTED_REORDERED =
|
|
7561
|
+
POST_GAME_STARTED_REORDERED = 20,
|
|
7470
7562
|
/**
|
|
7471
7563
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
7472
7564
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -7477,7 +7569,7 @@ export declare enum ModCallbackCustom {
|
|
|
7477
7569
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
7478
7570
|
* ```
|
|
7479
7571
|
*/
|
|
7480
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
7572
|
+
POST_GAME_STARTED_REORDERED_LAST = 21,
|
|
7481
7573
|
/**
|
|
7482
7574
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
7483
7575
|
*
|
|
@@ -7485,7 +7577,7 @@ export declare enum ModCallbackCustom {
|
|
|
7485
7577
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
7486
7578
|
* ```
|
|
7487
7579
|
*/
|
|
7488
|
-
POST_GREED_MODE_WAVE =
|
|
7580
|
+
POST_GREED_MODE_WAVE = 22,
|
|
7489
7581
|
/**
|
|
7490
7582
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
7491
7583
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -7494,16 +7586,17 @@ export declare enum ModCallbackCustom {
|
|
|
7494
7586
|
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
7495
7587
|
* `POST_GRID_ENTITY_CUSTOM_BROKEN` callback instead.
|
|
7496
7588
|
*
|
|
7497
|
-
*
|
|
7498
|
-
*
|
|
7499
|
-
*
|
|
7500
|
-
*
|
|
7589
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7590
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7591
|
+
* matches the `GridEntityType` provided.
|
|
7592
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
7593
|
+
* matches the variant provided.
|
|
7501
7594
|
*
|
|
7502
7595
|
* ```ts
|
|
7503
7596
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
7504
7597
|
* ```
|
|
7505
7598
|
*/
|
|
7506
|
-
POST_GRID_ENTITY_BROKEN =
|
|
7599
|
+
POST_GRID_ENTITY_BROKEN = 23,
|
|
7507
7600
|
/**
|
|
7508
7601
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
7509
7602
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -7512,14 +7605,15 @@ export declare enum ModCallbackCustom {
|
|
|
7512
7605
|
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
7513
7606
|
* `POST_GRID_ENTITY_CUSTOM_COLLISION` callback instead.
|
|
7514
7607
|
*
|
|
7515
|
-
*
|
|
7516
|
-
*
|
|
7517
|
-
*
|
|
7518
|
-
*
|
|
7519
|
-
*
|
|
7520
|
-
*
|
|
7521
|
-
*
|
|
7522
|
-
*
|
|
7608
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7609
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7610
|
+
* matches the `GridEntityType` provided.
|
|
7611
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
7612
|
+
* matches the variant provided (for the grid entity).
|
|
7613
|
+
* - You can provide an optional fifth argument that will make the callback only fire if the
|
|
7614
|
+
* colliding entity matches the `EntityType` provided.
|
|
7615
|
+
* - You can provide an optional sixth argument that will make the callback only fire if the
|
|
7616
|
+
* colliding entity matches the variant provided.
|
|
7523
7617
|
*
|
|
7524
7618
|
* ```ts
|
|
7525
7619
|
* function postGridEntityCollision(
|
|
@@ -7528,14 +7622,15 @@ export declare enum ModCallbackCustom {
|
|
|
7528
7622
|
* ): void {}
|
|
7529
7623
|
* ```
|
|
7530
7624
|
*/
|
|
7531
|
-
POST_GRID_ENTITY_COLLISION =
|
|
7625
|
+
POST_GRID_ENTITY_COLLISION = 24,
|
|
7532
7626
|
/**
|
|
7533
7627
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
7534
7628
|
* with the `spawnCustomGridEntity` helper function.
|
|
7535
7629
|
*
|
|
7536
|
-
* When registering the callback
|
|
7537
|
-
*
|
|
7538
|
-
* variants, so there is no need for
|
|
7630
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7631
|
+
* an optional third argument that will make the callback only fire if it matches the custom
|
|
7632
|
+
* `GridEntityType` provided. (Custom grid entities do not have variants, so there is no need for
|
|
7633
|
+
* an optional argument to filter by variant.)
|
|
7539
7634
|
*
|
|
7540
7635
|
* ```ts
|
|
7541
7636
|
* function postGridEntityCustomBroken(
|
|
@@ -7544,18 +7639,19 @@ export declare enum ModCallbackCustom {
|
|
|
7544
7639
|
* ): void {}
|
|
7545
7640
|
* ```
|
|
7546
7641
|
*/
|
|
7547
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
7642
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 25,
|
|
7548
7643
|
/**
|
|
7549
7644
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
7550
7645
|
* with the `spawnCustomGridEntity` helper function.
|
|
7551
7646
|
*
|
|
7552
|
-
*
|
|
7553
|
-
*
|
|
7554
|
-
*
|
|
7555
|
-
*
|
|
7556
|
-
*
|
|
7557
|
-
*
|
|
7558
|
-
*
|
|
7647
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7648
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7649
|
+
* matches the custom `GridEntityType` provided. (Custom grid entities do not have variants, so
|
|
7650
|
+
* there is no need for an optional argument to filter by variant.)
|
|
7651
|
+
* - You can provide an optional fourth argument that will make the callback only fire if the
|
|
7652
|
+
* colliding entity matches the `EntityType` provided.
|
|
7653
|
+
* - You can provide an optional fifth argument that will make the callback only fire if the
|
|
7654
|
+
* colliding entity matches the variant provided.
|
|
7559
7655
|
*
|
|
7560
7656
|
* ```ts
|
|
7561
7657
|
* function postGridEntityCustomCollision(
|
|
@@ -7565,14 +7661,15 @@ export declare enum ModCallbackCustom {
|
|
|
7565
7661
|
* ): void {}
|
|
7566
7662
|
* ```
|
|
7567
7663
|
*/
|
|
7568
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
7664
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 26,
|
|
7569
7665
|
/**
|
|
7570
7666
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
7571
7667
|
* the `spawnCustomGridEntity` helper function.
|
|
7572
7668
|
*
|
|
7573
|
-
* When registering the callback
|
|
7574
|
-
*
|
|
7575
|
-
* variants, so there is no need for
|
|
7669
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7670
|
+
* an optional third argument that will make the callback only fire if it matches the custom
|
|
7671
|
+
* `GridEntityType` provided. (Custom grid entities do not have variants, so there is no need for
|
|
7672
|
+
* an optional argument to filter by variant.)
|
|
7576
7673
|
*
|
|
7577
7674
|
* ```ts
|
|
7578
7675
|
* function postGridEntityCustomInit(
|
|
@@ -7581,14 +7678,15 @@ export declare enum ModCallbackCustom {
|
|
|
7581
7678
|
* ): void {}
|
|
7582
7679
|
* ```
|
|
7583
7680
|
*/
|
|
7584
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
7681
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 27,
|
|
7585
7682
|
/**
|
|
7586
7683
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
7587
7684
|
* with the `spawnCustomGridEntity` helper function.
|
|
7588
7685
|
*
|
|
7589
|
-
* When registering the callback
|
|
7590
|
-
*
|
|
7591
|
-
* variants, so there is no need for
|
|
7686
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7687
|
+
* an optional third argument that will make the callback only fire if it matches the custom
|
|
7688
|
+
* `GridEntityType` provided. (Custom grid entities do not have variants, so there is no need for
|
|
7689
|
+
* an optional argument to filter by variant.)
|
|
7592
7690
|
*
|
|
7593
7691
|
* ```ts
|
|
7594
7692
|
* function postGridEntityCustomRemove(
|
|
@@ -7597,14 +7695,15 @@ export declare enum ModCallbackCustom {
|
|
|
7597
7695
|
* ): void {}
|
|
7598
7696
|
* ```
|
|
7599
7697
|
*/
|
|
7600
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
7698
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 28,
|
|
7601
7699
|
/**
|
|
7602
7700
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
7603
7701
|
* with the `spawnCustomGridEntity` helper function.
|
|
7604
7702
|
*
|
|
7605
|
-
* When registering the callback
|
|
7606
|
-
*
|
|
7607
|
-
* variants, so there is no need for
|
|
7703
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7704
|
+
* an optional third argument that will make the callback only fire if it matches the custom
|
|
7705
|
+
* `GridEntityType` provided. (Custom grid entities do not have variants, so there is no need for
|
|
7706
|
+
* an optional argument to filter by variant.)
|
|
7608
7707
|
*
|
|
7609
7708
|
* ```ts
|
|
7610
7709
|
* function postGridEntityCustomRender(
|
|
@@ -7613,14 +7712,15 @@ export declare enum ModCallbackCustom {
|
|
|
7613
7712
|
* ): void {}
|
|
7614
7713
|
* ```
|
|
7615
7714
|
*/
|
|
7616
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
7715
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 29,
|
|
7617
7716
|
/**
|
|
7618
7717
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
7619
7718
|
* created with the `spawnCustomGridEntity` helper function.
|
|
7620
7719
|
*
|
|
7621
|
-
* When registering the callback
|
|
7622
|
-
*
|
|
7623
|
-
* variants, so there is no need for
|
|
7720
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7721
|
+
* an optional third argument that will make the callback only fire if it matches the custom
|
|
7722
|
+
* `GridEntityType` provided. (Custom grid entities do not have variants, so there is no need for
|
|
7723
|
+
* an optional argument to filter by variant.)
|
|
7624
7724
|
*
|
|
7625
7725
|
* ```ts
|
|
7626
7726
|
* function postGridEntityCustomStateChanged(
|
|
@@ -7631,14 +7731,15 @@ export declare enum ModCallbackCustom {
|
|
|
7631
7731
|
* ): void {}
|
|
7632
7732
|
* ```
|
|
7633
7733
|
*/
|
|
7634
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
7734
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 30,
|
|
7635
7735
|
/**
|
|
7636
7736
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
7637
7737
|
* with the `spawnCustomGridEntity` helper function.
|
|
7638
7738
|
*
|
|
7639
|
-
* When registering the callback
|
|
7640
|
-
*
|
|
7641
|
-
* variants, so there is no need for
|
|
7739
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7740
|
+
* an optional third argument that will make the callback only fire if it matches the custom
|
|
7741
|
+
* `GridEntityType` provided. (Custom grid entities do not have variants, so there is no need for
|
|
7742
|
+
* an optional argument to filter by variant.)
|
|
7642
7743
|
*
|
|
7643
7744
|
* ```ts
|
|
7644
7745
|
* function postGridEntityCustomUpdate(
|
|
@@ -7647,7 +7748,7 @@ export declare enum ModCallbackCustom {
|
|
|
7647
7748
|
* ): void {}
|
|
7648
7749
|
* ```
|
|
7649
7750
|
*/
|
|
7650
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
7751
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 31,
|
|
7651
7752
|
/**
|
|
7652
7753
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
7653
7754
|
*
|
|
@@ -7659,16 +7760,17 @@ export declare enum ModCallbackCustom {
|
|
|
7659
7760
|
* For grid entities created with `spawnCustomGridEntity`, use the `POST_GRID_ENTITY_CUSTOM_INIT`
|
|
7660
7761
|
* callback instead.
|
|
7661
7762
|
*
|
|
7662
|
-
*
|
|
7663
|
-
*
|
|
7664
|
-
*
|
|
7665
|
-
*
|
|
7763
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7764
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7765
|
+
* matches the `GridEntityType` provided.
|
|
7766
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
7767
|
+
* matches the variant provided.
|
|
7666
7768
|
*
|
|
7667
7769
|
* ```ts
|
|
7668
7770
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
7669
7771
|
* ```
|
|
7670
7772
|
*/
|
|
7671
|
-
POST_GRID_ENTITY_INIT =
|
|
7773
|
+
POST_GRID_ENTITY_INIT = 32,
|
|
7672
7774
|
/**
|
|
7673
7775
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
7674
7776
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -7680,10 +7782,11 @@ export declare enum ModCallbackCustom {
|
|
|
7680
7782
|
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
7681
7783
|
* `POST_GRID_ENTITY_CUSTOM_REMOVE` callback instead.
|
|
7682
7784
|
*
|
|
7683
|
-
*
|
|
7684
|
-
*
|
|
7685
|
-
*
|
|
7686
|
-
*
|
|
7785
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7786
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7787
|
+
* matches the `GridEntityType` provided.
|
|
7788
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
7789
|
+
* matches the variant provided.
|
|
7687
7790
|
*
|
|
7688
7791
|
* ```ts
|
|
7689
7792
|
* function postGridEntityRemove(
|
|
@@ -7692,23 +7795,24 @@ export declare enum ModCallbackCustom {
|
|
|
7692
7795
|
* ): void {}
|
|
7693
7796
|
* ```
|
|
7694
7797
|
*/
|
|
7695
|
-
POST_GRID_ENTITY_REMOVE =
|
|
7798
|
+
POST_GRID_ENTITY_REMOVE = 33,
|
|
7696
7799
|
/**
|
|
7697
7800
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
7698
7801
|
*
|
|
7699
7802
|
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
7700
7803
|
* `POST_GRID_ENTITY_CUSTOM_RENDER` callback instead.
|
|
7701
7804
|
*
|
|
7702
|
-
*
|
|
7703
|
-
*
|
|
7704
|
-
*
|
|
7705
|
-
*
|
|
7805
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7806
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7807
|
+
* matches the `GridEntityType` provided.
|
|
7808
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
7809
|
+
* matches the variant provided.
|
|
7706
7810
|
*
|
|
7707
7811
|
* ```ts
|
|
7708
7812
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
7709
7813
|
* ```
|
|
7710
7814
|
*/
|
|
7711
|
-
POST_GRID_ENTITY_RENDER =
|
|
7815
|
+
POST_GRID_ENTITY_RENDER = 34,
|
|
7712
7816
|
/**
|
|
7713
7817
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
7714
7818
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -7716,10 +7820,11 @@ export declare enum ModCallbackCustom {
|
|
|
7716
7820
|
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
7717
7821
|
* `POST_GRID_ENTITY_CUSTOM_STATE_CHANGED` callback instead.
|
|
7718
7822
|
*
|
|
7719
|
-
*
|
|
7720
|
-
*
|
|
7721
|
-
*
|
|
7722
|
-
*
|
|
7823
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7824
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7825
|
+
* matches the `GridEntityType` provided.
|
|
7826
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
7827
|
+
* matches the variant provided.
|
|
7723
7828
|
*
|
|
7724
7829
|
* ```ts
|
|
7725
7830
|
* function postGridEntityStateChanged(
|
|
@@ -7729,23 +7834,24 @@ export declare enum ModCallbackCustom {
|
|
|
7729
7834
|
* ): void {}
|
|
7730
7835
|
* ```
|
|
7731
7836
|
*/
|
|
7732
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
7837
|
+
POST_GRID_ENTITY_STATE_CHANGED = 35,
|
|
7733
7838
|
/**
|
|
7734
7839
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
7735
7840
|
*
|
|
7736
7841
|
* For grid entities created with `spawnCustomGridEntity`, use the
|
|
7737
7842
|
* `POST_GRID_ENTITY_CUSTOM_UPDATE` callback instead.
|
|
7738
7843
|
*
|
|
7739
|
-
*
|
|
7740
|
-
*
|
|
7741
|
-
*
|
|
7742
|
-
*
|
|
7844
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7845
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7846
|
+
* matches the `GridEntityType` provided.
|
|
7847
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
7848
|
+
* matches the variant provided.
|
|
7743
7849
|
*
|
|
7744
7850
|
* ```ts
|
|
7745
7851
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
7746
7852
|
* ```
|
|
7747
7853
|
*/
|
|
7748
|
-
POST_GRID_ENTITY_UPDATE =
|
|
7854
|
+
POST_GRID_ENTITY_UPDATE = 36,
|
|
7749
7855
|
/**
|
|
7750
7856
|
* Fires from the `POST_PEFFECT_UPDATE` callback when the player loses a Holy Mantle temporary
|
|
7751
7857
|
* collectible effect.
|
|
@@ -7754,10 +7860,11 @@ export declare enum ModCallbackCustom {
|
|
|
7754
7860
|
* from an enemy. Normally, you would accomplish this via the `ENTITY_TAKE_DMG` callback, but that
|
|
7755
7861
|
* callback never fires if the player has a Holy Mantle shield.
|
|
7756
7862
|
*
|
|
7757
|
-
*
|
|
7758
|
-
*
|
|
7759
|
-
*
|
|
7760
|
-
*
|
|
7863
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7864
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7865
|
+
* matches the `PlayerVariant` provided.
|
|
7866
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
7867
|
+
* matches the `PlayerType` provided.
|
|
7761
7868
|
*
|
|
7762
7869
|
* ```ts
|
|
7763
7870
|
* function postPlayerInitReordered(
|
|
@@ -7767,7 +7874,7 @@ export declare enum ModCallbackCustom {
|
|
|
7767
7874
|
* ): void {}
|
|
7768
7875
|
* ```
|
|
7769
7876
|
*/
|
|
7770
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
7877
|
+
POST_HOLY_MANTLE_REMOVED = 37,
|
|
7771
7878
|
/**
|
|
7772
7879
|
* Fires from `POST_PEFFECT_UPDATE` callback when the player loses charge on their active
|
|
7773
7880
|
* collectible item, implying that the item was just used.
|
|
@@ -7778,8 +7885,9 @@ export declare enum ModCallbackCustom {
|
|
|
7778
7885
|
* Note that this callback will not fire if the active item is both discharged and swapped for
|
|
7779
7886
|
* another item / discharged on the same frame, like in the case of Alabaster Box.
|
|
7780
7887
|
*
|
|
7781
|
-
* When registering the callback
|
|
7782
|
-
* only fire if it matches the
|
|
7888
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7889
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7890
|
+
* `CollectibleType` provided.
|
|
7783
7891
|
*
|
|
7784
7892
|
* ```ts
|
|
7785
7893
|
* function postItemDischarge(
|
|
@@ -7789,7 +7897,7 @@ export declare enum ModCallbackCustom {
|
|
|
7789
7897
|
* ): void {}
|
|
7790
7898
|
* ```
|
|
7791
7899
|
*/
|
|
7792
|
-
POST_ITEM_DISCHARGE =
|
|
7900
|
+
POST_ITEM_DISCHARGE = 38,
|
|
7793
7901
|
/**
|
|
7794
7902
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item is no longer queued (i.e. when the
|
|
7795
7903
|
* animation of the player holding the item above their head is finished and the item is actually
|
|
@@ -7797,10 +7905,11 @@ export declare enum ModCallbackCustom {
|
|
|
7797
7905
|
*
|
|
7798
7906
|
* Note that this callback will only fire once per Forgotten/Soul pair.
|
|
7799
7907
|
*
|
|
7800
|
-
*
|
|
7801
|
-
*
|
|
7802
|
-
*
|
|
7803
|
-
*
|
|
7908
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
7909
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
7910
|
+
* matches the `ItemType` provided.
|
|
7911
|
+
* - You can provide an optional fourth argument that will make the callback only fire if the
|
|
7912
|
+
* sub-type matches the `CollectibleType` or the `TrinketType` provided.
|
|
7804
7913
|
*
|
|
7805
7914
|
* ```ts
|
|
7806
7915
|
* function postItemPickup(
|
|
@@ -7809,35 +7918,37 @@ export declare enum ModCallbackCustom {
|
|
|
7809
7918
|
* ): void {}
|
|
7810
7919
|
* ```
|
|
7811
7920
|
*/
|
|
7812
|
-
POST_ITEM_PICKUP =
|
|
7921
|
+
POST_ITEM_PICKUP = 39,
|
|
7813
7922
|
/**
|
|
7814
7923
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
7815
7924
|
*
|
|
7816
7925
|
* This callback is useful because many attributes cannot be set or retrieved properly in the
|
|
7817
7926
|
* normal `POST_KNIFE_INIT` callback.
|
|
7818
7927
|
*
|
|
7819
|
-
* When registering the callback
|
|
7820
|
-
* only fire if
|
|
7928
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7929
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7930
|
+
* `KnifeVariant` provided.
|
|
7821
7931
|
*
|
|
7822
7932
|
* ```ts
|
|
7823
7933
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
7824
7934
|
* ```
|
|
7825
7935
|
*/
|
|
7826
|
-
POST_KNIFE_INIT_LATE =
|
|
7936
|
+
POST_KNIFE_INIT_LATE = 40,
|
|
7827
7937
|
/**
|
|
7828
7938
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
7829
7939
|
*
|
|
7830
7940
|
* This callback is useful because many attributes cannot be set or retrieved properly in the
|
|
7831
7941
|
* normal `POST_LASER_INIT` callback.
|
|
7832
7942
|
*
|
|
7833
|
-
* When registering the callback
|
|
7834
|
-
* only fire if
|
|
7943
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
7944
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
7945
|
+
* `LaserVariant` provided.
|
|
7835
7946
|
*
|
|
7836
7947
|
* ```ts
|
|
7837
7948
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
7838
7949
|
* ```
|
|
7839
7950
|
*/
|
|
7840
|
-
POST_LASER_INIT_LATE =
|
|
7951
|
+
POST_LASER_INIT_LATE = 41,
|
|
7841
7952
|
/**
|
|
7842
7953
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
7843
7954
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -7854,7 +7965,7 @@ export declare enum ModCallbackCustom {
|
|
|
7854
7965
|
* function postNewLevelReordered(): void {}
|
|
7855
7966
|
* ```
|
|
7856
7967
|
*/
|
|
7857
|
-
POST_NEW_LEVEL_REORDERED =
|
|
7968
|
+
POST_NEW_LEVEL_REORDERED = 42,
|
|
7858
7969
|
/**
|
|
7859
7970
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
7860
7971
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -7865,7 +7976,7 @@ export declare enum ModCallbackCustom {
|
|
|
7865
7976
|
* function postNewRoomEarly(): void {}
|
|
7866
7977
|
* ```
|
|
7867
7978
|
*/
|
|
7868
|
-
POST_NEW_ROOM_EARLY =
|
|
7979
|
+
POST_NEW_ROOM_EARLY = 43,
|
|
7869
7980
|
/**
|
|
7870
7981
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
7871
7982
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -7882,29 +7993,31 @@ export declare enum ModCallbackCustom {
|
|
|
7882
7993
|
* function postNewRoomReordered(): void {}
|
|
7883
7994
|
* ```
|
|
7884
7995
|
*/
|
|
7885
|
-
POST_NEW_ROOM_REORDERED =
|
|
7996
|
+
POST_NEW_ROOM_REORDERED = 44,
|
|
7886
7997
|
/**
|
|
7887
7998
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
7888
7999
|
*
|
|
7889
8000
|
* This callback is useful because many attributes cannot be set or retrieved properly in the
|
|
7890
8001
|
* normal `POST_NPC_INIT` callback.
|
|
7891
8002
|
*
|
|
7892
|
-
* When registering the callback
|
|
7893
|
-
*
|
|
8003
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8004
|
+
* an optional third argument that will make the callback only fire if it matches the `EntityType`
|
|
8005
|
+
* provided.
|
|
7894
8006
|
*
|
|
7895
8007
|
* ```ts
|
|
7896
8008
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
7897
8009
|
* ```
|
|
7898
8010
|
*/
|
|
7899
|
-
POST_NPC_INIT_LATE =
|
|
8011
|
+
POST_NPC_INIT_LATE = 45,
|
|
7900
8012
|
/**
|
|
7901
8013
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
7902
8014
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
7903
8015
|
*
|
|
7904
|
-
*
|
|
7905
|
-
*
|
|
7906
|
-
*
|
|
7907
|
-
*
|
|
8016
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8017
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8018
|
+
* matches the `EntityType` provided.
|
|
8019
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8020
|
+
* matches the variant provided.
|
|
7908
8021
|
*
|
|
7909
8022
|
* ```ts
|
|
7910
8023
|
* function postNPCStateChanged(
|
|
@@ -7914,7 +8027,7 @@ export declare enum ModCallbackCustom {
|
|
|
7914
8027
|
* ): void {}
|
|
7915
8028
|
* ```
|
|
7916
8029
|
*/
|
|
7917
|
-
POST_NPC_STATE_CHANGED =
|
|
8030
|
+
POST_NPC_STATE_CHANGED = 46,
|
|
7918
8031
|
/**
|
|
7919
8032
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
7920
8033
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -7929,29 +8042,31 @@ export declare enum ModCallbackCustom {
|
|
|
7929
8042
|
* callback. For example, since the level is not generated yet, you will not be able to access
|
|
7930
8043
|
* any rooms.
|
|
7931
8044
|
*
|
|
7932
|
-
*
|
|
7933
|
-
*
|
|
7934
|
-
*
|
|
7935
|
-
*
|
|
8045
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8046
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8047
|
+
* matches the `PlayerVariant` provided.
|
|
8048
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8049
|
+
* matches the `PlayerType` provided.
|
|
7936
8050
|
*
|
|
7937
8051
|
* ```ts
|
|
7938
8052
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
7939
8053
|
* ```
|
|
7940
8054
|
*/
|
|
7941
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
8055
|
+
POST_PEFFECT_UPDATE_REORDERED = 47,
|
|
7942
8056
|
/**
|
|
7943
8057
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
7944
8058
|
*
|
|
7945
8059
|
* Use this callback to know when a pickup is added to the player's inventory or health.
|
|
7946
8060
|
*
|
|
7947
|
-
* When registering the callback
|
|
7948
|
-
* only fire if
|
|
8061
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8062
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8063
|
+
* `PickupVariant` provided.
|
|
7949
8064
|
*
|
|
7950
8065
|
* ```ts
|
|
7951
8066
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
7952
8067
|
* ```
|
|
7953
8068
|
*/
|
|
7954
|
-
POST_PICKUP_COLLECT =
|
|
8069
|
+
POST_PICKUP_COLLECT = 48,
|
|
7955
8070
|
/**
|
|
7956
8071
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
7957
8072
|
* respective pickup on the run.
|
|
@@ -7959,34 +8074,37 @@ export declare enum ModCallbackCustom {
|
|
|
7959
8074
|
* This callback is useful because pickups will despawn upon leaving the room and respawn upon
|
|
7960
8075
|
* re-entering the room.
|
|
7961
8076
|
*
|
|
7962
|
-
* When registering the callback
|
|
7963
|
-
* only fire if
|
|
8077
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8078
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8079
|
+
* `PickupVariant` provided.
|
|
7964
8080
|
*
|
|
7965
8081
|
* ```ts
|
|
7966
8082
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
7967
8083
|
* ```
|
|
7968
8084
|
*/
|
|
7969
|
-
POST_PICKUP_INIT_FIRST =
|
|
8085
|
+
POST_PICKUP_INIT_FIRST = 49,
|
|
7970
8086
|
/**
|
|
7971
8087
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
7972
8088
|
*
|
|
7973
8089
|
* This callback is useful because many attributes cannot be set or retrieved properly in the
|
|
7974
8090
|
* normal `POST_PICKUP_INIT` callback.
|
|
7975
8091
|
*
|
|
7976
|
-
* When registering the callback
|
|
7977
|
-
* only fire if
|
|
8092
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8093
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8094
|
+
* `PickupVariant` provided.
|
|
7978
8095
|
*
|
|
7979
8096
|
* ```ts
|
|
7980
8097
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
7981
8098
|
* ```
|
|
7982
8099
|
*/
|
|
7983
|
-
POST_PICKUP_INIT_LATE =
|
|
8100
|
+
POST_PICKUP_INIT_LATE = 50,
|
|
7984
8101
|
/**
|
|
7985
8102
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
7986
8103
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
7987
8104
|
*
|
|
7988
|
-
* When registering the callback
|
|
7989
|
-
* only fire if it matches the
|
|
8105
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8106
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8107
|
+
* `PickupVariant` provided.
|
|
7990
8108
|
*
|
|
7991
8109
|
* ```ts
|
|
7992
8110
|
* function postPickupStateChanged(
|
|
@@ -7996,37 +8114,40 @@ export declare enum ModCallbackCustom {
|
|
|
7996
8114
|
* ): void {}
|
|
7997
8115
|
* ```
|
|
7998
8116
|
*/
|
|
7999
|
-
POST_PICKUP_STATE_CHANGED =
|
|
8117
|
+
POST_PICKUP_STATE_CHANGED = 51,
|
|
8000
8118
|
/**
|
|
8001
8119
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
8002
8120
|
*
|
|
8003
|
-
* When registering the callback
|
|
8004
|
-
* only fire if it matches the variant
|
|
8121
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8122
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8123
|
+
* provided.
|
|
8005
8124
|
*
|
|
8006
8125
|
* ```ts
|
|
8007
8126
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
8008
8127
|
* ```
|
|
8009
8128
|
*/
|
|
8010
|
-
POST_PIT_RENDER =
|
|
8129
|
+
POST_PIT_RENDER = 52,
|
|
8011
8130
|
/**
|
|
8012
8131
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
8013
8132
|
*
|
|
8014
|
-
* When registering the callback
|
|
8015
|
-
* only fire if it matches the variant
|
|
8133
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8134
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8135
|
+
* provided.
|
|
8016
8136
|
*
|
|
8017
8137
|
* ```ts
|
|
8018
8138
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
8019
8139
|
* ```
|
|
8020
8140
|
*/
|
|
8021
|
-
POST_PIT_UPDATE =
|
|
8141
|
+
POST_PIT_UPDATE = 53,
|
|
8022
8142
|
/**
|
|
8023
8143
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's health (i.e. hearts) is different
|
|
8024
8144
|
* than what it was on the previous frame. For more information, see the `PlayerHealth` enum.
|
|
8025
8145
|
*
|
|
8026
|
-
*
|
|
8027
|
-
*
|
|
8028
|
-
*
|
|
8029
|
-
*
|
|
8146
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8147
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8148
|
+
* matches the `PlayerVariant` provided.
|
|
8149
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8150
|
+
* matches the `PlayerType` provided.
|
|
8030
8151
|
*
|
|
8031
8152
|
* ```ts
|
|
8032
8153
|
* function postPlayerChangeHealth(
|
|
@@ -8038,7 +8159,7 @@ export declare enum ModCallbackCustom {
|
|
|
8038
8159
|
* ): void {}
|
|
8039
8160
|
* ```
|
|
8040
8161
|
*/
|
|
8041
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
8162
|
+
POST_PLAYER_CHANGE_HEALTH = 54,
|
|
8042
8163
|
/**
|
|
8043
8164
|
* Fires from the `POST_PEFFECT_UPDATE` callback when one of the player's stats change from what
|
|
8044
8165
|
* they were on the previous frame.
|
|
@@ -8052,10 +8173,11 @@ export declare enum ModCallbackCustom {
|
|
|
8052
8173
|
* numbers. (For these cases, you should examine the `oldValue` and `newValue` arguments
|
|
8053
8174
|
* accordingly.)
|
|
8054
8175
|
*
|
|
8055
|
-
*
|
|
8056
|
-
*
|
|
8057
|
-
*
|
|
8058
|
-
*
|
|
8176
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8177
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8178
|
+
* matches the `PlayerVariant` provided.
|
|
8179
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8180
|
+
* matches the `PlayerType` provided.
|
|
8059
8181
|
*
|
|
8060
8182
|
* ```ts
|
|
8061
8183
|
* function postPlayerChangeStat(
|
|
@@ -8067,7 +8189,7 @@ export declare enum ModCallbackCustom {
|
|
|
8067
8189
|
* ): void {}
|
|
8068
8190
|
* ```
|
|
8069
8191
|
*/
|
|
8070
|
-
POST_PLAYER_CHANGE_STAT =
|
|
8192
|
+
POST_PLAYER_CHANGE_STAT = 55,
|
|
8071
8193
|
/**
|
|
8072
8194
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity changes its player type
|
|
8073
8195
|
* (i.e. character) from what it was on the previous frame. For example, it will fire after using
|
|
@@ -8077,6 +8199,10 @@ export declare enum ModCallbackCustom {
|
|
|
8077
8199
|
* those items cause separate player entities to be created. Use the `POST_FLIP` and
|
|
8078
8200
|
* `POST_ESAU_JR` callbacks to handle those situations.
|
|
8079
8201
|
*
|
|
8202
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8203
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8204
|
+
* `PlayerVariant` provided.
|
|
8205
|
+
*
|
|
8080
8206
|
* ```ts
|
|
8081
8207
|
* function postPlayerChangeType(
|
|
8082
8208
|
* player: EntityPlayer,
|
|
@@ -8085,14 +8211,15 @@ export declare enum ModCallbackCustom {
|
|
|
8085
8211
|
* ): void {}
|
|
8086
8212
|
* ```
|
|
8087
8213
|
*/
|
|
8088
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
8214
|
+
POST_PLAYER_CHANGE_TYPE = 56,
|
|
8089
8215
|
/**
|
|
8090
8216
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is higher than
|
|
8091
8217
|
* what it was on the previous frame, or when the active items change, or when the build is
|
|
8092
8218
|
* rerolled.
|
|
8093
8219
|
*
|
|
8094
|
-
* When registering the callback
|
|
8095
|
-
* only fire if the collectible matches the
|
|
8220
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8221
|
+
* an optional third argument that will make the callback only fire if the collectible matches the
|
|
8222
|
+
* `CollectibleType` provided.
|
|
8096
8223
|
*
|
|
8097
8224
|
* ```ts
|
|
8098
8225
|
* function postPlayerCollectibleAdded(
|
|
@@ -8101,14 +8228,15 @@ export declare enum ModCallbackCustom {
|
|
|
8101
8228
|
* ): void {}
|
|
8102
8229
|
* ```
|
|
8103
8230
|
*/
|
|
8104
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
8231
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 57,
|
|
8105
8232
|
/**
|
|
8106
8233
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is lower than
|
|
8107
8234
|
* what it was on the previous frame, or when the active items change, or when the build is
|
|
8108
8235
|
* rerolled.
|
|
8109
8236
|
*
|
|
8110
|
-
* When registering the callback
|
|
8111
|
-
* only fire if the collectible matches the
|
|
8237
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8238
|
+
* an optional third argument that will make the callback only fire if the collectible matches the
|
|
8239
|
+
* `CollectibleType` provided.
|
|
8112
8240
|
*
|
|
8113
8241
|
* ```ts
|
|
8114
8242
|
* function postPlayerCollectibleRemoved(
|
|
@@ -8117,7 +8245,7 @@ export declare enum ModCallbackCustom {
|
|
|
8117
8245
|
* ): void {}
|
|
8118
8246
|
* ```
|
|
8119
8247
|
*/
|
|
8120
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
8248
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 58,
|
|
8121
8249
|
/**
|
|
8122
8250
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
8123
8251
|
* prevent the fatal damage.
|
|
@@ -8125,16 +8253,17 @@ export declare enum ModCallbackCustom {
|
|
|
8125
8253
|
* Note that this function does properly take into account Guppy's Collar, Broken Ankh, Spirit
|
|
8126
8254
|
* Shackles, and Mysterious Paper. It also takes into account using The Bible on Satan.
|
|
8127
8255
|
*
|
|
8128
|
-
*
|
|
8129
|
-
*
|
|
8130
|
-
*
|
|
8131
|
-
*
|
|
8256
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8257
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8258
|
+
* matches the `PlayerVariant` provided.
|
|
8259
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8260
|
+
* matches the `PlayerType` provided.
|
|
8132
8261
|
*
|
|
8133
8262
|
* ```ts
|
|
8134
8263
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
8135
8264
|
* ```
|
|
8136
8265
|
*/
|
|
8137
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
8266
|
+
POST_PLAYER_FATAL_DAMAGE = 59,
|
|
8138
8267
|
/**
|
|
8139
8268
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
8140
8269
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -8146,16 +8275,17 @@ export declare enum ModCallbackCustom {
|
|
|
8146
8275
|
* character their starting items for the run. (You do not want to use the vanilla
|
|
8147
8276
|
* `POST_PLAYER_INIT` callback for this because it fires when a run is continued.)
|
|
8148
8277
|
*
|
|
8149
|
-
*
|
|
8150
|
-
*
|
|
8151
|
-
*
|
|
8152
|
-
*
|
|
8278
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8279
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8280
|
+
* matches the `PlayerVariant` provided.
|
|
8281
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8282
|
+
* matches the `PlayerType` provided.
|
|
8153
8283
|
*
|
|
8154
8284
|
* ```ts
|
|
8155
8285
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
8156
8286
|
* ```
|
|
8157
8287
|
*/
|
|
8158
|
-
POST_PLAYER_INIT_FIRST =
|
|
8288
|
+
POST_PLAYER_INIT_FIRST = 60,
|
|
8159
8289
|
/**
|
|
8160
8290
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
8161
8291
|
*
|
|
@@ -8165,16 +8295,17 @@ export declare enum ModCallbackCustom {
|
|
|
8165
8295
|
* For initializing a player with custom items and so forth, use the `POST_PLAYER_INIT_FIRST`
|
|
8166
8296
|
* callback instead to handle the case of a Genesis room.
|
|
8167
8297
|
*
|
|
8168
|
-
*
|
|
8169
|
-
*
|
|
8170
|
-
*
|
|
8171
|
-
*
|
|
8298
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8299
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8300
|
+
* matches the `PlayerVariant` provided.
|
|
8301
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8302
|
+
* matches the `PlayerType` provided.
|
|
8172
8303
|
*
|
|
8173
8304
|
* ```ts
|
|
8174
8305
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
8175
8306
|
* ```
|
|
8176
8307
|
*/
|
|
8177
|
-
POST_PLAYER_INIT_LATE =
|
|
8308
|
+
POST_PLAYER_INIT_LATE = 61,
|
|
8178
8309
|
/**
|
|
8179
8310
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
8180
8311
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -8188,16 +8319,17 @@ export declare enum ModCallbackCustom {
|
|
|
8188
8319
|
* callback. For example, since the level is not generated yet, you will not be able to access
|
|
8189
8320
|
* any rooms.
|
|
8190
8321
|
*
|
|
8191
|
-
*
|
|
8192
|
-
*
|
|
8193
|
-
*
|
|
8194
|
-
*
|
|
8322
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8323
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8324
|
+
* matches the `PlayerVariant` provided.
|
|
8325
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8326
|
+
* matches the `PlayerType` provided.
|
|
8195
8327
|
*
|
|
8196
8328
|
* ```ts
|
|
8197
8329
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
8198
8330
|
* ```
|
|
8199
8331
|
*/
|
|
8200
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
8332
|
+
POST_PLAYER_RENDER_REORDERED = 62,
|
|
8201
8333
|
/**
|
|
8202
8334
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
8203
8335
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -8212,147 +8344,159 @@ export declare enum ModCallbackCustom {
|
|
|
8212
8344
|
* callback. For example, since the level is not generated yet, you will not be able to access
|
|
8213
8345
|
* any rooms.
|
|
8214
8346
|
*
|
|
8215
|
-
*
|
|
8216
|
-
*
|
|
8217
|
-
*
|
|
8218
|
-
*
|
|
8347
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8348
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8349
|
+
* matches the `PlayerVariant` provided.
|
|
8350
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8351
|
+
* matches the `PlayerType` provided.
|
|
8219
8352
|
*
|
|
8220
8353
|
* ```ts
|
|
8221
8354
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
8222
8355
|
* ```
|
|
8223
8356
|
*/
|
|
8224
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
8357
|
+
POST_PLAYER_UPDATE_REORDERED = 63,
|
|
8225
8358
|
/**
|
|
8226
8359
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
8227
8360
|
*
|
|
8228
|
-
* When registering the callback
|
|
8229
|
-
* only fire if it matches the variant
|
|
8361
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8362
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8363
|
+
* provided.
|
|
8230
8364
|
*
|
|
8231
8365
|
* ```ts
|
|
8232
8366
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
8233
8367
|
* ```
|
|
8234
8368
|
*/
|
|
8235
|
-
POST_POOP_RENDER =
|
|
8369
|
+
POST_POOP_RENDER = 64,
|
|
8236
8370
|
/**
|
|
8237
8371
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
8238
8372
|
*
|
|
8239
|
-
* When registering the callback
|
|
8240
|
-
* only fire if it matches the variant
|
|
8373
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8374
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8375
|
+
* provided.
|
|
8241
8376
|
*
|
|
8242
8377
|
* ```ts
|
|
8243
8378
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
8244
8379
|
* ```
|
|
8245
8380
|
*/
|
|
8246
|
-
POST_POOP_UPDATE =
|
|
8381
|
+
POST_POOP_UPDATE = 65,
|
|
8247
8382
|
/**
|
|
8248
8383
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
8249
8384
|
*
|
|
8250
|
-
* When registering the callback
|
|
8251
|
-
* only fire if it matches the variant
|
|
8385
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8386
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8387
|
+
* provided.
|
|
8252
8388
|
*
|
|
8253
8389
|
* ```ts
|
|
8254
8390
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
8255
8391
|
* ```
|
|
8256
8392
|
*/
|
|
8257
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
8393
|
+
POST_PRESSURE_PLATE_RENDER = 66,
|
|
8258
8394
|
/**
|
|
8259
8395
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
8260
8396
|
*
|
|
8261
|
-
* When registering the callback
|
|
8262
|
-
* only fire if it matches the variant
|
|
8397
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8398
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8399
|
+
* provided.
|
|
8263
8400
|
*
|
|
8264
8401
|
* ```ts
|
|
8265
8402
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
8266
8403
|
* ```
|
|
8267
8404
|
*/
|
|
8268
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
8405
|
+
POST_PRESSURE_PLATE_UPDATE = 67,
|
|
8269
8406
|
/**
|
|
8270
8407
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
8271
8408
|
*
|
|
8272
8409
|
* This callback is useful because many attributes cannot be set or retrieved properly in the
|
|
8273
8410
|
* normal `POST_PROJECTILE_INIT` callback.
|
|
8274
8411
|
*
|
|
8275
|
-
* When registering the callback
|
|
8276
|
-
*
|
|
8412
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8413
|
+
* an optional third argument that will make the callback only fire if matches the
|
|
8414
|
+
* `ProjectileVariant` provided.
|
|
8277
8415
|
*
|
|
8278
8416
|
* ```ts
|
|
8279
8417
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
8280
8418
|
* ```
|
|
8281
8419
|
*/
|
|
8282
|
-
POST_PROJECTILE_INIT_LATE =
|
|
8420
|
+
POST_PROJECTILE_INIT_LATE = 68,
|
|
8283
8421
|
/**
|
|
8284
8422
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player first picks up a new item. The
|
|
8285
8423
|
* pickup returned in the callback is assumed to be the first pickup that no longer exists.
|
|
8286
8424
|
*
|
|
8287
|
-
*
|
|
8288
|
-
*
|
|
8289
|
-
*
|
|
8290
|
-
*
|
|
8425
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8426
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8427
|
+
* matches the `PickupVariant` provided.
|
|
8428
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8429
|
+
* matches the sub-type provided.
|
|
8291
8430
|
*
|
|
8292
8431
|
* ```ts
|
|
8293
8432
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
8294
8433
|
* ```
|
|
8295
8434
|
*/
|
|
8296
|
-
POST_PURCHASE =
|
|
8435
|
+
POST_PURCHASE = 69,
|
|
8297
8436
|
/**
|
|
8298
8437
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
8299
8438
|
*
|
|
8300
|
-
* When registering the callback
|
|
8301
|
-
* only fire if it matches the variant
|
|
8439
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8440
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8441
|
+
* provided.
|
|
8302
8442
|
*
|
|
8303
8443
|
* ```ts
|
|
8304
8444
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
8305
8445
|
* ```
|
|
8306
8446
|
*/
|
|
8307
|
-
POST_ROCK_RENDER =
|
|
8447
|
+
POST_ROCK_RENDER = 70,
|
|
8308
8448
|
/**
|
|
8309
8449
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
8310
8450
|
*
|
|
8311
|
-
* When registering the callback
|
|
8312
|
-
* only fire if it matches the variant
|
|
8451
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8452
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8453
|
+
* provided.
|
|
8313
8454
|
*
|
|
8314
8455
|
* ```ts
|
|
8315
8456
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
8316
8457
|
* ```
|
|
8317
8458
|
*/
|
|
8318
|
-
POST_ROCK_UPDATE =
|
|
8459
|
+
POST_ROCK_UPDATE = 71,
|
|
8319
8460
|
/**
|
|
8320
8461
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
8321
8462
|
* the `Room.IsClear` method).
|
|
8322
8463
|
*
|
|
8323
|
-
* When registering the callback
|
|
8324
|
-
* only fire if the room clear state
|
|
8464
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8465
|
+
* an optional third argument that will make the callback only fire if the room clear state
|
|
8466
|
+
* matches the boolean provided.
|
|
8325
8467
|
*
|
|
8326
8468
|
* ```ts
|
|
8327
8469
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
8328
8470
|
* ```
|
|
8329
8471
|
*/
|
|
8330
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
8472
|
+
POST_ROOM_CLEAR_CHANGED = 72,
|
|
8331
8473
|
/**
|
|
8332
8474
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
8333
8475
|
* Room.
|
|
8334
8476
|
*
|
|
8335
|
-
*
|
|
8336
|
-
*
|
|
8337
|
-
*
|
|
8338
|
-
*
|
|
8477
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8478
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8479
|
+
* matches the `PlayerVariant` provided.
|
|
8480
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8481
|
+
* matches the `PlayerType` provided.
|
|
8339
8482
|
*
|
|
8340
8483
|
* ```ts
|
|
8341
8484
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
8342
8485
|
* ```
|
|
8343
8486
|
*/
|
|
8344
|
-
POST_SACRIFICE =
|
|
8487
|
+
POST_SACRIFICE = 73,
|
|
8345
8488
|
/**
|
|
8346
8489
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
8347
8490
|
*
|
|
8348
|
-
* When registering the callback
|
|
8349
|
-
* only fire if it matches the
|
|
8491
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8492
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8493
|
+
* `SlotVariant` provided.
|
|
8350
8494
|
*
|
|
8351
8495
|
* ```ts
|
|
8352
8496
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
8353
8497
|
* ```
|
|
8354
8498
|
*/
|
|
8355
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
8499
|
+
POST_SLOT_ANIMATION_CHANGED = 74,
|
|
8356
8500
|
/**
|
|
8357
8501
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
8358
8502
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -8361,9 +8505,10 @@ export declare enum ModCallbackCustom {
|
|
|
8361
8505
|
* colliding with it on every frame. Thus, you should only perform actions in this callback under
|
|
8362
8506
|
* certain conditions, like if the slot entity is playing the "Idle" animation, and so on.
|
|
8363
8507
|
*
|
|
8364
|
-
* When registering the callback
|
|
8365
|
-
*
|
|
8366
|
-
*
|
|
8508
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8509
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8510
|
+
* `SlotVariant` provided. (Only players will cause this callback to fire, so there is no need for
|
|
8511
|
+
* an optional argument to filter by `EntityType`.)
|
|
8367
8512
|
*
|
|
8368
8513
|
* ```ts
|
|
8369
8514
|
* function postSlotCollision(
|
|
@@ -8372,21 +8517,22 @@ export declare enum ModCallbackCustom {
|
|
|
8372
8517
|
* ): void {}
|
|
8373
8518
|
* ```
|
|
8374
8519
|
*/
|
|
8375
|
-
POST_SLOT_COLLISION =
|
|
8520
|
+
POST_SLOT_COLLISION = 75,
|
|
8376
8521
|
/**
|
|
8377
8522
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
8378
8523
|
* has broken.
|
|
8379
8524
|
*
|
|
8380
|
-
*
|
|
8381
|
-
*
|
|
8382
|
-
*
|
|
8383
|
-
*
|
|
8525
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8526
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8527
|
+
* matches the `SlotVariant` provided.
|
|
8528
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8529
|
+
* matches the `SlotDestructionType` provided.
|
|
8384
8530
|
*
|
|
8385
8531
|
* ```ts
|
|
8386
8532
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
8387
8533
|
* ```
|
|
8388
8534
|
*/
|
|
8389
|
-
POST_SLOT_DESTROYED =
|
|
8535
|
+
POST_SLOT_DESTROYED = 76,
|
|
8390
8536
|
/**
|
|
8391
8537
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
8392
8538
|
*
|
|
@@ -8395,58 +8541,63 @@ export declare enum ModCallbackCustom {
|
|
|
8395
8541
|
* - in the `POST_UPDATE` callback (if the entity appeared mid-way through the room, like when a
|
|
8396
8542
|
* Wheel of Fortune card is used)
|
|
8397
8543
|
*
|
|
8398
|
-
* When registering the callback
|
|
8399
|
-
* only fire if it matches the
|
|
8544
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8545
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8546
|
+
* `SlotVariant` provided.
|
|
8400
8547
|
*
|
|
8401
8548
|
* ```ts
|
|
8402
8549
|
* function postSlotInit(slot: Entity): void {}
|
|
8403
8550
|
* ```
|
|
8404
8551
|
*/
|
|
8405
|
-
POST_SLOT_INIT =
|
|
8552
|
+
POST_SLOT_INIT = 77,
|
|
8406
8553
|
/**
|
|
8407
8554
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
8408
8555
|
*
|
|
8409
|
-
* When registering the callback
|
|
8410
|
-
* only fire if it matches the
|
|
8556
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8557
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8558
|
+
* `SlotVariant` provided.
|
|
8411
8559
|
*
|
|
8412
8560
|
* ```ts
|
|
8413
8561
|
* function postSlotRender(slot: Entity): void {}
|
|
8414
8562
|
* ```
|
|
8415
8563
|
*/
|
|
8416
|
-
POST_SLOT_RENDER =
|
|
8564
|
+
POST_SLOT_RENDER = 78,
|
|
8417
8565
|
/**
|
|
8418
8566
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
8419
8567
|
*
|
|
8420
|
-
* When registering the callback
|
|
8421
|
-
* only fire if it matches the
|
|
8568
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8569
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8570
|
+
* `SlotVariant` provided.
|
|
8422
8571
|
*
|
|
8423
8572
|
* ```ts
|
|
8424
8573
|
* function postSlotUpdate(slot: Entity): void {}
|
|
8425
8574
|
* ```
|
|
8426
8575
|
*/
|
|
8427
|
-
POST_SLOT_UPDATE =
|
|
8576
|
+
POST_SLOT_UPDATE = 79,
|
|
8428
8577
|
/**
|
|
8429
8578
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
8430
8579
|
*
|
|
8431
|
-
* When registering the callback
|
|
8432
|
-
* only fire if it matches the variant
|
|
8580
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8581
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8582
|
+
* provided.
|
|
8433
8583
|
*
|
|
8434
8584
|
* ```ts
|
|
8435
8585
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
8436
8586
|
* ```
|
|
8437
8587
|
*/
|
|
8438
|
-
POST_SPIKES_RENDER =
|
|
8588
|
+
POST_SPIKES_RENDER = 80,
|
|
8439
8589
|
/**
|
|
8440
8590
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
8441
8591
|
*
|
|
8442
|
-
* When registering the callback
|
|
8443
|
-
* only fire if it matches the variant
|
|
8592
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8593
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8594
|
+
* provided.
|
|
8444
8595
|
*
|
|
8445
8596
|
* ```ts
|
|
8446
8597
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
8447
8598
|
* ```
|
|
8448
8599
|
*/
|
|
8449
|
-
POST_SPIKES_UPDATE =
|
|
8600
|
+
POST_SPIKES_UPDATE = 81,
|
|
8450
8601
|
/**
|
|
8451
8602
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
8452
8603
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -8454,58 +8605,63 @@ export declare enum ModCallbackCustom {
|
|
|
8454
8605
|
* This callback is useful because many attributes cannot be set or retrieved properly in the
|
|
8455
8606
|
* normal `POST_TEAR_INIT` callback.
|
|
8456
8607
|
*
|
|
8457
|
-
* When registering the callback
|
|
8458
|
-
* only fire if
|
|
8608
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8609
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8610
|
+
* `TearVariant` provided.
|
|
8459
8611
|
*
|
|
8460
8612
|
* ```ts
|
|
8461
8613
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
8462
8614
|
* ```
|
|
8463
8615
|
*/
|
|
8464
|
-
POST_TEAR_INIT_LATE =
|
|
8616
|
+
POST_TEAR_INIT_LATE = 82,
|
|
8465
8617
|
/**
|
|
8466
8618
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
8467
8619
|
* `EntityTear.FrameCount` is equal to 1).
|
|
8468
8620
|
*
|
|
8469
8621
|
* This callback is useful because Incubus tears are not distinguishable until the second frame.
|
|
8470
8622
|
*
|
|
8471
|
-
* When registering the callback
|
|
8472
|
-
* only fire if
|
|
8623
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8624
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8625
|
+
* `TearVariant` provided.
|
|
8473
8626
|
*
|
|
8474
8627
|
* ```ts
|
|
8475
8628
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
8476
8629
|
* ```
|
|
8477
8630
|
*/
|
|
8478
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
8631
|
+
POST_TEAR_INIT_VERY_LATE = 83,
|
|
8479
8632
|
/**
|
|
8480
8633
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
8481
8634
|
*
|
|
8482
|
-
* When registering the callback
|
|
8483
|
-
* only fire if it matches the variant
|
|
8635
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8636
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8637
|
+
* provided.
|
|
8484
8638
|
*
|
|
8485
8639
|
* ```ts
|
|
8486
8640
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
8487
8641
|
* ```
|
|
8488
8642
|
*/
|
|
8489
|
-
POST_TNT_RENDER =
|
|
8643
|
+
POST_TNT_RENDER = 84,
|
|
8490
8644
|
/**
|
|
8491
8645
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
8492
8646
|
*
|
|
8493
|
-
* When registering the callback
|
|
8494
|
-
* only fire if it matches the variant
|
|
8647
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8648
|
+
* an optional third argument that will make the callback only fire if it matches the variant
|
|
8649
|
+
* provided.
|
|
8495
8650
|
*
|
|
8496
8651
|
* ```ts
|
|
8497
8652
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
8498
8653
|
* ```
|
|
8499
8654
|
*/
|
|
8500
|
-
POST_TNT_UPDATE =
|
|
8655
|
+
POST_TNT_UPDATE = 85,
|
|
8501
8656
|
/**
|
|
8502
8657
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player gains or loses a new
|
|
8503
8658
|
* transformation.
|
|
8504
8659
|
*
|
|
8505
8660
|
* Note that this callback will only fire once per Forgotten/Soul pair.
|
|
8506
8661
|
*
|
|
8507
|
-
* When registering the callback
|
|
8508
|
-
* only fire if it matches the `PlayerForm`
|
|
8662
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8663
|
+
* an optional third argument that will make the callback only fire if it matches the `PlayerForm`
|
|
8664
|
+
* provided.
|
|
8509
8665
|
*
|
|
8510
8666
|
* ```ts
|
|
8511
8667
|
* function postTransformation(
|
|
@@ -8515,12 +8671,13 @@ export declare enum ModCallbackCustom {
|
|
|
8515
8671
|
* ): void {}
|
|
8516
8672
|
* ```
|
|
8517
8673
|
*/
|
|
8518
|
-
POST_TRANSFORMATION =
|
|
8674
|
+
POST_TRANSFORMATION = 86,
|
|
8519
8675
|
/**
|
|
8520
8676
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
8521
8677
|
*
|
|
8522
|
-
* When registering the callback
|
|
8523
|
-
* only fire if it matches the
|
|
8678
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method, you can provide
|
|
8679
|
+
* an optional third argument that will make the callback only fire if it matches the
|
|
8680
|
+
* `TrinketType` provided.
|
|
8524
8681
|
*
|
|
8525
8682
|
* ```ts
|
|
8526
8683
|
* function postTrinketBreak(
|
|
@@ -8529,22 +8686,23 @@ export declare enum ModCallbackCustom {
|
|
|
8529
8686
|
* ): void {}
|
|
8530
8687
|
* ```
|
|
8531
8688
|
*/
|
|
8532
|
-
POST_TRINKET_BREAK =
|
|
8689
|
+
POST_TRINKET_BREAK = 87,
|
|
8533
8690
|
/**
|
|
8534
8691
|
* Fires from the `POST_PEFFECT_UPDATE` callback on the frame before a Berserk effect ends when
|
|
8535
8692
|
* the player is predicted to die (e.g. they currently have no health left or they took damage in
|
|
8536
8693
|
* a "Lost" form).
|
|
8537
8694
|
*
|
|
8538
|
-
*
|
|
8539
|
-
*
|
|
8540
|
-
*
|
|
8541
|
-
*
|
|
8695
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8696
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8697
|
+
* matches the `PlayerVariant` provided.
|
|
8698
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8699
|
+
* matches the `PlayerType` provided.
|
|
8542
8700
|
*
|
|
8543
8701
|
* ```ts
|
|
8544
8702
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
8545
8703
|
* ```
|
|
8546
8704
|
*/
|
|
8547
|
-
PRE_BERSERK_DEATH =
|
|
8705
|
+
PRE_BERSERK_DEATH = 88,
|
|
8548
8706
|
/**
|
|
8549
8707
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
8550
8708
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -8553,16 +8711,17 @@ export declare enum ModCallbackCustom {
|
|
|
8553
8711
|
* This callback is useful because reviving the player after the game things that player should
|
|
8554
8712
|
* have died will result in the save data for the run getting deleted.
|
|
8555
8713
|
*
|
|
8556
|
-
*
|
|
8557
|
-
*
|
|
8558
|
-
*
|
|
8559
|
-
*
|
|
8714
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8715
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8716
|
+
* matches the `PlayerVariant` provided.
|
|
8717
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8718
|
+
* matches the `PlayerType` provided.
|
|
8560
8719
|
*
|
|
8561
8720
|
* ```ts
|
|
8562
8721
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
8563
8722
|
* ```
|
|
8564
8723
|
*/
|
|
8565
|
-
PRE_CUSTOM_REVIVE =
|
|
8724
|
+
PRE_CUSTOM_REVIVE = 89,
|
|
8566
8725
|
/**
|
|
8567
8726
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
8568
8727
|
* meets all of the conditions to pick it up.
|
|
@@ -8572,26 +8731,28 @@ export declare enum ModCallbackCustom {
|
|
|
8572
8731
|
* note that this callback will continue to fire for every frame that the player touches the
|
|
8573
8732
|
* pedestal, so you would need to continue returning false.)
|
|
8574
8733
|
*
|
|
8575
|
-
*
|
|
8576
|
-
*
|
|
8577
|
-
*
|
|
8578
|
-
*
|
|
8734
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8735
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8736
|
+
* matches the `PlayerVariant` provided.
|
|
8737
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8738
|
+
* matches the `PlayerType` provided.
|
|
8579
8739
|
*
|
|
8580
8740
|
* ```ts
|
|
8581
8741
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
8582
8742
|
* ```
|
|
8583
8743
|
*/
|
|
8584
|
-
PRE_GET_PEDESTAL =
|
|
8744
|
+
PRE_GET_PEDESTAL = 90,
|
|
8585
8745
|
/**
|
|
8586
8746
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item becomes queued (i.e. when the player
|
|
8587
8747
|
* begins to hold the item above their head).
|
|
8588
8748
|
*
|
|
8589
8749
|
* Note that this callback will only fire once per Forgotten/Soul pair.
|
|
8590
8750
|
*
|
|
8591
|
-
*
|
|
8592
|
-
*
|
|
8593
|
-
*
|
|
8594
|
-
*
|
|
8751
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
8752
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
8753
|
+
* matches the `ItemType` provided.
|
|
8754
|
+
* - You can provide an optional fourth argument that will make the callback only fire if the
|
|
8755
|
+
* sub-type matches the `CollectibleType` or the `TrinketType` provided.
|
|
8595
8756
|
*
|
|
8596
8757
|
* ```ts
|
|
8597
8758
|
* function preItemPickup(
|
|
@@ -8600,7 +8761,7 @@ export declare enum ModCallbackCustom {
|
|
|
8600
8761
|
* ): void {}
|
|
8601
8762
|
* ```
|
|
8602
8763
|
*/
|
|
8603
|
-
PRE_ITEM_PICKUP =
|
|
8764
|
+
PRE_ITEM_PICKUP = 91,
|
|
8604
8765
|
/**
|
|
8605
8766
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
8606
8767
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -8614,39 +8775,62 @@ export declare enum ModCallbackCustom {
|
|
|
8614
8775
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
8615
8776
|
* ```
|
|
8616
8777
|
*/
|
|
8617
|
-
PRE_NEW_LEVEL =
|
|
8778
|
+
PRE_NEW_LEVEL = 92
|
|
8779
|
+
}
|
|
8780
|
+
|
|
8781
|
+
/** TODO */
|
|
8782
|
+
export declare enum ModCallbackCustom2 {
|
|
8783
|
+
POST_AMBUSH_FINISHED = 0,
|
|
8784
|
+
POST_AMBUSH_STARTED = 1,
|
|
8785
|
+
POST_BOMB_EXPLODED = 2,
|
|
8786
|
+
POST_BOMB_INIT_LATE = 3,
|
|
8787
|
+
POST_BONE_SWING = 4,
|
|
8788
|
+
POST_COLLECTIBLE_EMPTY = 5,
|
|
8789
|
+
POST_COLLECTIBLE_INIT_FIRST = 6,
|
|
8790
|
+
POST_CURSED_TELEPORT = 7,
|
|
8791
|
+
POST_KNIFE_INIT_LATE = 8,
|
|
8792
|
+
POST_NEW_ROOM_EARLY = 9,
|
|
8793
|
+
POST_PIT_RENDER = 10,
|
|
8794
|
+
POST_ROOM_CLEAR_CHANGED = 11,
|
|
8795
|
+
POST_SPIKES_RENDER = 12
|
|
8618
8796
|
}
|
|
8619
8797
|
|
|
8620
8798
|
/**
|
|
8621
8799
|
* `isaacscript-common` has many custom callbacks that you can use in your mods. Instead of
|
|
8622
8800
|
* hijacking the vanilla `Mod` object, we provide a `ModUpgraded` object for you to use, which
|
|
8623
|
-
* extends the base class and adds a new method of `AddCallbackCustom`.
|
|
8624
|
-
* `RemoveCallbackCustom`.)
|
|
8801
|
+
* extends the base class and adds a new method of `AddCallbackCustom`.
|
|
8625
8802
|
*
|
|
8626
8803
|
* To upgrade your mod, use the `upgradeMod` helper function.
|
|
8627
8804
|
*/
|
|
8628
8805
|
export declare class ModUpgraded implements Mod {
|
|
8629
8806
|
/**
|
|
8630
8807
|
* The vanilla mod object stores the name of the mod for some reason. (It is never used or
|
|
8631
|
-
* referenced.
|
|
8808
|
+
* referenced. (We match the casing of the vanilla variable.)
|
|
8632
8809
|
*/
|
|
8633
8810
|
Name: string;
|
|
8634
8811
|
/** We store a copy of the original mod object so that we can re-implement its functions. */
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8812
|
+
private mod;
|
|
8813
|
+
private debug;
|
|
8814
|
+
private timeThreshold;
|
|
8815
|
+
private callbacks;
|
|
8638
8816
|
constructor(mod: Mod, debug: boolean, timeThreshold?: float);
|
|
8639
|
-
AddCallback<T extends ModCallback>(modCallback: T, ...args:
|
|
8817
|
+
AddCallback<T extends ModCallback>(modCallback: T, ...args: AddCallbackParameters[T]): void;
|
|
8640
8818
|
HasData(): boolean;
|
|
8641
8819
|
LoadData(): string;
|
|
8642
8820
|
/**
|
|
8643
8821
|
* This method does not care about the tertiary argument. Regardless of the conditions of how you
|
|
8644
8822
|
* registered the callback, it will be removed.
|
|
8645
8823
|
*/
|
|
8646
|
-
RemoveCallback<T extends ModCallback>(modCallback: T, callback:
|
|
8824
|
+
RemoveCallback<T extends ModCallback>(modCallback: T, callback: AddCallbackParameters[T][0]): void;
|
|
8647
8825
|
RemoveData(): void;
|
|
8648
8826
|
SaveData(data: string): void;
|
|
8649
|
-
AddCallbackCustom<T extends ModCallbackCustom>(modCallbackCustom: T, ...args:
|
|
8827
|
+
AddCallbackCustom<T extends ModCallbackCustom>(modCallbackCustom: T, ...args: AddCallbackParametersCustom[T]): void;
|
|
8828
|
+
AddCallbackCustom2<T extends ModCallbackCustom2>(modCallbackCustom: T, ...args: AddCallbackParametersCustom2[T]): void;
|
|
8829
|
+
/**
|
|
8830
|
+
* This method does not care about the tertiary argument. Regardless of the conditions of how you
|
|
8831
|
+
* registered the callback, it will be removed.
|
|
8832
|
+
*/
|
|
8833
|
+
RemoveCallbackCustom<T extends ModCallbackCustom>(modCallback: T, callback: AddCallbackParametersCustom[T][0]): void;
|
|
8650
8834
|
}
|
|
8651
8835
|
|
|
8652
8836
|
/**
|
|
@@ -9014,22 +9198,19 @@ callback: (boneClub: EntityKnife) => void
|
|
|
9014
9198
|
];
|
|
9015
9199
|
|
|
9016
9200
|
declare type PostCollectibleEmptyRegisterParameters = [
|
|
9017
|
-
callback: (collectible:
|
|
9201
|
+
callback: (collectible: EntityPickupCollectible, oldCollectibleType: CollectibleType) => void,
|
|
9018
9202
|
collectibleType?: CollectibleType
|
|
9019
9203
|
];
|
|
9020
9204
|
|
|
9021
9205
|
declare type PostCollectibleInitFirstRegisterParameters = [
|
|
9022
|
-
callback: (collectible:
|
|
9206
|
+
callback: (collectible: EntityPickupCollectible) => void,
|
|
9023
9207
|
collectibleType?: CollectibleType
|
|
9024
9208
|
];
|
|
9025
9209
|
|
|
9026
9210
|
declare type PostCursedTeleportRegisterParameters = [
|
|
9027
|
-
callback: (player: EntityPlayer) => void
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
declare type PostCustomDoorEnterRegisterParameters = [
|
|
9031
|
-
callback: (player: EntityPlayer, effectVariant: int, doorSlot: DoorSlot, direction: Direction) => void,
|
|
9032
|
-
effectVariant?: int
|
|
9211
|
+
callback: (player: EntityPlayer) => void,
|
|
9212
|
+
playerVariant?: PlayerVariant,
|
|
9213
|
+
character?: PlayerType
|
|
9033
9214
|
];
|
|
9034
9215
|
|
|
9035
9216
|
declare type PostCustomReviveRegisterParameters = [
|
|
@@ -10888,6 +11069,8 @@ export declare function setDeletePlayer(set: Set<PlayerIndex>, player: EntityPla
|
|
|
10888
11069
|
* This function automatically calls the `Level.UpdateVisibility` after setting the flags so that
|
|
10889
11070
|
* the changes will be immediately visible.
|
|
10890
11071
|
*
|
|
11072
|
+
* This function automatically accounts for whether or not MinimapAPI is being used.
|
|
11073
|
+
*
|
|
10891
11074
|
* @param displayFlagsMap A map of the display flags that is indexed by the room's safe grid index.
|
|
10892
11075
|
*/
|
|
10893
11076
|
export declare function setDisplayFlags(displayFlagsMap: Map<int, BitFlags<DisplayFlag>>): void;
|
|
@@ -11426,10 +11609,11 @@ export declare function spawnCoin(coinSubType: CoinSubType, position: Vector, ve
|
|
|
11426
11609
|
export declare function spawnCoinWithSeed(coinSubType: CoinSubType, position: Vector, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity | undefined): EntityPickupCoin;
|
|
11427
11610
|
|
|
11428
11611
|
/**
|
|
11429
|
-
* Helper function to spawn a collectible.
|
|
11430
|
-
*
|
|
11431
|
-
*
|
|
11432
|
-
*
|
|
11612
|
+
* Helper function to spawn a collectible.
|
|
11613
|
+
*
|
|
11614
|
+
* Use this instead of the `Game.Spawn` method because it handles the cases of Tainted Keeper
|
|
11615
|
+
* collectibles costing coins and preventing quest items from being rotated by Tainted Isaac's
|
|
11616
|
+
* rotation mechanic. (Rotation prevention will only occur in upgraded mods.)
|
|
11433
11617
|
*
|
|
11434
11618
|
* @param collectibleType The collectible type to spawn.
|
|
11435
11619
|
* @param position The position to spawn the collectible at.
|
|
@@ -11443,35 +11627,31 @@ export declare function spawnCoinWithSeed(coinSubType: CoinSubType, position: Ve
|
|
|
11443
11627
|
*/
|
|
11444
11628
|
export declare function spawnCollectible(collectibleType: CollectibleType, position: Vector, seedOrRNG?: Seed | RNG, options?: boolean, forceFreeItem?: boolean, spawner?: Entity): EntityPickupCollectible;
|
|
11445
11629
|
|
|
11630
|
+
/**
|
|
11631
|
+
* Helper function to spawn a collectible from a specific item pool.
|
|
11632
|
+
*
|
|
11633
|
+
* Use this instead of the `Game.Spawn` method because it handles the cases of Tainted Keeper
|
|
11634
|
+
* collectibles costing coins and preventing quest items from being rotated by Tainted Isaac's
|
|
11635
|
+
* rotation mechanic. (Rotation prevention will only occur in upgraded mods.)
|
|
11636
|
+
*
|
|
11637
|
+
* @param itemPoolType The item pool to draw the collectible type from.
|
|
11638
|
+
* @param position The position to spawn the collectible at.
|
|
11639
|
+
* @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
|
|
11640
|
+
* `RNG.Next` method will be called. Default is `getRandomSeed()`.
|
|
11641
|
+
* @param options Optional. Set to true to make the collectible a "There's Options" style
|
|
11642
|
+
* collectible. Default is false.
|
|
11643
|
+
* @param forceFreeItem Optional. Set to true to disable the logic that gives the item a price for
|
|
11644
|
+
* Tainted Keeper. Default is false.
|
|
11645
|
+
* @param spawner Optional.
|
|
11646
|
+
*/
|
|
11647
|
+
export declare function spawnCollectibleFromPool(itemPoolType: ItemPoolType, position: Vector, seedOrRNG?: Seed | RNG, options?: boolean, forceFreeItem?: boolean, spawner?: Entity): EntityPickupCollectible;
|
|
11648
|
+
|
|
11446
11649
|
/** Helper function to spawn a `GridEntityType.CRAWL_SPACE` (18). */
|
|
11447
11650
|
export declare function spawnCrawlSpace(gridIndexOrPosition: int | Vector): GridEntity | undefined;
|
|
11448
11651
|
|
|
11449
11652
|
/** Helper function to spawn a `GridEntityType.CRAWL_SPACE` (18) with a specific variant. */
|
|
11450
11653
|
export declare function spawnCrawlSpaceWithVariant(crawlSpaceVariant: CrawlSpaceVariant, gridIndexOrPosition: int | Vector): GridEntity | undefined;
|
|
11451
11654
|
|
|
11452
|
-
/**
|
|
11453
|
-
* Helper function to spawn a custom door. This is intended to be called from the `POST_NEW_ROOM`
|
|
11454
|
-
* callback when the player enters a room that should have a custom door. (You could also call it
|
|
11455
|
-
* from another callback if you want the door to appear e.g. after clearing all enemies.)
|
|
11456
|
-
*
|
|
11457
|
-
* Like other entities, the door is not persistent, so you must spawn it every time when re-entering
|
|
11458
|
-
* the room.
|
|
11459
|
-
*
|
|
11460
|
-
* Handle when a player enters the door by hooking the custom `POST_CUSTOM_DOOR_ENTER` callback.
|
|
11461
|
-
*
|
|
11462
|
-
* The custom door is an `EntityEffect`. You can manually open or close the door by modifying its
|
|
11463
|
-
* state. (The values to use correspond to the `DoorState` enum.)
|
|
11464
|
-
*
|
|
11465
|
-
* This function will throw a run-time error if:
|
|
11466
|
-
* - the door slot already has a vanilla door
|
|
11467
|
-
* - the door slot already has a custom door
|
|
11468
|
-
* - the tile at the door slot does not have a wall
|
|
11469
|
-
*
|
|
11470
|
-
* Before using this function, you must first initialize the effect/door variant with the
|
|
11471
|
-
* `initCustomDoor` function.
|
|
11472
|
-
*/
|
|
11473
|
-
export declare function spawnCustomDoor(effectVariant: EffectVariant, doorSlot: DoorSlot): EntityEffect;
|
|
11474
|
-
|
|
11475
11655
|
/**
|
|
11476
11656
|
* Helper function to spawn a custom grid entity. Custom grid entities are persistent in that they
|
|
11477
11657
|
* will reappear if the player leaves and re-enters the room. (It will be manually respawned in the
|
|
@@ -11964,15 +12144,14 @@ export declare function tanh(x: number): number;
|
|
|
11964
12144
|
* Use this function instead of invoking the `Game.StartRoomTransition` method directly so that:
|
|
11965
12145
|
* - you do not forget to set the `Level.LeaveDoor` field
|
|
11966
12146
|
* - to prevent crashing on invalid room grid indexes
|
|
11967
|
-
*
|
|
12147
|
+
*
|
|
12148
|
+
* Note that if the current floor has Curse of the Maze, it may redirect the intended teleport.
|
|
11968
12149
|
*
|
|
11969
12150
|
* @param roomGridIndex The room grid index of the destination room.
|
|
11970
12151
|
* @param direction Optional. Default is `Direction.NO_DIRECTION`.
|
|
11971
12152
|
* @param roomTransitionAnim Optional. Default is `RoomTransitionAnim.TELEPORT`.
|
|
11972
|
-
* @param force Optional. Whether to temporarily disable Curse of the Maze. Default is false. If set
|
|
11973
|
-
* to false, then this function may not go to the provided room grid index.
|
|
11974
12153
|
*/
|
|
11975
|
-
export declare function teleport(roomGridIndex: int, direction?: Direction, roomTransitionAnim?: RoomTransitionAnim
|
|
12154
|
+
export declare function teleport(roomGridIndex: int, direction?: Direction, roomTransitionAnim?: RoomTransitionAnim): void;
|
|
11976
12155
|
|
|
11977
12156
|
/** For `GridEntityType.TELEPORTER` (23). */
|
|
11978
12157
|
export declare const TELEPORTER_ACTIVATION_DISTANCE: number;
|