isaacscript-common 18.0.0 → 18.2.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 +121 -99
- package/dist/isaacscript-common.lua +148 -102
- package/dist/src/callbackClasses.d.ts +1 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +5 -0
- package/dist/src/callbacks.d.ts +100 -99
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +1 -0
- package/dist/src/classes/callbacks/EntityTakeDmgFilter.d.ts.map +1 -1
- package/dist/src/classes/callbacks/EntityTakeDmgPlayer.d.ts +9 -0
- package/dist/src/classes/callbacks/EntityTakeDmgPlayer.d.ts.map +1 -0
- package/dist/src/classes/callbacks/EntityTakeDmgPlayer.lua +34 -0
- package/dist/src/classes/callbacks/PostAmbushFinished.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostAmbushStarted.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBombExploded.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBombInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCollectibleInitFirst.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCursedTeleport.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostDoorRender.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostDoorUpdate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostEffectInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostFamiliarInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGreedModeWave.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostKnifeInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostLaserInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCDeathFilter.d.ts +1 -1
- package/dist/src/classes/callbacks/PostNPCDeathFilter.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCDeathFilter.lua +2 -2
- package/dist/src/classes/callbacks/PostNPCInitFilter.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCRenderFilter.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNPCUpdateFilter.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostNewRoomEarly.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupCollect.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupInitFirst.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPitRender.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPitUpdate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPoopRender.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPoopUpdate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPressurePlateRender.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPressurePlateUpdate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostProjectileInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostRockRender.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostRockUpdate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSacrifice.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSlotCollision.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSlotDestroyed.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSpikesRender.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostSpikesUpdate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTNTRender.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTNTUpdate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTearInitLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTearInitVeryLate.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTrinketBreak.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PreGetPedestal.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PreNPCCollisionFilter.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PreNPCUpdateFilter.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
- package/dist/src/core/constants.d.ts +4 -0
- package/dist/src/core/constants.d.ts.map +1 -1
- package/dist/src/core/constants.lua +4 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +110 -99
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +101 -99
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +5 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbackClasses.ts +1 -0
- package/src/callbacks.ts +1 -0
- package/src/classes/callbacks/EntityTakeDmgFilter.ts +2 -1
- package/src/classes/callbacks/EntityTakeDmgPlayer.ts +40 -0
- package/src/classes/callbacks/PostAmbushFinished.ts +2 -1
- package/src/classes/callbacks/PostAmbushStarted.ts +2 -1
- package/src/classes/callbacks/PostBombExploded.ts +2 -1
- package/src/classes/callbacks/PostBombInitLate.ts +2 -1
- package/src/classes/callbacks/PostBoneSwing.ts +2 -1
- package/src/classes/callbacks/PostCollectibleEmpty.ts +2 -1
- package/src/classes/callbacks/PostCollectibleInitFirst.ts +2 -1
- package/src/classes/callbacks/PostCursedTeleport.ts +5 -2
- package/src/classes/callbacks/PostDiceRoomActivated.ts +2 -1
- package/src/classes/callbacks/PostDoorRender.ts +4 -1
- package/src/classes/callbacks/PostDoorUpdate.ts +4 -1
- package/src/classes/callbacks/PostEffectInitLate.ts +2 -1
- package/src/classes/callbacks/PostEffectStateChanged.ts +2 -1
- package/src/classes/callbacks/PostFamiliarInitLate.ts +2 -1
- package/src/classes/callbacks/PostFamiliarStateChanged.ts +2 -1
- package/src/classes/callbacks/PostGreedModeWave.ts +2 -1
- package/src/classes/callbacks/PostItemDischarge.ts +2 -1
- package/src/classes/callbacks/PostKnifeInitLate.ts +2 -1
- package/src/classes/callbacks/PostLaserInitLate.ts +2 -1
- package/src/classes/callbacks/PostNPCDeathFilter.ts +3 -2
- package/src/classes/callbacks/PostNPCInitFilter.ts +2 -1
- package/src/classes/callbacks/PostNPCInitLate.ts +2 -1
- package/src/classes/callbacks/PostNPCRenderFilter.ts +2 -1
- package/src/classes/callbacks/PostNPCStateChanged.ts +2 -1
- package/src/classes/callbacks/PostNPCUpdateFilter.ts +2 -1
- package/src/classes/callbacks/PostNewRoomEarly.ts +5 -2
- package/src/classes/callbacks/PostPickupCollect.ts +2 -1
- package/src/classes/callbacks/PostPickupInitFirst.ts +2 -1
- package/src/classes/callbacks/PostPickupInitLate.ts +2 -1
- package/src/classes/callbacks/PostPickupStateChanged.ts +2 -1
- package/src/classes/callbacks/PostPitRender.ts +2 -1
- package/src/classes/callbacks/PostPitUpdate.ts +2 -1
- package/src/classes/callbacks/PostPlayerFatalDamage.ts +5 -2
- package/src/classes/callbacks/PostPoopRender.ts +2 -1
- package/src/classes/callbacks/PostPoopUpdate.ts +2 -1
- package/src/classes/callbacks/PostPressurePlateRender.ts +2 -1
- package/src/classes/callbacks/PostPressurePlateUpdate.ts +2 -1
- package/src/classes/callbacks/PostProjectileInitLate.ts +2 -1
- package/src/classes/callbacks/PostRockRender.ts +2 -1
- package/src/classes/callbacks/PostRockUpdate.ts +2 -1
- package/src/classes/callbacks/PostRoomClearChanged.ts +2 -1
- package/src/classes/callbacks/PostSacrifice.ts +2 -1
- package/src/classes/callbacks/PostSlotCollision.ts +2 -1
- package/src/classes/callbacks/PostSlotDestroyed.ts +1 -0
- package/src/classes/callbacks/PostSpikesRender.ts +2 -1
- package/src/classes/callbacks/PostSpikesUpdate.ts +2 -1
- package/src/classes/callbacks/PostTNTRender.ts +2 -1
- package/src/classes/callbacks/PostTNTUpdate.ts +2 -1
- package/src/classes/callbacks/PostTearInitLate.ts +2 -1
- package/src/classes/callbacks/PostTearInitVeryLate.ts +2 -1
- package/src/classes/callbacks/PostTrinketBreak.ts +2 -1
- package/src/classes/callbacks/PreGetPedestal.ts +2 -1
- package/src/classes/callbacks/PreNPCCollisionFilter.ts +2 -1
- package/src/classes/callbacks/PreNPCUpdateFilter.ts +2 -1
- package/src/classes/callbacks/PreNewLevel.ts +2 -1
- package/src/core/constants.ts +6 -0
- package/src/enums/ModCallbackCustom.ts +12 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +12 -0
|
@@ -20,6 +20,17 @@ export declare enum ModCallbackCustom {
|
|
|
20
20
|
* matches the sub-type provided.
|
|
21
21
|
*/
|
|
22
22
|
ENTITY_TAKE_DMG_FILTER = 0,
|
|
23
|
+
/**
|
|
24
|
+
* The exact same thing as the vanilla `ENTITY_TAKE_DMG` callback, except this callback
|
|
25
|
+
* automatically filters for `EntityType.ENTITY_PLAYER` and casts the `Entity` object to a
|
|
26
|
+
* `EntityPlayer`.
|
|
27
|
+
*
|
|
28
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
29
|
+
* matches the `PlayerVariant` provided.
|
|
30
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
31
|
+
* matches the `PlayerType` provided.
|
|
32
|
+
*/
|
|
33
|
+
ENTITY_TAKE_DMG_PLAYER = 1,
|
|
23
34
|
/**
|
|
24
35
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
|
|
25
36
|
* Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
|
|
@@ -32,7 +43,7 @@ export declare enum ModCallbackCustom {
|
|
|
32
43
|
* function postAmbushFinished(ambushType: AmbushType): void {}
|
|
33
44
|
* ```
|
|
34
45
|
*/
|
|
35
|
-
POST_AMBUSH_FINISHED =
|
|
46
|
+
POST_AMBUSH_FINISHED = 2,
|
|
36
47
|
/**
|
|
37
48
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
|
|
38
49
|
* Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
|
|
@@ -45,7 +56,7 @@ export declare enum ModCallbackCustom {
|
|
|
45
56
|
* function postAmbushStarted(ambushType: AmbushType): void {}
|
|
46
57
|
* ```
|
|
47
58
|
*/
|
|
48
|
-
POST_AMBUSH_STARTED =
|
|
59
|
+
POST_AMBUSH_STARTED = 3,
|
|
49
60
|
/**
|
|
50
61
|
* Fires on the `POST_BOMB_UPDATE` callback that it explodes.
|
|
51
62
|
*
|
|
@@ -59,7 +70,7 @@ export declare enum ModCallbackCustom {
|
|
|
59
70
|
* function postBombDetonated(bomb: EntityBomb): void {}
|
|
60
71
|
* ```
|
|
61
72
|
*/
|
|
62
|
-
POST_BOMB_EXPLODED =
|
|
73
|
+
POST_BOMB_EXPLODED = 4,
|
|
63
74
|
/**
|
|
64
75
|
* Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
|
|
65
76
|
*
|
|
@@ -76,7 +87,7 @@ export declare enum ModCallbackCustom {
|
|
|
76
87
|
* function postBombInitLate(bomb: EntityBomb): void {}
|
|
77
88
|
* ```
|
|
78
89
|
*/
|
|
79
|
-
POST_BOMB_INIT_LATE =
|
|
90
|
+
POST_BOMB_INIT_LATE = 5,
|
|
80
91
|
/**
|
|
81
92
|
* Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
|
|
82
93
|
*
|
|
@@ -84,7 +95,7 @@ export declare enum ModCallbackCustom {
|
|
|
84
95
|
* function postBoneSwing(boneClub: EntityKnife): void {}
|
|
85
96
|
* ```
|
|
86
97
|
*/
|
|
87
|
-
POST_BONE_SWING =
|
|
98
|
+
POST_BONE_SWING = 6,
|
|
88
99
|
/**
|
|
89
100
|
* Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
|
|
90
101
|
* to `CollectibleType.NULL` (i.e. an "empty" pedestal).
|
|
@@ -100,7 +111,7 @@ export declare enum ModCallbackCustom {
|
|
|
100
111
|
* ): void {}
|
|
101
112
|
* ```
|
|
102
113
|
*/
|
|
103
|
-
POST_COLLECTIBLE_EMPTY =
|
|
114
|
+
POST_COLLECTIBLE_EMPTY = 7,
|
|
104
115
|
/**
|
|
105
116
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
106
117
|
* respective collectible on the run. For more details on how this is calculated, see the
|
|
@@ -118,7 +129,7 @@ export declare enum ModCallbackCustom {
|
|
|
118
129
|
* function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
|
|
119
130
|
* ```
|
|
120
131
|
*/
|
|
121
|
-
POST_COLLECTIBLE_INIT_FIRST =
|
|
132
|
+
POST_COLLECTIBLE_INIT_FIRST = 8,
|
|
122
133
|
/**
|
|
123
134
|
* Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
|
|
124
135
|
* begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
|
|
@@ -134,7 +145,7 @@ export declare enum ModCallbackCustom {
|
|
|
134
145
|
* function postCursedTeleport(player: EntityPlayer): void {}
|
|
135
146
|
* ```
|
|
136
147
|
*/
|
|
137
|
-
POST_CURSED_TELEPORT =
|
|
148
|
+
POST_CURSED_TELEPORT = 9,
|
|
138
149
|
/**
|
|
139
150
|
* Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
|
|
140
151
|
* has teleported to the previous room, and is ready to play the animation for the modded revival
|
|
@@ -152,7 +163,7 @@ export declare enum ModCallbackCustom {
|
|
|
152
163
|
* function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
|
|
153
164
|
* ```
|
|
154
165
|
*/
|
|
155
|
-
POST_CUSTOM_REVIVE =
|
|
166
|
+
POST_CUSTOM_REVIVE = 10,
|
|
156
167
|
/**
|
|
157
168
|
* Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
|
|
158
169
|
* Room floor.
|
|
@@ -168,7 +179,7 @@ export declare enum ModCallbackCustom {
|
|
|
168
179
|
* ): void {}
|
|
169
180
|
* ```
|
|
170
181
|
*/
|
|
171
|
-
POST_DICE_ROOM_ACTIVATED =
|
|
182
|
+
POST_DICE_ROOM_ACTIVATED = 11,
|
|
172
183
|
/**
|
|
173
184
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
174
185
|
*
|
|
@@ -180,7 +191,7 @@ export declare enum ModCallbackCustom {
|
|
|
180
191
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
181
192
|
* ```
|
|
182
193
|
*/
|
|
183
|
-
POST_DOOR_RENDER =
|
|
194
|
+
POST_DOOR_RENDER = 12,
|
|
184
195
|
/**
|
|
185
196
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
186
197
|
*
|
|
@@ -192,7 +203,7 @@ export declare enum ModCallbackCustom {
|
|
|
192
203
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
193
204
|
* ```
|
|
194
205
|
*/
|
|
195
|
-
POST_DOOR_UPDATE =
|
|
206
|
+
POST_DOOR_UPDATE = 13,
|
|
196
207
|
/**
|
|
197
208
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
198
209
|
*
|
|
@@ -209,7 +220,7 @@ export declare enum ModCallbackCustom {
|
|
|
209
220
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
210
221
|
* ```
|
|
211
222
|
*/
|
|
212
|
-
POST_EFFECT_INIT_LATE =
|
|
223
|
+
POST_EFFECT_INIT_LATE = 14,
|
|
213
224
|
/**
|
|
214
225
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
215
226
|
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
@@ -228,7 +239,7 @@ export declare enum ModCallbackCustom {
|
|
|
228
239
|
* ): void {}
|
|
229
240
|
* ```
|
|
230
241
|
*/
|
|
231
|
-
POST_EFFECT_STATE_CHANGED =
|
|
242
|
+
POST_EFFECT_STATE_CHANGED = 15,
|
|
232
243
|
/**
|
|
233
244
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
234
245
|
* updated to the new character until a game frame has passed.)
|
|
@@ -237,7 +248,7 @@ export declare enum ModCallbackCustom {
|
|
|
237
248
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
238
249
|
* ```
|
|
239
250
|
*/
|
|
240
|
-
POST_ESAU_JR =
|
|
251
|
+
POST_ESAU_JR = 16,
|
|
241
252
|
/**
|
|
242
253
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
243
254
|
*
|
|
@@ -254,7 +265,7 @@ export declare enum ModCallbackCustom {
|
|
|
254
265
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
255
266
|
* ```
|
|
256
267
|
*/
|
|
257
|
-
POST_FAMILIAR_INIT_LATE =
|
|
268
|
+
POST_FAMILIAR_INIT_LATE = 17,
|
|
258
269
|
/**
|
|
259
270
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
260
271
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -274,7 +285,7 @@ export declare enum ModCallbackCustom {
|
|
|
274
285
|
* ): void {}
|
|
275
286
|
* ```
|
|
276
287
|
*/
|
|
277
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
288
|
+
POST_FAMILIAR_STATE_CHANGED = 18,
|
|
278
289
|
/**
|
|
279
290
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
280
291
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -286,7 +297,7 @@ export declare enum ModCallbackCustom {
|
|
|
286
297
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
287
298
|
* ```
|
|
288
299
|
*/
|
|
289
|
-
POST_FIRST_ESAU_JR =
|
|
300
|
+
POST_FIRST_ESAU_JR = 19,
|
|
290
301
|
/**
|
|
291
302
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
292
303
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -299,7 +310,7 @@ export declare enum ModCallbackCustom {
|
|
|
299
310
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
300
311
|
* ```
|
|
301
312
|
*/
|
|
302
|
-
POST_FIRST_FLIP =
|
|
313
|
+
POST_FIRST_FLIP = 20,
|
|
303
314
|
/**
|
|
304
315
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
305
316
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -312,7 +323,7 @@ export declare enum ModCallbackCustom {
|
|
|
312
323
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
313
324
|
* ```
|
|
314
325
|
*/
|
|
315
|
-
POST_FLIP =
|
|
326
|
+
POST_FLIP = 21,
|
|
316
327
|
/**
|
|
317
328
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
318
329
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -323,7 +334,7 @@ export declare enum ModCallbackCustom {
|
|
|
323
334
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
324
335
|
* ```
|
|
325
336
|
*/
|
|
326
|
-
POST_GAME_STARTED_REORDERED =
|
|
337
|
+
POST_GAME_STARTED_REORDERED = 22,
|
|
327
338
|
/**
|
|
328
339
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
329
340
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -334,7 +345,7 @@ export declare enum ModCallbackCustom {
|
|
|
334
345
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
335
346
|
* ```
|
|
336
347
|
*/
|
|
337
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
348
|
+
POST_GAME_STARTED_REORDERED_LAST = 23,
|
|
338
349
|
/**
|
|
339
350
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
340
351
|
*
|
|
@@ -342,7 +353,7 @@ export declare enum ModCallbackCustom {
|
|
|
342
353
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
343
354
|
* ```
|
|
344
355
|
*/
|
|
345
|
-
POST_GREED_MODE_WAVE =
|
|
356
|
+
POST_GREED_MODE_WAVE = 24,
|
|
346
357
|
/**
|
|
347
358
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
348
359
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -361,7 +372,7 @@ export declare enum ModCallbackCustom {
|
|
|
361
372
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
362
373
|
* ```
|
|
363
374
|
*/
|
|
364
|
-
POST_GRID_ENTITY_BROKEN =
|
|
375
|
+
POST_GRID_ENTITY_BROKEN = 25,
|
|
365
376
|
/**
|
|
366
377
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
367
378
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -389,7 +400,7 @@ export declare enum ModCallbackCustom {
|
|
|
389
400
|
* ): void {}
|
|
390
401
|
* ```
|
|
391
402
|
*/
|
|
392
|
-
POST_GRID_ENTITY_COLLISION =
|
|
403
|
+
POST_GRID_ENTITY_COLLISION = 26,
|
|
393
404
|
/**
|
|
394
405
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
395
406
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -406,7 +417,7 @@ export declare enum ModCallbackCustom {
|
|
|
406
417
|
* ): void {}
|
|
407
418
|
* ```
|
|
408
419
|
*/
|
|
409
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
420
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 27,
|
|
410
421
|
/**
|
|
411
422
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
412
423
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -430,7 +441,7 @@ export declare enum ModCallbackCustom {
|
|
|
430
441
|
* ): void {}
|
|
431
442
|
* ```
|
|
432
443
|
*/
|
|
433
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
444
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 28,
|
|
434
445
|
/**
|
|
435
446
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
436
447
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -447,7 +458,7 @@ export declare enum ModCallbackCustom {
|
|
|
447
458
|
* ): void {}
|
|
448
459
|
* ```
|
|
449
460
|
*/
|
|
450
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
461
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 29,
|
|
451
462
|
/**
|
|
452
463
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
453
464
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -464,7 +475,7 @@ export declare enum ModCallbackCustom {
|
|
|
464
475
|
* ): void {}
|
|
465
476
|
* ```
|
|
466
477
|
*/
|
|
467
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
478
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 30,
|
|
468
479
|
/**
|
|
469
480
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
470
481
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -481,7 +492,7 @@ export declare enum ModCallbackCustom {
|
|
|
481
492
|
* ): void {}
|
|
482
493
|
* ```
|
|
483
494
|
*/
|
|
484
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
495
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 31,
|
|
485
496
|
/**
|
|
486
497
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
487
498
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -500,7 +511,7 @@ export declare enum ModCallbackCustom {
|
|
|
500
511
|
* ): void {}
|
|
501
512
|
* ```
|
|
502
513
|
*/
|
|
503
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
514
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 32,
|
|
504
515
|
/**
|
|
505
516
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
506
517
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -517,7 +528,7 @@ export declare enum ModCallbackCustom {
|
|
|
517
528
|
* ): void {}
|
|
518
529
|
* ```
|
|
519
530
|
*/
|
|
520
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
531
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 33,
|
|
521
532
|
/**
|
|
522
533
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
523
534
|
*
|
|
@@ -539,7 +550,7 @@ export declare enum ModCallbackCustom {
|
|
|
539
550
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
540
551
|
* ```
|
|
541
552
|
*/
|
|
542
|
-
POST_GRID_ENTITY_INIT =
|
|
553
|
+
POST_GRID_ENTITY_INIT = 34,
|
|
543
554
|
/**
|
|
544
555
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
545
556
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -564,7 +575,7 @@ export declare enum ModCallbackCustom {
|
|
|
564
575
|
* ): void {}
|
|
565
576
|
* ```
|
|
566
577
|
*/
|
|
567
|
-
POST_GRID_ENTITY_REMOVE =
|
|
578
|
+
POST_GRID_ENTITY_REMOVE = 35,
|
|
568
579
|
/**
|
|
569
580
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
570
581
|
*
|
|
@@ -581,7 +592,7 @@ export declare enum ModCallbackCustom {
|
|
|
581
592
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
582
593
|
* ```
|
|
583
594
|
*/
|
|
584
|
-
POST_GRID_ENTITY_RENDER =
|
|
595
|
+
POST_GRID_ENTITY_RENDER = 36,
|
|
585
596
|
/**
|
|
586
597
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
587
598
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -603,7 +614,7 @@ export declare enum ModCallbackCustom {
|
|
|
603
614
|
* ): void {}
|
|
604
615
|
* ```
|
|
605
616
|
*/
|
|
606
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
617
|
+
POST_GRID_ENTITY_STATE_CHANGED = 37,
|
|
607
618
|
/**
|
|
608
619
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
609
620
|
*
|
|
@@ -620,7 +631,7 @@ export declare enum ModCallbackCustom {
|
|
|
620
631
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
621
632
|
* ```
|
|
622
633
|
*/
|
|
623
|
-
POST_GRID_ENTITY_UPDATE =
|
|
634
|
+
POST_GRID_ENTITY_UPDATE = 38,
|
|
624
635
|
/**
|
|
625
636
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
626
637
|
* temporary collectible effect.
|
|
@@ -643,7 +654,7 @@ export declare enum ModCallbackCustom {
|
|
|
643
654
|
* ): void {}
|
|
644
655
|
* ```
|
|
645
656
|
*/
|
|
646
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
657
|
+
POST_HOLY_MANTLE_REMOVED = 39,
|
|
647
658
|
/**
|
|
648
659
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
649
660
|
* active collectible item, implying that the item was just used.
|
|
@@ -666,7 +677,7 @@ export declare enum ModCallbackCustom {
|
|
|
666
677
|
* ): void {}
|
|
667
678
|
* ```
|
|
668
679
|
*/
|
|
669
|
-
POST_ITEM_DISCHARGE =
|
|
680
|
+
POST_ITEM_DISCHARGE = 40,
|
|
670
681
|
/**
|
|
671
682
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
672
683
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -687,7 +698,7 @@ export declare enum ModCallbackCustom {
|
|
|
687
698
|
* ): void {}
|
|
688
699
|
* ```
|
|
689
700
|
*/
|
|
690
|
-
POST_ITEM_PICKUP =
|
|
701
|
+
POST_ITEM_PICKUP = 41,
|
|
691
702
|
/**
|
|
692
703
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
693
704
|
*
|
|
@@ -704,7 +715,7 @@ export declare enum ModCallbackCustom {
|
|
|
704
715
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
705
716
|
* ```
|
|
706
717
|
*/
|
|
707
|
-
POST_KNIFE_INIT_LATE =
|
|
718
|
+
POST_KNIFE_INIT_LATE = 42,
|
|
708
719
|
/**
|
|
709
720
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
710
721
|
*
|
|
@@ -721,7 +732,7 @@ export declare enum ModCallbackCustom {
|
|
|
721
732
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
722
733
|
* ```
|
|
723
734
|
*/
|
|
724
|
-
POST_LASER_INIT_LATE =
|
|
735
|
+
POST_LASER_INIT_LATE = 43,
|
|
725
736
|
/**
|
|
726
737
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
727
738
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -738,7 +749,7 @@ export declare enum ModCallbackCustom {
|
|
|
738
749
|
* function postNewLevelReordered(): void {}
|
|
739
750
|
* ```
|
|
740
751
|
*/
|
|
741
|
-
POST_NEW_LEVEL_REORDERED =
|
|
752
|
+
POST_NEW_LEVEL_REORDERED = 44,
|
|
742
753
|
/**
|
|
743
754
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
744
755
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -749,7 +760,7 @@ export declare enum ModCallbackCustom {
|
|
|
749
760
|
* function postNewRoomEarly(): void {}
|
|
750
761
|
* ```
|
|
751
762
|
*/
|
|
752
|
-
POST_NEW_ROOM_EARLY =
|
|
763
|
+
POST_NEW_ROOM_EARLY = 45,
|
|
753
764
|
/**
|
|
754
765
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
755
766
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -766,7 +777,7 @@ export declare enum ModCallbackCustom {
|
|
|
766
777
|
* function postNewRoomReordered(): void {}
|
|
767
778
|
* ```
|
|
768
779
|
*/
|
|
769
|
-
POST_NEW_ROOM_REORDERED =
|
|
780
|
+
POST_NEW_ROOM_REORDERED = 46,
|
|
770
781
|
/**
|
|
771
782
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
772
783
|
* to specify extra arguments for additional filtration.
|
|
@@ -779,7 +790,7 @@ export declare enum ModCallbackCustom {
|
|
|
779
790
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
780
791
|
* matches the sub-type provided.
|
|
781
792
|
*/
|
|
782
|
-
POST_NPC_DEATH_FILTER =
|
|
793
|
+
POST_NPC_DEATH_FILTER = 47,
|
|
783
794
|
/**
|
|
784
795
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
785
796
|
* to specify extra arguments for additional filtration.
|
|
@@ -792,7 +803,7 @@ export declare enum ModCallbackCustom {
|
|
|
792
803
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
793
804
|
* matches the sub-type provided.
|
|
794
805
|
*/
|
|
795
|
-
POST_NPC_INIT_FILTER =
|
|
806
|
+
POST_NPC_INIT_FILTER = 48,
|
|
796
807
|
/**
|
|
797
808
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
798
809
|
*
|
|
@@ -811,7 +822,7 @@ export declare enum ModCallbackCustom {
|
|
|
811
822
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
812
823
|
* ```
|
|
813
824
|
*/
|
|
814
|
-
POST_NPC_INIT_LATE =
|
|
825
|
+
POST_NPC_INIT_LATE = 49,
|
|
815
826
|
/**
|
|
816
827
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
817
828
|
* to specify extra arguments for additional filtration.
|
|
@@ -824,7 +835,7 @@ export declare enum ModCallbackCustom {
|
|
|
824
835
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
825
836
|
* matches the sub-type provided.
|
|
826
837
|
*/
|
|
827
|
-
POST_NPC_RENDER_FILTER =
|
|
838
|
+
POST_NPC_RENDER_FILTER = 50,
|
|
828
839
|
/**
|
|
829
840
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
830
841
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -845,7 +856,7 @@ export declare enum ModCallbackCustom {
|
|
|
845
856
|
* ): void {}
|
|
846
857
|
* ```
|
|
847
858
|
*/
|
|
848
|
-
POST_NPC_STATE_CHANGED =
|
|
859
|
+
POST_NPC_STATE_CHANGED = 51,
|
|
849
860
|
/**
|
|
850
861
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
851
862
|
* to specify extra arguments for additional filtration.
|
|
@@ -858,7 +869,7 @@ export declare enum ModCallbackCustom {
|
|
|
858
869
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
859
870
|
* matches the sub-type provided.
|
|
860
871
|
*/
|
|
861
|
-
POST_NPC_UPDATE_FILTER =
|
|
872
|
+
POST_NPC_UPDATE_FILTER = 52,
|
|
862
873
|
/**
|
|
863
874
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
864
875
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -883,7 +894,7 @@ export declare enum ModCallbackCustom {
|
|
|
883
894
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
884
895
|
* ```
|
|
885
896
|
*/
|
|
886
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
897
|
+
POST_PEFFECT_UPDATE_REORDERED = 53,
|
|
887
898
|
/**
|
|
888
899
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
889
900
|
*
|
|
@@ -902,7 +913,7 @@ export declare enum ModCallbackCustom {
|
|
|
902
913
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
903
914
|
* ```
|
|
904
915
|
*/
|
|
905
|
-
POST_PICKUP_COLLECT =
|
|
916
|
+
POST_PICKUP_COLLECT = 54,
|
|
906
917
|
/**
|
|
907
918
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
908
919
|
* respective pickup on the run.
|
|
@@ -920,7 +931,7 @@ export declare enum ModCallbackCustom {
|
|
|
920
931
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
921
932
|
* ```
|
|
922
933
|
*/
|
|
923
|
-
POST_PICKUP_INIT_FIRST =
|
|
934
|
+
POST_PICKUP_INIT_FIRST = 55,
|
|
924
935
|
/**
|
|
925
936
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
926
937
|
*
|
|
@@ -937,7 +948,7 @@ export declare enum ModCallbackCustom {
|
|
|
937
948
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
938
949
|
* ```
|
|
939
950
|
*/
|
|
940
|
-
POST_PICKUP_INIT_LATE =
|
|
951
|
+
POST_PICKUP_INIT_LATE = 56,
|
|
941
952
|
/**
|
|
942
953
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
943
954
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -956,7 +967,7 @@ export declare enum ModCallbackCustom {
|
|
|
956
967
|
* ): void {}
|
|
957
968
|
* ```
|
|
958
969
|
*/
|
|
959
|
-
POST_PICKUP_STATE_CHANGED =
|
|
970
|
+
POST_PICKUP_STATE_CHANGED = 57,
|
|
960
971
|
/**
|
|
961
972
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
962
973
|
*
|
|
@@ -968,7 +979,7 @@ export declare enum ModCallbackCustom {
|
|
|
968
979
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
969
980
|
* ```
|
|
970
981
|
*/
|
|
971
|
-
POST_PIT_RENDER =
|
|
982
|
+
POST_PIT_RENDER = 58,
|
|
972
983
|
/**
|
|
973
984
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
974
985
|
*
|
|
@@ -980,7 +991,7 @@ export declare enum ModCallbackCustom {
|
|
|
980
991
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
981
992
|
* ```
|
|
982
993
|
*/
|
|
983
|
-
POST_PIT_UPDATE =
|
|
994
|
+
POST_PIT_UPDATE = 59,
|
|
984
995
|
/**
|
|
985
996
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
986
997
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -1002,7 +1013,7 @@ export declare enum ModCallbackCustom {
|
|
|
1002
1013
|
* ): void {}
|
|
1003
1014
|
* ```
|
|
1004
1015
|
*/
|
|
1005
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
1016
|
+
POST_PLAYER_CHANGE_HEALTH = 60,
|
|
1006
1017
|
/**
|
|
1007
1018
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
1008
1019
|
* from what they were on the previous frame.
|
|
@@ -1032,7 +1043,7 @@ export declare enum ModCallbackCustom {
|
|
|
1032
1043
|
* ) => void {}
|
|
1033
1044
|
* ```
|
|
1034
1045
|
*/
|
|
1035
|
-
POST_PLAYER_CHANGE_STAT =
|
|
1046
|
+
POST_PLAYER_CHANGE_STAT = 61,
|
|
1036
1047
|
/**
|
|
1037
1048
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
1038
1049
|
* type
|
|
@@ -1055,7 +1066,7 @@ export declare enum ModCallbackCustom {
|
|
|
1055
1066
|
* ): void {}
|
|
1056
1067
|
* ```
|
|
1057
1068
|
*/
|
|
1058
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
1069
|
+
POST_PLAYER_CHANGE_TYPE = 62,
|
|
1059
1070
|
/**
|
|
1060
1071
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1061
1072
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -1072,7 +1083,7 @@ export declare enum ModCallbackCustom {
|
|
|
1072
1083
|
* ): void {}
|
|
1073
1084
|
* ```
|
|
1074
1085
|
*/
|
|
1075
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
1086
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 63,
|
|
1076
1087
|
/**
|
|
1077
1088
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1078
1089
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -1089,7 +1100,7 @@ export declare enum ModCallbackCustom {
|
|
|
1089
1100
|
* ): void {}
|
|
1090
1101
|
* ```
|
|
1091
1102
|
*/
|
|
1092
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
1103
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 64,
|
|
1093
1104
|
/**
|
|
1094
1105
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
1095
1106
|
* prevent the fatal damage.
|
|
@@ -1107,7 +1118,7 @@ export declare enum ModCallbackCustom {
|
|
|
1107
1118
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
1108
1119
|
* ```
|
|
1109
1120
|
*/
|
|
1110
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
1121
|
+
POST_PLAYER_FATAL_DAMAGE = 65,
|
|
1111
1122
|
/**
|
|
1112
1123
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
1113
1124
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -1129,7 +1140,7 @@ export declare enum ModCallbackCustom {
|
|
|
1129
1140
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
1130
1141
|
* ```
|
|
1131
1142
|
*/
|
|
1132
|
-
POST_PLAYER_INIT_FIRST =
|
|
1143
|
+
POST_PLAYER_INIT_FIRST = 66,
|
|
1133
1144
|
/**
|
|
1134
1145
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
1135
1146
|
*
|
|
@@ -1149,7 +1160,7 @@ export declare enum ModCallbackCustom {
|
|
|
1149
1160
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
1150
1161
|
* ```
|
|
1151
1162
|
*/
|
|
1152
|
-
POST_PLAYER_INIT_LATE =
|
|
1163
|
+
POST_PLAYER_INIT_LATE = 67,
|
|
1153
1164
|
/**
|
|
1154
1165
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
1155
1166
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -1173,7 +1184,7 @@ export declare enum ModCallbackCustom {
|
|
|
1173
1184
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
1174
1185
|
* ```
|
|
1175
1186
|
*/
|
|
1176
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
1187
|
+
POST_PLAYER_RENDER_REORDERED = 68,
|
|
1177
1188
|
/**
|
|
1178
1189
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
1179
1190
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -1198,7 +1209,7 @@ export declare enum ModCallbackCustom {
|
|
|
1198
1209
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
1199
1210
|
* ```
|
|
1200
1211
|
*/
|
|
1201
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
1212
|
+
POST_PLAYER_UPDATE_REORDERED = 69,
|
|
1202
1213
|
/**
|
|
1203
1214
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
1204
1215
|
*
|
|
@@ -1210,7 +1221,7 @@ export declare enum ModCallbackCustom {
|
|
|
1210
1221
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
1211
1222
|
* ```
|
|
1212
1223
|
*/
|
|
1213
|
-
POST_POOP_RENDER =
|
|
1224
|
+
POST_POOP_RENDER = 70,
|
|
1214
1225
|
/**
|
|
1215
1226
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
1216
1227
|
*
|
|
@@ -1222,7 +1233,7 @@ export declare enum ModCallbackCustom {
|
|
|
1222
1233
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
1223
1234
|
* ```
|
|
1224
1235
|
*/
|
|
1225
|
-
POST_POOP_UPDATE =
|
|
1236
|
+
POST_POOP_UPDATE = 71,
|
|
1226
1237
|
/**
|
|
1227
1238
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
1228
1239
|
*
|
|
@@ -1234,7 +1245,7 @@ export declare enum ModCallbackCustom {
|
|
|
1234
1245
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
1235
1246
|
* ```
|
|
1236
1247
|
*/
|
|
1237
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
1248
|
+
POST_PRESSURE_PLATE_RENDER = 72,
|
|
1238
1249
|
/**
|
|
1239
1250
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
1240
1251
|
*
|
|
@@ -1246,7 +1257,7 @@ export declare enum ModCallbackCustom {
|
|
|
1246
1257
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
1247
1258
|
* ```
|
|
1248
1259
|
*/
|
|
1249
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
1260
|
+
POST_PRESSURE_PLATE_UPDATE = 73,
|
|
1250
1261
|
/**
|
|
1251
1262
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
1252
1263
|
*
|
|
@@ -1263,7 +1274,7 @@ export declare enum ModCallbackCustom {
|
|
|
1263
1274
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
1264
1275
|
* ```
|
|
1265
1276
|
*/
|
|
1266
|
-
POST_PROJECTILE_INIT_LATE =
|
|
1277
|
+
POST_PROJECTILE_INIT_LATE = 74,
|
|
1267
1278
|
/**
|
|
1268
1279
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
1269
1280
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -1279,7 +1290,7 @@ export declare enum ModCallbackCustom {
|
|
|
1279
1290
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
1280
1291
|
* ```
|
|
1281
1292
|
*/
|
|
1282
|
-
POST_PURCHASE =
|
|
1293
|
+
POST_PURCHASE = 75,
|
|
1283
1294
|
/**
|
|
1284
1295
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
1285
1296
|
*
|
|
@@ -1293,7 +1304,7 @@ export declare enum ModCallbackCustom {
|
|
|
1293
1304
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
1294
1305
|
* ```
|
|
1295
1306
|
*/
|
|
1296
|
-
POST_ROCK_RENDER =
|
|
1307
|
+
POST_ROCK_RENDER = 76,
|
|
1297
1308
|
/**
|
|
1298
1309
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
1299
1310
|
*
|
|
@@ -1307,7 +1318,7 @@ export declare enum ModCallbackCustom {
|
|
|
1307
1318
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
1308
1319
|
* ```
|
|
1309
1320
|
*/
|
|
1310
|
-
POST_ROCK_UPDATE =
|
|
1321
|
+
POST_ROCK_UPDATE = 77,
|
|
1311
1322
|
/**
|
|
1312
1323
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
1313
1324
|
* the `Room.IsClear` method).
|
|
@@ -1324,7 +1335,7 @@ export declare enum ModCallbackCustom {
|
|
|
1324
1335
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
1325
1336
|
* ```
|
|
1326
1337
|
*/
|
|
1327
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
1338
|
+
POST_ROOM_CLEAR_CHANGED = 78,
|
|
1328
1339
|
/**
|
|
1329
1340
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
1330
1341
|
* Room.
|
|
@@ -1339,7 +1350,7 @@ export declare enum ModCallbackCustom {
|
|
|
1339
1350
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
1340
1351
|
* ```
|
|
1341
1352
|
*/
|
|
1342
|
-
POST_SACRIFICE =
|
|
1353
|
+
POST_SACRIFICE = 79,
|
|
1343
1354
|
/**
|
|
1344
1355
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
1345
1356
|
*
|
|
@@ -1353,7 +1364,7 @@ export declare enum ModCallbackCustom {
|
|
|
1353
1364
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
1354
1365
|
* ```
|
|
1355
1366
|
*/
|
|
1356
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
1367
|
+
POST_SLOT_ANIMATION_CHANGED = 80,
|
|
1357
1368
|
/**
|
|
1358
1369
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
1359
1370
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -1377,7 +1388,7 @@ export declare enum ModCallbackCustom {
|
|
|
1377
1388
|
* ): void {}
|
|
1378
1389
|
* ```
|
|
1379
1390
|
*/
|
|
1380
|
-
POST_SLOT_COLLISION =
|
|
1391
|
+
POST_SLOT_COLLISION = 81,
|
|
1381
1392
|
/**
|
|
1382
1393
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
1383
1394
|
* has broken.
|
|
@@ -1392,7 +1403,7 @@ export declare enum ModCallbackCustom {
|
|
|
1392
1403
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
1393
1404
|
* ```
|
|
1394
1405
|
*/
|
|
1395
|
-
POST_SLOT_DESTROYED =
|
|
1406
|
+
POST_SLOT_DESTROYED = 82,
|
|
1396
1407
|
/**
|
|
1397
1408
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
1398
1409
|
*
|
|
@@ -1411,7 +1422,7 @@ export declare enum ModCallbackCustom {
|
|
|
1411
1422
|
* function postSlotInit(slot: Entity): void {}
|
|
1412
1423
|
* ```
|
|
1413
1424
|
*/
|
|
1414
|
-
POST_SLOT_INIT =
|
|
1425
|
+
POST_SLOT_INIT = 83,
|
|
1415
1426
|
/**
|
|
1416
1427
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
1417
1428
|
*
|
|
@@ -1425,7 +1436,7 @@ export declare enum ModCallbackCustom {
|
|
|
1425
1436
|
* function postSlotRender(slot: Entity): void {}
|
|
1426
1437
|
* ```
|
|
1427
1438
|
*/
|
|
1428
|
-
POST_SLOT_RENDER =
|
|
1439
|
+
POST_SLOT_RENDER = 84,
|
|
1429
1440
|
/**
|
|
1430
1441
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
1431
1442
|
*
|
|
@@ -1439,7 +1450,7 @@ export declare enum ModCallbackCustom {
|
|
|
1439
1450
|
* function postSlotUpdate(slot: Entity): void {}
|
|
1440
1451
|
* ```
|
|
1441
1452
|
*/
|
|
1442
|
-
POST_SLOT_UPDATE =
|
|
1453
|
+
POST_SLOT_UPDATE = 85,
|
|
1443
1454
|
/**
|
|
1444
1455
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
1445
1456
|
*
|
|
@@ -1451,7 +1462,7 @@ export declare enum ModCallbackCustom {
|
|
|
1451
1462
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
1452
1463
|
* ```
|
|
1453
1464
|
*/
|
|
1454
|
-
POST_SPIKES_RENDER =
|
|
1465
|
+
POST_SPIKES_RENDER = 86,
|
|
1455
1466
|
/**
|
|
1456
1467
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
1457
1468
|
*
|
|
@@ -1463,7 +1474,7 @@ export declare enum ModCallbackCustom {
|
|
|
1463
1474
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
1464
1475
|
* ```
|
|
1465
1476
|
*/
|
|
1466
|
-
POST_SPIKES_UPDATE =
|
|
1477
|
+
POST_SPIKES_UPDATE = 87,
|
|
1467
1478
|
/**
|
|
1468
1479
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1469
1480
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -1481,7 +1492,7 @@ export declare enum ModCallbackCustom {
|
|
|
1481
1492
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
1482
1493
|
* ```
|
|
1483
1494
|
*/
|
|
1484
|
-
POST_TEAR_INIT_LATE =
|
|
1495
|
+
POST_TEAR_INIT_LATE = 88,
|
|
1485
1496
|
/**
|
|
1486
1497
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1487
1498
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -1498,7 +1509,7 @@ export declare enum ModCallbackCustom {
|
|
|
1498
1509
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
1499
1510
|
* ```
|
|
1500
1511
|
*/
|
|
1501
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
1512
|
+
POST_TEAR_INIT_VERY_LATE = 89,
|
|
1502
1513
|
/**
|
|
1503
1514
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
1504
1515
|
*
|
|
@@ -1510,7 +1521,7 @@ export declare enum ModCallbackCustom {
|
|
|
1510
1521
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
1511
1522
|
* ```
|
|
1512
1523
|
*/
|
|
1513
|
-
POST_TNT_RENDER =
|
|
1524
|
+
POST_TNT_RENDER = 90,
|
|
1514
1525
|
/**
|
|
1515
1526
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
1516
1527
|
*
|
|
@@ -1522,7 +1533,7 @@ export declare enum ModCallbackCustom {
|
|
|
1522
1533
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
1523
1534
|
* ```
|
|
1524
1535
|
*/
|
|
1525
|
-
POST_TNT_UPDATE =
|
|
1536
|
+
POST_TNT_UPDATE = 91,
|
|
1526
1537
|
/**
|
|
1527
1538
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
1528
1539
|
* transformation.
|
|
@@ -1541,7 +1552,7 @@ export declare enum ModCallbackCustom {
|
|
|
1541
1552
|
* ): void {}
|
|
1542
1553
|
* ```
|
|
1543
1554
|
*/
|
|
1544
|
-
POST_TRANSFORMATION =
|
|
1555
|
+
POST_TRANSFORMATION = 92,
|
|
1545
1556
|
/**
|
|
1546
1557
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
1547
1558
|
*
|
|
@@ -1556,7 +1567,7 @@ export declare enum ModCallbackCustom {
|
|
|
1556
1567
|
* ): void {}
|
|
1557
1568
|
* ```
|
|
1558
1569
|
*/
|
|
1559
|
-
POST_TRINKET_BREAK =
|
|
1570
|
+
POST_TRINKET_BREAK = 93,
|
|
1560
1571
|
/**
|
|
1561
1572
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
1562
1573
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -1572,7 +1583,7 @@ export declare enum ModCallbackCustom {
|
|
|
1572
1583
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
1573
1584
|
* ```
|
|
1574
1585
|
*/
|
|
1575
|
-
PRE_BERSERK_DEATH =
|
|
1586
|
+
PRE_BERSERK_DEATH = 94,
|
|
1576
1587
|
/**
|
|
1577
1588
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
1578
1589
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -1591,7 +1602,7 @@ export declare enum ModCallbackCustom {
|
|
|
1591
1602
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
1592
1603
|
* ```
|
|
1593
1604
|
*/
|
|
1594
|
-
PRE_CUSTOM_REVIVE =
|
|
1605
|
+
PRE_CUSTOM_REVIVE = 95,
|
|
1595
1606
|
/**
|
|
1596
1607
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
1597
1608
|
* meets all of the conditions to pick it up.
|
|
@@ -1611,7 +1622,7 @@ export declare enum ModCallbackCustom {
|
|
|
1611
1622
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
1612
1623
|
* ```
|
|
1613
1624
|
*/
|
|
1614
|
-
PRE_GET_PEDESTAL =
|
|
1625
|
+
PRE_GET_PEDESTAL = 96,
|
|
1615
1626
|
/**
|
|
1616
1627
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
1617
1628
|
* the player begins to hold the item above their head).
|
|
@@ -1631,7 +1642,7 @@ export declare enum ModCallbackCustom {
|
|
|
1631
1642
|
* ): void {}
|
|
1632
1643
|
* ```
|
|
1633
1644
|
*/
|
|
1634
|
-
PRE_ITEM_PICKUP =
|
|
1645
|
+
PRE_ITEM_PICKUP = 97,
|
|
1635
1646
|
/**
|
|
1636
1647
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
1637
1648
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -1645,7 +1656,7 @@ export declare enum ModCallbackCustom {
|
|
|
1645
1656
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
1646
1657
|
* ```
|
|
1647
1658
|
*/
|
|
1648
|
-
PRE_NEW_LEVEL =
|
|
1659
|
+
PRE_NEW_LEVEL = 98,
|
|
1649
1660
|
/**
|
|
1650
1661
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
1651
1662
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1658,7 +1669,7 @@ export declare enum ModCallbackCustom {
|
|
|
1658
1669
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
1659
1670
|
* matches the sub-type provided.
|
|
1660
1671
|
*/
|
|
1661
|
-
PRE_NPC_COLLISION_FILTER =
|
|
1672
|
+
PRE_NPC_COLLISION_FILTER = 99,
|
|
1662
1673
|
/**
|
|
1663
1674
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
1664
1675
|
* to specify extra arguments for additional filtration.
|
|
@@ -1671,6 +1682,6 @@ export declare enum ModCallbackCustom {
|
|
|
1671
1682
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
1672
1683
|
* matches the sub-type provided.
|
|
1673
1684
|
*/
|
|
1674
|
-
PRE_NPC_UPDATE_FILTER =
|
|
1685
|
+
PRE_NPC_UPDATE_FILTER = 100
|
|
1675
1686
|
}
|
|
1676
1687
|
//# sourceMappingURL=ModCallbackCustom.d.ts.map
|