isaacscript-common 3.6.0 → 3.9.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/callbacks/postAmbush.d.ts +1 -0
- package/callbacks/postAmbush.lua +56 -0
- package/callbacks/postBombDetonated.d.ts +1 -0
- package/callbacks/postBombDetonated.lua +33 -0
- package/callbacks/subscriptions/postAmbushFinished.d.ts +5 -0
- package/callbacks/subscriptions/postAmbushFinished.lua +29 -0
- package/callbacks/subscriptions/postAmbushStarted.d.ts +5 -0
- package/callbacks/subscriptions/postAmbushStarted.lua +29 -0
- package/callbacks/subscriptions/postBoneDetonated.d.ts +5 -0
- package/callbacks/subscriptions/postBoneDetonated.lua +29 -0
- package/constants.d.ts +4 -0
- package/constants.lua +4 -0
- package/enums/AmbushType.d.ts +4 -0
- package/enums/AmbushType.lua +7 -0
- package/enums/ModCallbackCustom.d.ts +113 -78
- package/enums/ModCallbackCustom.lua +84 -78
- package/initCustomCallbacks.lua +6 -0
- package/interfaces/AddCallbackParameterCustom.d.ts +6 -0
- package/lualib_bundle.lua +4 -6
- package/objects/callbackRegisterFunctions.lua +9 -0
- package/package.json +1 -1
|
@@ -7,6 +7,41 @@
|
|
|
7
7
|
* - You must upgrade your mod with the `upgradeMod` helper function before using a custom callback.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum ModCallbackCustom {
|
|
10
|
+
/**
|
|
11
|
+
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
|
|
12
|
+
* Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
|
|
13
|
+
*
|
|
14
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
15
|
+
* only fire if for the `AmbushType` provided.
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* function postAmbushFinished(ambushType: AmbushType): void {}
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
POST_AMBUSH_FINISHED = 0,
|
|
22
|
+
/**
|
|
23
|
+
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
|
|
24
|
+
* Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
|
|
25
|
+
*
|
|
26
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
27
|
+
* only fire if for the `AmbushType` provided.
|
|
28
|
+
*
|
|
29
|
+
* ```ts
|
|
30
|
+
* function postAmbushStarted(ambushType: AmbushType): void {}
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
POST_AMBUSH_STARTED = 1,
|
|
34
|
+
/**
|
|
35
|
+
* Fires on the `POST_BOMB_UPDATE` callback that it explodes.
|
|
36
|
+
*
|
|
37
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
38
|
+
* only fire if the bomb variant matches the `BombVariant` provided.
|
|
39
|
+
*
|
|
40
|
+
* ```ts
|
|
41
|
+
* function postBombDetonated(bomb: EntityBomb): void {}
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
POST_BOMB_DETONATED = 2,
|
|
10
45
|
/**
|
|
11
46
|
* Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
|
|
12
47
|
*
|
|
@@ -20,7 +55,7 @@ export declare enum ModCallbackCustom {
|
|
|
20
55
|
* function postBombInitLate(bomb: EntityBomb): void {}
|
|
21
56
|
* ```
|
|
22
57
|
*/
|
|
23
|
-
POST_BOMB_INIT_LATE =
|
|
58
|
+
POST_BOMB_INIT_LATE = 3,
|
|
24
59
|
/**
|
|
25
60
|
* Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
|
|
26
61
|
*
|
|
@@ -28,7 +63,7 @@ export declare enum ModCallbackCustom {
|
|
|
28
63
|
* function postBoneSwing(boneClub: EntityKnife): void {}
|
|
29
64
|
* ```
|
|
30
65
|
*/
|
|
31
|
-
POST_BONE_SWING =
|
|
66
|
+
POST_BONE_SWING = 4,
|
|
32
67
|
/**
|
|
33
68
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
34
69
|
* respective collectible on the run. For more details on how this is calculated, see the
|
|
@@ -45,7 +80,7 @@ export declare enum ModCallbackCustom {
|
|
|
45
80
|
* function postCollectibleInitLate(collectible: EntityPickup): void {}
|
|
46
81
|
* ```
|
|
47
82
|
*/
|
|
48
|
-
POST_COLLECTIBLE_INIT_FIRST =
|
|
83
|
+
POST_COLLECTIBLE_INIT_FIRST = 5,
|
|
49
84
|
/**
|
|
50
85
|
* Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
|
|
51
86
|
* begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
|
|
@@ -55,7 +90,7 @@ export declare enum ModCallbackCustom {
|
|
|
55
90
|
* function postCursedTeleport(player: EntityPlayer): void {}
|
|
56
91
|
* ```
|
|
57
92
|
*/
|
|
58
|
-
POST_CURSED_TELEPORT =
|
|
93
|
+
POST_CURSED_TELEPORT = 6,
|
|
59
94
|
/**
|
|
60
95
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player enters the loading zone of a custom
|
|
61
96
|
* door created with the `spawnCustomDoor` helper function.
|
|
@@ -72,7 +107,7 @@ export declare enum ModCallbackCustom {
|
|
|
72
107
|
* ): void {}
|
|
73
108
|
* ```
|
|
74
109
|
*/
|
|
75
|
-
POST_CUSTOM_DOOR_ENTER =
|
|
110
|
+
POST_CUSTOM_DOOR_ENTER = 7,
|
|
76
111
|
/**
|
|
77
112
|
* Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
|
|
78
113
|
* has teleported to the previous room, and is ready to play the animation for the modded revival
|
|
@@ -89,7 +124,7 @@ export declare enum ModCallbackCustom {
|
|
|
89
124
|
* function postCustomRevive(player: EntityPlayer, revivalType: int) {}
|
|
90
125
|
* ```
|
|
91
126
|
*/
|
|
92
|
-
POST_CUSTOM_REVIVE =
|
|
127
|
+
POST_CUSTOM_REVIVE = 8,
|
|
93
128
|
/**
|
|
94
129
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
95
130
|
*
|
|
@@ -100,7 +135,7 @@ export declare enum ModCallbackCustom {
|
|
|
100
135
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
101
136
|
* ```
|
|
102
137
|
*/
|
|
103
|
-
POST_DOOR_RENDER =
|
|
138
|
+
POST_DOOR_RENDER = 9,
|
|
104
139
|
/**
|
|
105
140
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
106
141
|
*
|
|
@@ -111,7 +146,7 @@ export declare enum ModCallbackCustom {
|
|
|
111
146
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
112
147
|
* ```
|
|
113
148
|
*/
|
|
114
|
-
POST_DOOR_UPDATE =
|
|
149
|
+
POST_DOOR_UPDATE = 10,
|
|
115
150
|
/**
|
|
116
151
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
117
152
|
*
|
|
@@ -125,7 +160,7 @@ export declare enum ModCallbackCustom {
|
|
|
125
160
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
126
161
|
* ```
|
|
127
162
|
*/
|
|
128
|
-
POST_EFFECT_INIT_LATE =
|
|
163
|
+
POST_EFFECT_INIT_LATE = 11,
|
|
129
164
|
/**
|
|
130
165
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
131
166
|
* was on the previous frame.
|
|
@@ -141,7 +176,7 @@ export declare enum ModCallbackCustom {
|
|
|
141
176
|
* ): void {}
|
|
142
177
|
* ```
|
|
143
178
|
*/
|
|
144
|
-
POST_EFFECT_STATE_CHANGED =
|
|
179
|
+
POST_EFFECT_STATE_CHANGED = 12,
|
|
145
180
|
/**
|
|
146
181
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
147
182
|
* updated to the new character until a game frame has passed.)
|
|
@@ -150,7 +185,7 @@ export declare enum ModCallbackCustom {
|
|
|
150
185
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
151
186
|
* ```
|
|
152
187
|
*/
|
|
153
|
-
POST_ESAU_JR =
|
|
188
|
+
POST_ESAU_JR = 13,
|
|
154
189
|
/**
|
|
155
190
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
156
191
|
*
|
|
@@ -164,7 +199,7 @@ export declare enum ModCallbackCustom {
|
|
|
164
199
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
165
200
|
* ```
|
|
166
201
|
*/
|
|
167
|
-
POST_FAMILIAR_INIT_LATE =
|
|
202
|
+
POST_FAMILIAR_INIT_LATE = 14,
|
|
168
203
|
/**
|
|
169
204
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
170
205
|
* was on the previous frame.
|
|
@@ -180,7 +215,7 @@ export declare enum ModCallbackCustom {
|
|
|
180
215
|
* ): void {}
|
|
181
216
|
* ```
|
|
182
217
|
*/
|
|
183
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
218
|
+
POST_FAMILIAR_STATE_CHANGED = 15,
|
|
184
219
|
/**
|
|
185
220
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
186
221
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -192,7 +227,7 @@ export declare enum ModCallbackCustom {
|
|
|
192
227
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
193
228
|
* ```
|
|
194
229
|
*/
|
|
195
|
-
POST_FIRST_ESAU_JR =
|
|
230
|
+
POST_FIRST_ESAU_JR = 16,
|
|
196
231
|
/**
|
|
197
232
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
198
233
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -205,7 +240,7 @@ export declare enum ModCallbackCustom {
|
|
|
205
240
|
* function postFirstFlip(player: EntityPlayer): void {}
|
|
206
241
|
* ```
|
|
207
242
|
*/
|
|
208
|
-
POST_FIRST_FLIP =
|
|
243
|
+
POST_FIRST_FLIP = 17,
|
|
209
244
|
/**
|
|
210
245
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
211
246
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -218,7 +253,7 @@ export declare enum ModCallbackCustom {
|
|
|
218
253
|
* function postFlip(player: EntityPlayer): void {}
|
|
219
254
|
* ```
|
|
220
255
|
*/
|
|
221
|
-
POST_FLIP =
|
|
256
|
+
POST_FLIP = 18,
|
|
222
257
|
/**
|
|
223
258
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
224
259
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -229,7 +264,7 @@ export declare enum ModCallbackCustom {
|
|
|
229
264
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
230
265
|
* ```
|
|
231
266
|
*/
|
|
232
|
-
POST_GAME_STARTED_REORDERED =
|
|
267
|
+
POST_GAME_STARTED_REORDERED = 19,
|
|
233
268
|
/**
|
|
234
269
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
235
270
|
*
|
|
@@ -237,7 +272,7 @@ export declare enum ModCallbackCustom {
|
|
|
237
272
|
* function postGreedModeWave(oldWave: int, newWave: int) {}
|
|
238
273
|
* ```
|
|
239
274
|
*/
|
|
240
|
-
POST_GREED_MODE_WAVE =
|
|
275
|
+
POST_GREED_MODE_WAVE = 20,
|
|
241
276
|
/**
|
|
242
277
|
* Fires from the `POST_UPDATE` update when a grid entity changes to a state that corresponds to
|
|
243
278
|
* the broken state for the respective grid entity type.
|
|
@@ -249,7 +284,7 @@ export declare enum ModCallbackCustom {
|
|
|
249
284
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
250
285
|
* ```
|
|
251
286
|
*/
|
|
252
|
-
POST_GRID_ENTITY_BROKEN =
|
|
287
|
+
POST_GRID_ENTITY_BROKEN = 21,
|
|
253
288
|
/**
|
|
254
289
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity.
|
|
255
290
|
*
|
|
@@ -263,7 +298,7 @@ export declare enum ModCallbackCustom {
|
|
|
263
298
|
* ): void {}
|
|
264
299
|
* ```
|
|
265
300
|
*/
|
|
266
|
-
POST_GRID_ENTITY_COLLISION =
|
|
301
|
+
POST_GRID_ENTITY_COLLISION = 22,
|
|
267
302
|
/**
|
|
268
303
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
269
304
|
*
|
|
@@ -279,7 +314,7 @@ export declare enum ModCallbackCustom {
|
|
|
279
314
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
280
315
|
* ```
|
|
281
316
|
*/
|
|
282
|
-
POST_GRID_ENTITY_INIT =
|
|
317
|
+
POST_GRID_ENTITY_INIT = 23,
|
|
283
318
|
/**
|
|
284
319
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
285
320
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -294,7 +329,7 @@ export declare enum ModCallbackCustom {
|
|
|
294
329
|
* ): void {}
|
|
295
330
|
* ```
|
|
296
331
|
*/
|
|
297
|
-
POST_GRID_ENTITY_REMOVE =
|
|
332
|
+
POST_GRID_ENTITY_REMOVE = 24,
|
|
298
333
|
/**
|
|
299
334
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
300
335
|
*
|
|
@@ -307,7 +342,7 @@ export declare enum ModCallbackCustom {
|
|
|
307
342
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
308
343
|
* ```
|
|
309
344
|
*/
|
|
310
|
-
POST_GRID_ENTITY_RENDER =
|
|
345
|
+
POST_GRID_ENTITY_RENDER = 25,
|
|
311
346
|
/**
|
|
312
347
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state.
|
|
313
348
|
*
|
|
@@ -322,7 +357,7 @@ export declare enum ModCallbackCustom {
|
|
|
322
357
|
* ): void {}
|
|
323
358
|
* ```
|
|
324
359
|
*/
|
|
325
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
360
|
+
POST_GRID_ENTITY_STATE_CHANGED = 26,
|
|
326
361
|
/**
|
|
327
362
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
328
363
|
*
|
|
@@ -335,7 +370,7 @@ export declare enum ModCallbackCustom {
|
|
|
335
370
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
336
371
|
* ```
|
|
337
372
|
*/
|
|
338
|
-
POST_GRID_ENTITY_UPDATE =
|
|
373
|
+
POST_GRID_ENTITY_UPDATE = 27,
|
|
339
374
|
/**
|
|
340
375
|
* Fires from the `POST_PEFFECT_UPDATE` callback when the player loses a Holy Mantle temporary
|
|
341
376
|
* collectible effect.
|
|
@@ -357,7 +392,7 @@ export declare enum ModCallbackCustom {
|
|
|
357
392
|
* ): void {}
|
|
358
393
|
* ```
|
|
359
394
|
*/
|
|
360
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
395
|
+
POST_HOLY_MANTLE_REMOVED = 28,
|
|
361
396
|
/**
|
|
362
397
|
* Fires from `POST_PEFFECT_UPDATE` callback when the player loses charge on their active
|
|
363
398
|
* collectible item, implying that the item was just used.
|
|
@@ -379,7 +414,7 @@ export declare enum ModCallbackCustom {
|
|
|
379
414
|
* ): void {}
|
|
380
415
|
* ```
|
|
381
416
|
*/
|
|
382
|
-
POST_ITEM_DISCHARGE =
|
|
417
|
+
POST_ITEM_DISCHARGE = 29,
|
|
383
418
|
/**
|
|
384
419
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item is no longer queued (i.e. when the
|
|
385
420
|
* animation of the player holding the item above their head is finished and the item is actually
|
|
@@ -399,7 +434,7 @@ export declare enum ModCallbackCustom {
|
|
|
399
434
|
* ): void {}
|
|
400
435
|
* ```
|
|
401
436
|
*/
|
|
402
|
-
POST_ITEM_PICKUP =
|
|
437
|
+
POST_ITEM_PICKUP = 30,
|
|
403
438
|
/**
|
|
404
439
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
405
440
|
*
|
|
@@ -413,7 +448,7 @@ export declare enum ModCallbackCustom {
|
|
|
413
448
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
414
449
|
* ```
|
|
415
450
|
*/
|
|
416
|
-
POST_KNIFE_INIT_LATE =
|
|
451
|
+
POST_KNIFE_INIT_LATE = 31,
|
|
417
452
|
/**
|
|
418
453
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
419
454
|
*
|
|
@@ -427,7 +462,7 @@ export declare enum ModCallbackCustom {
|
|
|
427
462
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
428
463
|
* ```
|
|
429
464
|
*/
|
|
430
|
-
POST_LASER_INIT_LATE =
|
|
465
|
+
POST_LASER_INIT_LATE = 32,
|
|
431
466
|
/**
|
|
432
467
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
433
468
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -444,7 +479,7 @@ export declare enum ModCallbackCustom {
|
|
|
444
479
|
* function postNewLevelReordered(): void {}
|
|
445
480
|
* ```
|
|
446
481
|
*/
|
|
447
|
-
POST_NEW_LEVEL_REORDERED =
|
|
482
|
+
POST_NEW_LEVEL_REORDERED = 33,
|
|
448
483
|
/**
|
|
449
484
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
450
485
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -455,7 +490,7 @@ export declare enum ModCallbackCustom {
|
|
|
455
490
|
* function postNewRoomEarly(): void {}
|
|
456
491
|
* ```
|
|
457
492
|
*/
|
|
458
|
-
POST_NEW_ROOM_EARLY =
|
|
493
|
+
POST_NEW_ROOM_EARLY = 34,
|
|
459
494
|
/**
|
|
460
495
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
461
496
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -472,7 +507,7 @@ export declare enum ModCallbackCustom {
|
|
|
472
507
|
* function postNewRoomReordered(): void {}
|
|
473
508
|
* ```
|
|
474
509
|
*/
|
|
475
|
-
POST_NEW_ROOM_REORDERED =
|
|
510
|
+
POST_NEW_ROOM_REORDERED = 35,
|
|
476
511
|
/**
|
|
477
512
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
478
513
|
*
|
|
@@ -486,7 +521,7 @@ export declare enum ModCallbackCustom {
|
|
|
486
521
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
487
522
|
* ```
|
|
488
523
|
*/
|
|
489
|
-
POST_NPC_INIT_LATE =
|
|
524
|
+
POST_NPC_INIT_LATE = 36,
|
|
490
525
|
/**
|
|
491
526
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
492
527
|
* the previous frame.
|
|
@@ -504,7 +539,7 @@ export declare enum ModCallbackCustom {
|
|
|
504
539
|
* ): void {}
|
|
505
540
|
* ```
|
|
506
541
|
*/
|
|
507
|
-
POST_NPC_STATE_CHANGED =
|
|
542
|
+
POST_NPC_STATE_CHANGED = 37,
|
|
508
543
|
/**
|
|
509
544
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
510
545
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -527,7 +562,7 @@ export declare enum ModCallbackCustom {
|
|
|
527
562
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
528
563
|
* ```
|
|
529
564
|
*/
|
|
530
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
565
|
+
POST_PEFFECT_UPDATE_REORDERED = 38,
|
|
531
566
|
/**
|
|
532
567
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
533
568
|
*
|
|
@@ -540,7 +575,7 @@ export declare enum ModCallbackCustom {
|
|
|
540
575
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
541
576
|
* ```
|
|
542
577
|
*/
|
|
543
|
-
POST_PICKUP_COLLECT =
|
|
578
|
+
POST_PICKUP_COLLECT = 39,
|
|
544
579
|
/**
|
|
545
580
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
546
581
|
* respective pickup on the run.
|
|
@@ -562,7 +597,7 @@ export declare enum ModCallbackCustom {
|
|
|
562
597
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
563
598
|
* ```
|
|
564
599
|
*/
|
|
565
|
-
POST_PICKUP_INIT_FIRST =
|
|
600
|
+
POST_PICKUP_INIT_FIRST = 40,
|
|
566
601
|
/**
|
|
567
602
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
568
603
|
*
|
|
@@ -576,7 +611,7 @@ export declare enum ModCallbackCustom {
|
|
|
576
611
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
577
612
|
* ```
|
|
578
613
|
*/
|
|
579
|
-
POST_PICKUP_INIT_LATE =
|
|
614
|
+
POST_PICKUP_INIT_LATE = 41,
|
|
580
615
|
/**
|
|
581
616
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
582
617
|
* on the previous frame.
|
|
@@ -592,7 +627,7 @@ export declare enum ModCallbackCustom {
|
|
|
592
627
|
* ): void {}
|
|
593
628
|
* ```
|
|
594
629
|
*/
|
|
595
|
-
POST_PICKUP_STATE_CHANGED =
|
|
630
|
+
POST_PICKUP_STATE_CHANGED = 42,
|
|
596
631
|
/**
|
|
597
632
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
598
633
|
*
|
|
@@ -603,7 +638,7 @@ export declare enum ModCallbackCustom {
|
|
|
603
638
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
604
639
|
* ```
|
|
605
640
|
*/
|
|
606
|
-
POST_PIT_RENDER =
|
|
641
|
+
POST_PIT_RENDER = 43,
|
|
607
642
|
/**
|
|
608
643
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
609
644
|
*
|
|
@@ -614,7 +649,7 @@ export declare enum ModCallbackCustom {
|
|
|
614
649
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
615
650
|
* ```
|
|
616
651
|
*/
|
|
617
|
-
POST_PIT_UPDATE =
|
|
652
|
+
POST_PIT_UPDATE = 44,
|
|
618
653
|
/**
|
|
619
654
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity gains or loses any health
|
|
620
655
|
* (i.e. hearts). For more information, see the `PlayerHealth` enum.
|
|
@@ -632,7 +667,7 @@ export declare enum ModCallbackCustom {
|
|
|
632
667
|
* ) {}
|
|
633
668
|
* ```
|
|
634
669
|
*/
|
|
635
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
670
|
+
POST_PLAYER_CHANGE_HEALTH = 45,
|
|
636
671
|
/**
|
|
637
672
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity changes its player type
|
|
638
673
|
* (i.e. character). For example, it will fire after using Clicker, after dying with the Judas'
|
|
@@ -650,7 +685,7 @@ export declare enum ModCallbackCustom {
|
|
|
650
685
|
* ) {}
|
|
651
686
|
* ```
|
|
652
687
|
*/
|
|
653
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
688
|
+
POST_PLAYER_CHANGE_TYPE = 46,
|
|
654
689
|
/**
|
|
655
690
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is higher than
|
|
656
691
|
* what it was on the previous frame.
|
|
@@ -664,7 +699,7 @@ export declare enum ModCallbackCustom {
|
|
|
664
699
|
* function postPlayerCollectibleAdded(player: EntityPlayer, collectibleType: CollectibleType) {}
|
|
665
700
|
* ```
|
|
666
701
|
*/
|
|
667
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
702
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 47,
|
|
668
703
|
/**
|
|
669
704
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is lower than
|
|
670
705
|
* what it was on the previous frame.
|
|
@@ -681,7 +716,7 @@ export declare enum ModCallbackCustom {
|
|
|
681
716
|
* ) {}
|
|
682
717
|
* ```
|
|
683
718
|
*/
|
|
684
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
719
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 48,
|
|
685
720
|
/**
|
|
686
721
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
687
722
|
* prevent the fatal damage.
|
|
@@ -698,7 +733,7 @@ export declare enum ModCallbackCustom {
|
|
|
698
733
|
* function postPlayerFatalDamage(player: EntityPlayer) {}
|
|
699
734
|
* ```
|
|
700
735
|
*/
|
|
701
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
736
|
+
POST_PLAYER_FATAL_DAMAGE = 49,
|
|
702
737
|
/**
|
|
703
738
|
* Fires on the first `POST_PLAYER_UPDATE` frame for each player.
|
|
704
739
|
*
|
|
@@ -714,7 +749,7 @@ export declare enum ModCallbackCustom {
|
|
|
714
749
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
715
750
|
* ```
|
|
716
751
|
*/
|
|
717
|
-
POST_PLAYER_INIT_LATE =
|
|
752
|
+
POST_PLAYER_INIT_LATE = 50,
|
|
718
753
|
/**
|
|
719
754
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
720
755
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -736,7 +771,7 @@ export declare enum ModCallbackCustom {
|
|
|
736
771
|
* function postPlayerInitReordered(player: EntityPlayer): void {}
|
|
737
772
|
* ```
|
|
738
773
|
*/
|
|
739
|
-
POST_PLAYER_INIT_REORDERED =
|
|
774
|
+
POST_PLAYER_INIT_REORDERED = 51,
|
|
740
775
|
/**
|
|
741
776
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
742
777
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -759,7 +794,7 @@ export declare enum ModCallbackCustom {
|
|
|
759
794
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
760
795
|
* ```
|
|
761
796
|
*/
|
|
762
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
797
|
+
POST_PLAYER_RENDER_REORDERED = 52,
|
|
763
798
|
/**
|
|
764
799
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
765
800
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -782,7 +817,7 @@ export declare enum ModCallbackCustom {
|
|
|
782
817
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
783
818
|
* ```
|
|
784
819
|
*/
|
|
785
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
820
|
+
POST_PLAYER_UPDATE_REORDERED = 53,
|
|
786
821
|
/**
|
|
787
822
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
788
823
|
*
|
|
@@ -793,7 +828,7 @@ export declare enum ModCallbackCustom {
|
|
|
793
828
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
794
829
|
* ```
|
|
795
830
|
*/
|
|
796
|
-
POST_POOP_RENDER =
|
|
831
|
+
POST_POOP_RENDER = 54,
|
|
797
832
|
/**
|
|
798
833
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
799
834
|
*
|
|
@@ -804,7 +839,7 @@ export declare enum ModCallbackCustom {
|
|
|
804
839
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
805
840
|
* ```
|
|
806
841
|
*/
|
|
807
|
-
POST_POOP_UPDATE =
|
|
842
|
+
POST_POOP_UPDATE = 55,
|
|
808
843
|
/**
|
|
809
844
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
810
845
|
*
|
|
@@ -815,7 +850,7 @@ export declare enum ModCallbackCustom {
|
|
|
815
850
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
816
851
|
* ```
|
|
817
852
|
*/
|
|
818
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
853
|
+
POST_PRESSURE_PLATE_RENDER = 56,
|
|
819
854
|
/**
|
|
820
855
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
821
856
|
*
|
|
@@ -826,7 +861,7 @@ export declare enum ModCallbackCustom {
|
|
|
826
861
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
827
862
|
* ```
|
|
828
863
|
*/
|
|
829
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
864
|
+
POST_PRESSURE_PLATE_UPDATE = 57,
|
|
830
865
|
/**
|
|
831
866
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
832
867
|
*
|
|
@@ -840,7 +875,7 @@ export declare enum ModCallbackCustom {
|
|
|
840
875
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
841
876
|
* ```
|
|
842
877
|
*/
|
|
843
|
-
POST_PROJECTILE_INIT_LATE =
|
|
878
|
+
POST_PROJECTILE_INIT_LATE = 58,
|
|
844
879
|
/**
|
|
845
880
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player first picks up a new item. The
|
|
846
881
|
* pickup returned in the callback is assumed to be the first pickup that no longer exists.
|
|
@@ -854,7 +889,7 @@ export declare enum ModCallbackCustom {
|
|
|
854
889
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
855
890
|
* ```
|
|
856
891
|
*/
|
|
857
|
-
POST_PURCHASE =
|
|
892
|
+
POST_PURCHASE = 59,
|
|
858
893
|
/**
|
|
859
894
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
860
895
|
*
|
|
@@ -865,7 +900,7 @@ export declare enum ModCallbackCustom {
|
|
|
865
900
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
866
901
|
* ```
|
|
867
902
|
*/
|
|
868
|
-
POST_ROCK_RENDER =
|
|
903
|
+
POST_ROCK_RENDER = 60,
|
|
869
904
|
/**
|
|
870
905
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
871
906
|
*
|
|
@@ -876,7 +911,7 @@ export declare enum ModCallbackCustom {
|
|
|
876
911
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
877
912
|
* ```
|
|
878
913
|
*/
|
|
879
|
-
POST_ROCK_UPDATE =
|
|
914
|
+
POST_ROCK_UPDATE = 61,
|
|
880
915
|
/**
|
|
881
916
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes.
|
|
882
917
|
*
|
|
@@ -887,7 +922,7 @@ export declare enum ModCallbackCustom {
|
|
|
887
922
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
888
923
|
* ```
|
|
889
924
|
*/
|
|
890
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
925
|
+
POST_ROOM_CLEAR_CHANGED = 62,
|
|
891
926
|
/**
|
|
892
927
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
893
928
|
* Room.
|
|
@@ -901,7 +936,7 @@ export declare enum ModCallbackCustom {
|
|
|
901
936
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
902
937
|
* ```
|
|
903
938
|
*/
|
|
904
|
-
POST_SACRIFICE =
|
|
939
|
+
POST_SACRIFICE = 63,
|
|
905
940
|
/**
|
|
906
941
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
907
942
|
*
|
|
@@ -912,7 +947,7 @@ export declare enum ModCallbackCustom {
|
|
|
912
947
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
913
948
|
* ```
|
|
914
949
|
*/
|
|
915
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
950
|
+
POST_SLOT_ANIMATION_CHANGED = 64,
|
|
916
951
|
/**
|
|
917
952
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
918
953
|
* has broken.
|
|
@@ -924,7 +959,7 @@ export declare enum ModCallbackCustom {
|
|
|
924
959
|
* function postSlotDestroyed(slot: Entity): void {}
|
|
925
960
|
* ```
|
|
926
961
|
*/
|
|
927
|
-
POST_SLOT_DESTROYED =
|
|
962
|
+
POST_SLOT_DESTROYED = 65,
|
|
928
963
|
/**
|
|
929
964
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
930
965
|
*
|
|
@@ -940,7 +975,7 @@ export declare enum ModCallbackCustom {
|
|
|
940
975
|
* function postSlotInit(slot: Entity): void {}
|
|
941
976
|
* ```
|
|
942
977
|
*/
|
|
943
|
-
POST_SLOT_INIT =
|
|
978
|
+
POST_SLOT_INIT = 66,
|
|
944
979
|
/**
|
|
945
980
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
946
981
|
*
|
|
@@ -951,7 +986,7 @@ export declare enum ModCallbackCustom {
|
|
|
951
986
|
* function postSlotRender(slot: Entity): void {}
|
|
952
987
|
* ```
|
|
953
988
|
*/
|
|
954
|
-
POST_SLOT_RENDER =
|
|
989
|
+
POST_SLOT_RENDER = 67,
|
|
955
990
|
/**
|
|
956
991
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
957
992
|
*
|
|
@@ -962,7 +997,7 @@ export declare enum ModCallbackCustom {
|
|
|
962
997
|
* function postSlotUpdate(slot: Entity): void {}
|
|
963
998
|
* ```
|
|
964
999
|
*/
|
|
965
|
-
POST_SLOT_UPDATE =
|
|
1000
|
+
POST_SLOT_UPDATE = 68,
|
|
966
1001
|
/**
|
|
967
1002
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
968
1003
|
*
|
|
@@ -973,7 +1008,7 @@ export declare enum ModCallbackCustom {
|
|
|
973
1008
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
974
1009
|
* ```
|
|
975
1010
|
*/
|
|
976
|
-
POST_SPIKES_RENDER =
|
|
1011
|
+
POST_SPIKES_RENDER = 69,
|
|
977
1012
|
/**
|
|
978
1013
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
979
1014
|
*
|
|
@@ -984,7 +1019,7 @@ export declare enum ModCallbackCustom {
|
|
|
984
1019
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
985
1020
|
* ```
|
|
986
1021
|
*/
|
|
987
|
-
POST_SPIKES_UPDATE =
|
|
1022
|
+
POST_SPIKES_UPDATE = 70,
|
|
988
1023
|
/**
|
|
989
1024
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
990
1025
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -999,7 +1034,7 @@ export declare enum ModCallbackCustom {
|
|
|
999
1034
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
1000
1035
|
* ```
|
|
1001
1036
|
*/
|
|
1002
|
-
POST_TEAR_INIT_LATE =
|
|
1037
|
+
POST_TEAR_INIT_LATE = 71,
|
|
1003
1038
|
/**
|
|
1004
1039
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1005
1040
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -1013,7 +1048,7 @@ export declare enum ModCallbackCustom {
|
|
|
1013
1048
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
1014
1049
|
* ```
|
|
1015
1050
|
*/
|
|
1016
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
1051
|
+
POST_TEAR_INIT_VERY_LATE = 72,
|
|
1017
1052
|
/**
|
|
1018
1053
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
1019
1054
|
*
|
|
@@ -1024,7 +1059,7 @@ export declare enum ModCallbackCustom {
|
|
|
1024
1059
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
1025
1060
|
* ```
|
|
1026
1061
|
*/
|
|
1027
|
-
POST_TNT_RENDER =
|
|
1062
|
+
POST_TNT_RENDER = 73,
|
|
1028
1063
|
/**
|
|
1029
1064
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
1030
1065
|
*
|
|
@@ -1035,7 +1070,7 @@ export declare enum ModCallbackCustom {
|
|
|
1035
1070
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
1036
1071
|
* ```
|
|
1037
1072
|
*/
|
|
1038
|
-
POST_TNT_UPDATE =
|
|
1073
|
+
POST_TNT_UPDATE = 74,
|
|
1039
1074
|
/**
|
|
1040
1075
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player gains or loses a new
|
|
1041
1076
|
* transformation.
|
|
@@ -1053,7 +1088,7 @@ export declare enum ModCallbackCustom {
|
|
|
1053
1088
|
* ): void {}
|
|
1054
1089
|
* ```
|
|
1055
1090
|
*/
|
|
1056
|
-
POST_TRANSFORMATION =
|
|
1091
|
+
POST_TRANSFORMATION = 75,
|
|
1057
1092
|
/**
|
|
1058
1093
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
1059
1094
|
*
|
|
@@ -1067,7 +1102,7 @@ export declare enum ModCallbackCustom {
|
|
|
1067
1102
|
* ): void {}
|
|
1068
1103
|
* ```
|
|
1069
1104
|
*/
|
|
1070
|
-
POST_TRINKET_BREAK =
|
|
1105
|
+
POST_TRINKET_BREAK = 76,
|
|
1071
1106
|
/**
|
|
1072
1107
|
* Fires from the `POST_PEFFECT_UPDATE` callback on the frame before a Berserk effect ends when
|
|
1073
1108
|
* the player is predicted to die (e.g. they currently have no health left or they took damage in
|
|
@@ -1082,7 +1117,7 @@ export declare enum ModCallbackCustom {
|
|
|
1082
1117
|
* function preBerserkDeath(player: EntityPlayer) {}
|
|
1083
1118
|
* ```
|
|
1084
1119
|
*/
|
|
1085
|
-
PRE_BERSERK_DEATH =
|
|
1120
|
+
PRE_BERSERK_DEATH = 77,
|
|
1086
1121
|
/**
|
|
1087
1122
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
1088
1123
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -1100,7 +1135,7 @@ export declare enum ModCallbackCustom {
|
|
|
1100
1135
|
* function preCustomRevive(player: EntityPlayer) {}
|
|
1101
1136
|
* ```
|
|
1102
1137
|
*/
|
|
1103
|
-
PRE_CUSTOM_REVIVE =
|
|
1138
|
+
PRE_CUSTOM_REVIVE = 78,
|
|
1104
1139
|
/**
|
|
1105
1140
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item becomes queued (i.e. when the player
|
|
1106
1141
|
* begins to hold the item above their head).
|
|
@@ -1119,7 +1154,7 @@ export declare enum ModCallbackCustom {
|
|
|
1119
1154
|
* ): void {}
|
|
1120
1155
|
* ```
|
|
1121
1156
|
*/
|
|
1122
|
-
PRE_ITEM_PICKUP =
|
|
1157
|
+
PRE_ITEM_PICKUP = 79,
|
|
1123
1158
|
/**
|
|
1124
1159
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
1125
1160
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -1133,5 +1168,5 @@ export declare enum ModCallbackCustom {
|
|
|
1133
1168
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
1134
1169
|
* ```
|
|
1135
1170
|
*/
|
|
1136
|
-
PRE_NEW_LEVEL =
|
|
1171
|
+
PRE_NEW_LEVEL = 80
|
|
1137
1172
|
}
|