isaacscript-common 3.9.0 → 3.12.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/{postBombDetonated.d.ts → postBombExploded.d.ts} +0 -0
- package/callbacks/postBombExploded.lua +26 -0
- package/callbacks/postBombInitLate.lua +1 -1
- package/callbacks/postBoneSwing.lua +1 -1
- package/callbacks/postCollectibleInitFirst.lua +1 -1
- package/callbacks/postCursedTeleport.lua +1 -1
- package/callbacks/postCustomDoorEnter.lua +1 -1
- package/callbacks/postDiceRoomActivated.d.ts +1 -0
- package/callbacks/postDiceRoomActivated.lua +39 -0
- package/callbacks/postEffectInitLate.lua +1 -1
- package/callbacks/postEffectStateChanged.lua +1 -1
- package/callbacks/postFamiliarInitLate.lua +1 -1
- package/callbacks/postFamiliarStateChanged.lua +1 -1
- package/callbacks/postGreedModeWave.lua +1 -1
- package/callbacks/postHolyMantleRemoved.lua +1 -1
- package/callbacks/postItemDischarged.d.ts +1 -1
- package/callbacks/postItemDischarged.lua +1 -1
- package/callbacks/postKnifeInitLate.lua +1 -1
- package/callbacks/postLaserInitLate.lua +1 -1
- package/callbacks/postNPCInitLate.lua +1 -1
- package/callbacks/postNPCStateChanged.lua +1 -1
- package/callbacks/postPickupCollect.lua +1 -1
- package/callbacks/postPickupInitFirst.lua +1 -1
- package/callbacks/postPickupInitLate.lua +1 -1
- package/callbacks/postPickupStateChanged.lua +1 -1
- package/callbacks/postPlayerChangeHealth.lua +1 -1
- package/callbacks/postPlayerChangeType.lua +1 -1
- package/callbacks/postPlayerCollectible.lua +1 -1
- package/callbacks/postPlayerFatalDamage.lua +1 -1
- package/callbacks/postPlayerInitLate.lua +1 -1
- package/callbacks/postProjectileInitLate.lua +1 -1
- package/callbacks/postPurchase.lua +1 -1
- package/callbacks/postRoomClearChanged.lua +1 -1
- package/callbacks/postSacrifice.lua +1 -1
- package/callbacks/postSlotDestroyed.lua +1 -1
- package/callbacks/postTearInitLate.lua +1 -1
- package/callbacks/postTearInitVeryLate.lua +1 -1
- package/callbacks/postTransformation.lua +1 -1
- package/callbacks/postTrinketBreak.lua +1 -1
- package/callbacks/preBerserkDeath.lua +1 -1
- package/callbacks/preNewLevel.lua +1 -1
- package/callbacks/subscriptions/{postBoneDetonated.d.ts → postBoneExploded.d.ts} +1 -1
- package/callbacks/subscriptions/{postBoneDetonated.lua → postBoneExploded.lua} +3 -3
- package/callbacks/subscriptions/postDiceRoomActivated.d.ts +5 -0
- package/callbacks/subscriptions/postDiceRoomActivated.lua +29 -0
- package/constants.d.ts +2 -0
- package/constants.lua +2 -0
- package/enums/ModCallbackCustom.d.ts +85 -73
- package/enums/ModCallbackCustom.lua +76 -74
- package/functions/entity.d.ts +6 -0
- package/functions/entity.lua +44 -0
- package/functions/log.d.ts +5 -0
- package/functions/log.lua +40 -10
- package/functions/utils.d.ts +1 -0
- package/functions/utils.lua +1 -0
- package/initCustomCallbacks.lua +78 -75
- package/interfaces/AddCallbackParameterCustom.d.ts +4 -2
- package/objects/callbackRegisterFunctions.lua +6 -3
- package/package.json +2 -2
- package/callbacks/postBombDetonated.lua +0 -33
|
@@ -41,7 +41,7 @@ export declare enum ModCallbackCustom {
|
|
|
41
41
|
* function postBombDetonated(bomb: EntityBomb): void {}
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
POST_BOMB_EXPLODED = 2,
|
|
45
45
|
/**
|
|
46
46
|
* Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
|
|
47
47
|
*
|
|
@@ -125,6 +125,18 @@ export declare enum ModCallbackCustom {
|
|
|
125
125
|
* ```
|
|
126
126
|
*/
|
|
127
127
|
POST_CUSTOM_REVIVE = 8,
|
|
128
|
+
/**
|
|
129
|
+
* Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
|
|
130
|
+
* Room floor.
|
|
131
|
+
*
|
|
132
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
133
|
+
* only fire if the `DiceFloorSubType` type matches the one provided.
|
|
134
|
+
*
|
|
135
|
+
* ```ts
|
|
136
|
+
* function postDiceRoomActivated(player: EntityPlayer, diceFloorSubType: DiceFloorSubType) {}
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
POST_DICE_ROOM_ACTIVATED = 9,
|
|
128
140
|
/**
|
|
129
141
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
130
142
|
*
|
|
@@ -135,7 +147,7 @@ export declare enum ModCallbackCustom {
|
|
|
135
147
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
136
148
|
* ```
|
|
137
149
|
*/
|
|
138
|
-
POST_DOOR_RENDER =
|
|
150
|
+
POST_DOOR_RENDER = 10,
|
|
139
151
|
/**
|
|
140
152
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
141
153
|
*
|
|
@@ -146,7 +158,7 @@ export declare enum ModCallbackCustom {
|
|
|
146
158
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
147
159
|
* ```
|
|
148
160
|
*/
|
|
149
|
-
POST_DOOR_UPDATE =
|
|
161
|
+
POST_DOOR_UPDATE = 11,
|
|
150
162
|
/**
|
|
151
163
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
152
164
|
*
|
|
@@ -160,7 +172,7 @@ export declare enum ModCallbackCustom {
|
|
|
160
172
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
161
173
|
* ```
|
|
162
174
|
*/
|
|
163
|
-
POST_EFFECT_INIT_LATE =
|
|
175
|
+
POST_EFFECT_INIT_LATE = 12,
|
|
164
176
|
/**
|
|
165
177
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
166
178
|
* was on the previous frame.
|
|
@@ -176,7 +188,7 @@ export declare enum ModCallbackCustom {
|
|
|
176
188
|
* ): void {}
|
|
177
189
|
* ```
|
|
178
190
|
*/
|
|
179
|
-
POST_EFFECT_STATE_CHANGED =
|
|
191
|
+
POST_EFFECT_STATE_CHANGED = 13,
|
|
180
192
|
/**
|
|
181
193
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
182
194
|
* updated to the new character until a game frame has passed.)
|
|
@@ -185,7 +197,7 @@ export declare enum ModCallbackCustom {
|
|
|
185
197
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
186
198
|
* ```
|
|
187
199
|
*/
|
|
188
|
-
POST_ESAU_JR =
|
|
200
|
+
POST_ESAU_JR = 14,
|
|
189
201
|
/**
|
|
190
202
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
191
203
|
*
|
|
@@ -199,7 +211,7 @@ export declare enum ModCallbackCustom {
|
|
|
199
211
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
200
212
|
* ```
|
|
201
213
|
*/
|
|
202
|
-
POST_FAMILIAR_INIT_LATE =
|
|
214
|
+
POST_FAMILIAR_INIT_LATE = 15,
|
|
203
215
|
/**
|
|
204
216
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
205
217
|
* was on the previous frame.
|
|
@@ -215,7 +227,7 @@ export declare enum ModCallbackCustom {
|
|
|
215
227
|
* ): void {}
|
|
216
228
|
* ```
|
|
217
229
|
*/
|
|
218
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
230
|
+
POST_FAMILIAR_STATE_CHANGED = 16,
|
|
219
231
|
/**
|
|
220
232
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
221
233
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -227,7 +239,7 @@ export declare enum ModCallbackCustom {
|
|
|
227
239
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
228
240
|
* ```
|
|
229
241
|
*/
|
|
230
|
-
POST_FIRST_ESAU_JR =
|
|
242
|
+
POST_FIRST_ESAU_JR = 17,
|
|
231
243
|
/**
|
|
232
244
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
233
245
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -240,7 +252,7 @@ export declare enum ModCallbackCustom {
|
|
|
240
252
|
* function postFirstFlip(player: EntityPlayer): void {}
|
|
241
253
|
* ```
|
|
242
254
|
*/
|
|
243
|
-
POST_FIRST_FLIP =
|
|
255
|
+
POST_FIRST_FLIP = 18,
|
|
244
256
|
/**
|
|
245
257
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
246
258
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -253,7 +265,7 @@ export declare enum ModCallbackCustom {
|
|
|
253
265
|
* function postFlip(player: EntityPlayer): void {}
|
|
254
266
|
* ```
|
|
255
267
|
*/
|
|
256
|
-
POST_FLIP =
|
|
268
|
+
POST_FLIP = 19,
|
|
257
269
|
/**
|
|
258
270
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
259
271
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -264,7 +276,7 @@ export declare enum ModCallbackCustom {
|
|
|
264
276
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
265
277
|
* ```
|
|
266
278
|
*/
|
|
267
|
-
POST_GAME_STARTED_REORDERED =
|
|
279
|
+
POST_GAME_STARTED_REORDERED = 20,
|
|
268
280
|
/**
|
|
269
281
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
270
282
|
*
|
|
@@ -272,7 +284,7 @@ export declare enum ModCallbackCustom {
|
|
|
272
284
|
* function postGreedModeWave(oldWave: int, newWave: int) {}
|
|
273
285
|
* ```
|
|
274
286
|
*/
|
|
275
|
-
POST_GREED_MODE_WAVE =
|
|
287
|
+
POST_GREED_MODE_WAVE = 21,
|
|
276
288
|
/**
|
|
277
289
|
* Fires from the `POST_UPDATE` update when a grid entity changes to a state that corresponds to
|
|
278
290
|
* the broken state for the respective grid entity type.
|
|
@@ -284,7 +296,7 @@ export declare enum ModCallbackCustom {
|
|
|
284
296
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
285
297
|
* ```
|
|
286
298
|
*/
|
|
287
|
-
POST_GRID_ENTITY_BROKEN =
|
|
299
|
+
POST_GRID_ENTITY_BROKEN = 22,
|
|
288
300
|
/**
|
|
289
301
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity.
|
|
290
302
|
*
|
|
@@ -298,7 +310,7 @@ export declare enum ModCallbackCustom {
|
|
|
298
310
|
* ): void {}
|
|
299
311
|
* ```
|
|
300
312
|
*/
|
|
301
|
-
POST_GRID_ENTITY_COLLISION =
|
|
313
|
+
POST_GRID_ENTITY_COLLISION = 23,
|
|
302
314
|
/**
|
|
303
315
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
304
316
|
*
|
|
@@ -314,7 +326,7 @@ export declare enum ModCallbackCustom {
|
|
|
314
326
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
315
327
|
* ```
|
|
316
328
|
*/
|
|
317
|
-
POST_GRID_ENTITY_INIT =
|
|
329
|
+
POST_GRID_ENTITY_INIT = 24,
|
|
318
330
|
/**
|
|
319
331
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
320
332
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -329,7 +341,7 @@ export declare enum ModCallbackCustom {
|
|
|
329
341
|
* ): void {}
|
|
330
342
|
* ```
|
|
331
343
|
*/
|
|
332
|
-
POST_GRID_ENTITY_REMOVE =
|
|
344
|
+
POST_GRID_ENTITY_REMOVE = 25,
|
|
333
345
|
/**
|
|
334
346
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
335
347
|
*
|
|
@@ -342,7 +354,7 @@ export declare enum ModCallbackCustom {
|
|
|
342
354
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
343
355
|
* ```
|
|
344
356
|
*/
|
|
345
|
-
POST_GRID_ENTITY_RENDER =
|
|
357
|
+
POST_GRID_ENTITY_RENDER = 26,
|
|
346
358
|
/**
|
|
347
359
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state.
|
|
348
360
|
*
|
|
@@ -357,7 +369,7 @@ export declare enum ModCallbackCustom {
|
|
|
357
369
|
* ): void {}
|
|
358
370
|
* ```
|
|
359
371
|
*/
|
|
360
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
372
|
+
POST_GRID_ENTITY_STATE_CHANGED = 27,
|
|
361
373
|
/**
|
|
362
374
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
363
375
|
*
|
|
@@ -370,7 +382,7 @@ export declare enum ModCallbackCustom {
|
|
|
370
382
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
371
383
|
* ```
|
|
372
384
|
*/
|
|
373
|
-
POST_GRID_ENTITY_UPDATE =
|
|
385
|
+
POST_GRID_ENTITY_UPDATE = 28,
|
|
374
386
|
/**
|
|
375
387
|
* Fires from the `POST_PEFFECT_UPDATE` callback when the player loses a Holy Mantle temporary
|
|
376
388
|
* collectible effect.
|
|
@@ -392,7 +404,7 @@ export declare enum ModCallbackCustom {
|
|
|
392
404
|
* ): void {}
|
|
393
405
|
* ```
|
|
394
406
|
*/
|
|
395
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
407
|
+
POST_HOLY_MANTLE_REMOVED = 29,
|
|
396
408
|
/**
|
|
397
409
|
* Fires from `POST_PEFFECT_UPDATE` callback when the player loses charge on their active
|
|
398
410
|
* collectible item, implying that the item was just used.
|
|
@@ -414,7 +426,7 @@ export declare enum ModCallbackCustom {
|
|
|
414
426
|
* ): void {}
|
|
415
427
|
* ```
|
|
416
428
|
*/
|
|
417
|
-
POST_ITEM_DISCHARGE =
|
|
429
|
+
POST_ITEM_DISCHARGE = 30,
|
|
418
430
|
/**
|
|
419
431
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item is no longer queued (i.e. when the
|
|
420
432
|
* animation of the player holding the item above their head is finished and the item is actually
|
|
@@ -434,7 +446,7 @@ export declare enum ModCallbackCustom {
|
|
|
434
446
|
* ): void {}
|
|
435
447
|
* ```
|
|
436
448
|
*/
|
|
437
|
-
POST_ITEM_PICKUP =
|
|
449
|
+
POST_ITEM_PICKUP = 31,
|
|
438
450
|
/**
|
|
439
451
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
440
452
|
*
|
|
@@ -448,7 +460,7 @@ export declare enum ModCallbackCustom {
|
|
|
448
460
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
449
461
|
* ```
|
|
450
462
|
*/
|
|
451
|
-
POST_KNIFE_INIT_LATE =
|
|
463
|
+
POST_KNIFE_INIT_LATE = 32,
|
|
452
464
|
/**
|
|
453
465
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
454
466
|
*
|
|
@@ -462,7 +474,7 @@ export declare enum ModCallbackCustom {
|
|
|
462
474
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
463
475
|
* ```
|
|
464
476
|
*/
|
|
465
|
-
POST_LASER_INIT_LATE =
|
|
477
|
+
POST_LASER_INIT_LATE = 33,
|
|
466
478
|
/**
|
|
467
479
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
468
480
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -479,7 +491,7 @@ export declare enum ModCallbackCustom {
|
|
|
479
491
|
* function postNewLevelReordered(): void {}
|
|
480
492
|
* ```
|
|
481
493
|
*/
|
|
482
|
-
POST_NEW_LEVEL_REORDERED =
|
|
494
|
+
POST_NEW_LEVEL_REORDERED = 34,
|
|
483
495
|
/**
|
|
484
496
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
485
497
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -490,7 +502,7 @@ export declare enum ModCallbackCustom {
|
|
|
490
502
|
* function postNewRoomEarly(): void {}
|
|
491
503
|
* ```
|
|
492
504
|
*/
|
|
493
|
-
POST_NEW_ROOM_EARLY =
|
|
505
|
+
POST_NEW_ROOM_EARLY = 35,
|
|
494
506
|
/**
|
|
495
507
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
496
508
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -507,7 +519,7 @@ export declare enum ModCallbackCustom {
|
|
|
507
519
|
* function postNewRoomReordered(): void {}
|
|
508
520
|
* ```
|
|
509
521
|
*/
|
|
510
|
-
POST_NEW_ROOM_REORDERED =
|
|
522
|
+
POST_NEW_ROOM_REORDERED = 36,
|
|
511
523
|
/**
|
|
512
524
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
513
525
|
*
|
|
@@ -521,7 +533,7 @@ export declare enum ModCallbackCustom {
|
|
|
521
533
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
522
534
|
* ```
|
|
523
535
|
*/
|
|
524
|
-
POST_NPC_INIT_LATE =
|
|
536
|
+
POST_NPC_INIT_LATE = 37,
|
|
525
537
|
/**
|
|
526
538
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
527
539
|
* the previous frame.
|
|
@@ -539,7 +551,7 @@ export declare enum ModCallbackCustom {
|
|
|
539
551
|
* ): void {}
|
|
540
552
|
* ```
|
|
541
553
|
*/
|
|
542
|
-
POST_NPC_STATE_CHANGED =
|
|
554
|
+
POST_NPC_STATE_CHANGED = 38,
|
|
543
555
|
/**
|
|
544
556
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
545
557
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -562,7 +574,7 @@ export declare enum ModCallbackCustom {
|
|
|
562
574
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
563
575
|
* ```
|
|
564
576
|
*/
|
|
565
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
577
|
+
POST_PEFFECT_UPDATE_REORDERED = 39,
|
|
566
578
|
/**
|
|
567
579
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
568
580
|
*
|
|
@@ -575,7 +587,7 @@ export declare enum ModCallbackCustom {
|
|
|
575
587
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
576
588
|
* ```
|
|
577
589
|
*/
|
|
578
|
-
POST_PICKUP_COLLECT =
|
|
590
|
+
POST_PICKUP_COLLECT = 40,
|
|
579
591
|
/**
|
|
580
592
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
581
593
|
* respective pickup on the run.
|
|
@@ -597,7 +609,7 @@ export declare enum ModCallbackCustom {
|
|
|
597
609
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
598
610
|
* ```
|
|
599
611
|
*/
|
|
600
|
-
POST_PICKUP_INIT_FIRST =
|
|
612
|
+
POST_PICKUP_INIT_FIRST = 41,
|
|
601
613
|
/**
|
|
602
614
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
603
615
|
*
|
|
@@ -611,7 +623,7 @@ export declare enum ModCallbackCustom {
|
|
|
611
623
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
612
624
|
* ```
|
|
613
625
|
*/
|
|
614
|
-
POST_PICKUP_INIT_LATE =
|
|
626
|
+
POST_PICKUP_INIT_LATE = 42,
|
|
615
627
|
/**
|
|
616
628
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
617
629
|
* on the previous frame.
|
|
@@ -627,7 +639,7 @@ export declare enum ModCallbackCustom {
|
|
|
627
639
|
* ): void {}
|
|
628
640
|
* ```
|
|
629
641
|
*/
|
|
630
|
-
POST_PICKUP_STATE_CHANGED =
|
|
642
|
+
POST_PICKUP_STATE_CHANGED = 43,
|
|
631
643
|
/**
|
|
632
644
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
633
645
|
*
|
|
@@ -638,7 +650,7 @@ export declare enum ModCallbackCustom {
|
|
|
638
650
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
639
651
|
* ```
|
|
640
652
|
*/
|
|
641
|
-
POST_PIT_RENDER =
|
|
653
|
+
POST_PIT_RENDER = 44,
|
|
642
654
|
/**
|
|
643
655
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
644
656
|
*
|
|
@@ -649,7 +661,7 @@ export declare enum ModCallbackCustom {
|
|
|
649
661
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
650
662
|
* ```
|
|
651
663
|
*/
|
|
652
|
-
POST_PIT_UPDATE =
|
|
664
|
+
POST_PIT_UPDATE = 45,
|
|
653
665
|
/**
|
|
654
666
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity gains or loses any health
|
|
655
667
|
* (i.e. hearts). For more information, see the `PlayerHealth` enum.
|
|
@@ -667,7 +679,7 @@ export declare enum ModCallbackCustom {
|
|
|
667
679
|
* ) {}
|
|
668
680
|
* ```
|
|
669
681
|
*/
|
|
670
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
682
|
+
POST_PLAYER_CHANGE_HEALTH = 46,
|
|
671
683
|
/**
|
|
672
684
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity changes its player type
|
|
673
685
|
* (i.e. character). For example, it will fire after using Clicker, after dying with the Judas'
|
|
@@ -685,7 +697,7 @@ export declare enum ModCallbackCustom {
|
|
|
685
697
|
* ) {}
|
|
686
698
|
* ```
|
|
687
699
|
*/
|
|
688
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
700
|
+
POST_PLAYER_CHANGE_TYPE = 47,
|
|
689
701
|
/**
|
|
690
702
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is higher than
|
|
691
703
|
* what it was on the previous frame.
|
|
@@ -699,7 +711,7 @@ export declare enum ModCallbackCustom {
|
|
|
699
711
|
* function postPlayerCollectibleAdded(player: EntityPlayer, collectibleType: CollectibleType) {}
|
|
700
712
|
* ```
|
|
701
713
|
*/
|
|
702
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
714
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 48,
|
|
703
715
|
/**
|
|
704
716
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is lower than
|
|
705
717
|
* what it was on the previous frame.
|
|
@@ -716,7 +728,7 @@ export declare enum ModCallbackCustom {
|
|
|
716
728
|
* ) {}
|
|
717
729
|
* ```
|
|
718
730
|
*/
|
|
719
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
731
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 49,
|
|
720
732
|
/**
|
|
721
733
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
722
734
|
* prevent the fatal damage.
|
|
@@ -733,7 +745,7 @@ export declare enum ModCallbackCustom {
|
|
|
733
745
|
* function postPlayerFatalDamage(player: EntityPlayer) {}
|
|
734
746
|
* ```
|
|
735
747
|
*/
|
|
736
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
748
|
+
POST_PLAYER_FATAL_DAMAGE = 50,
|
|
737
749
|
/**
|
|
738
750
|
* Fires on the first `POST_PLAYER_UPDATE` frame for each player.
|
|
739
751
|
*
|
|
@@ -749,7 +761,7 @@ export declare enum ModCallbackCustom {
|
|
|
749
761
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
750
762
|
* ```
|
|
751
763
|
*/
|
|
752
|
-
POST_PLAYER_INIT_LATE =
|
|
764
|
+
POST_PLAYER_INIT_LATE = 51,
|
|
753
765
|
/**
|
|
754
766
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
755
767
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -771,7 +783,7 @@ export declare enum ModCallbackCustom {
|
|
|
771
783
|
* function postPlayerInitReordered(player: EntityPlayer): void {}
|
|
772
784
|
* ```
|
|
773
785
|
*/
|
|
774
|
-
POST_PLAYER_INIT_REORDERED =
|
|
786
|
+
POST_PLAYER_INIT_REORDERED = 52,
|
|
775
787
|
/**
|
|
776
788
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
777
789
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -794,7 +806,7 @@ export declare enum ModCallbackCustom {
|
|
|
794
806
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
795
807
|
* ```
|
|
796
808
|
*/
|
|
797
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
809
|
+
POST_PLAYER_RENDER_REORDERED = 53,
|
|
798
810
|
/**
|
|
799
811
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
800
812
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -817,7 +829,7 @@ export declare enum ModCallbackCustom {
|
|
|
817
829
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
818
830
|
* ```
|
|
819
831
|
*/
|
|
820
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
832
|
+
POST_PLAYER_UPDATE_REORDERED = 54,
|
|
821
833
|
/**
|
|
822
834
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
823
835
|
*
|
|
@@ -828,7 +840,7 @@ export declare enum ModCallbackCustom {
|
|
|
828
840
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
829
841
|
* ```
|
|
830
842
|
*/
|
|
831
|
-
POST_POOP_RENDER =
|
|
843
|
+
POST_POOP_RENDER = 55,
|
|
832
844
|
/**
|
|
833
845
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
834
846
|
*
|
|
@@ -839,7 +851,7 @@ export declare enum ModCallbackCustom {
|
|
|
839
851
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
840
852
|
* ```
|
|
841
853
|
*/
|
|
842
|
-
POST_POOP_UPDATE =
|
|
854
|
+
POST_POOP_UPDATE = 56,
|
|
843
855
|
/**
|
|
844
856
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
845
857
|
*
|
|
@@ -850,7 +862,7 @@ export declare enum ModCallbackCustom {
|
|
|
850
862
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
851
863
|
* ```
|
|
852
864
|
*/
|
|
853
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
865
|
+
POST_PRESSURE_PLATE_RENDER = 57,
|
|
854
866
|
/**
|
|
855
867
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
856
868
|
*
|
|
@@ -861,7 +873,7 @@ export declare enum ModCallbackCustom {
|
|
|
861
873
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
862
874
|
* ```
|
|
863
875
|
*/
|
|
864
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
876
|
+
POST_PRESSURE_PLATE_UPDATE = 58,
|
|
865
877
|
/**
|
|
866
878
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
867
879
|
*
|
|
@@ -875,7 +887,7 @@ export declare enum ModCallbackCustom {
|
|
|
875
887
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
876
888
|
* ```
|
|
877
889
|
*/
|
|
878
|
-
POST_PROJECTILE_INIT_LATE =
|
|
890
|
+
POST_PROJECTILE_INIT_LATE = 59,
|
|
879
891
|
/**
|
|
880
892
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player first picks up a new item. The
|
|
881
893
|
* pickup returned in the callback is assumed to be the first pickup that no longer exists.
|
|
@@ -889,7 +901,7 @@ export declare enum ModCallbackCustom {
|
|
|
889
901
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
890
902
|
* ```
|
|
891
903
|
*/
|
|
892
|
-
POST_PURCHASE =
|
|
904
|
+
POST_PURCHASE = 60,
|
|
893
905
|
/**
|
|
894
906
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
895
907
|
*
|
|
@@ -900,7 +912,7 @@ export declare enum ModCallbackCustom {
|
|
|
900
912
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
901
913
|
* ```
|
|
902
914
|
*/
|
|
903
|
-
POST_ROCK_RENDER =
|
|
915
|
+
POST_ROCK_RENDER = 61,
|
|
904
916
|
/**
|
|
905
917
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
906
918
|
*
|
|
@@ -911,7 +923,7 @@ export declare enum ModCallbackCustom {
|
|
|
911
923
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
912
924
|
* ```
|
|
913
925
|
*/
|
|
914
|
-
POST_ROCK_UPDATE =
|
|
926
|
+
POST_ROCK_UPDATE = 62,
|
|
915
927
|
/**
|
|
916
928
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes.
|
|
917
929
|
*
|
|
@@ -922,7 +934,7 @@ export declare enum ModCallbackCustom {
|
|
|
922
934
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
923
935
|
* ```
|
|
924
936
|
*/
|
|
925
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
937
|
+
POST_ROOM_CLEAR_CHANGED = 63,
|
|
926
938
|
/**
|
|
927
939
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
928
940
|
* Room.
|
|
@@ -936,7 +948,7 @@ export declare enum ModCallbackCustom {
|
|
|
936
948
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
937
949
|
* ```
|
|
938
950
|
*/
|
|
939
|
-
POST_SACRIFICE =
|
|
951
|
+
POST_SACRIFICE = 64,
|
|
940
952
|
/**
|
|
941
953
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
942
954
|
*
|
|
@@ -947,7 +959,7 @@ export declare enum ModCallbackCustom {
|
|
|
947
959
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
948
960
|
* ```
|
|
949
961
|
*/
|
|
950
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
962
|
+
POST_SLOT_ANIMATION_CHANGED = 65,
|
|
951
963
|
/**
|
|
952
964
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
953
965
|
* has broken.
|
|
@@ -959,7 +971,7 @@ export declare enum ModCallbackCustom {
|
|
|
959
971
|
* function postSlotDestroyed(slot: Entity): void {}
|
|
960
972
|
* ```
|
|
961
973
|
*/
|
|
962
|
-
POST_SLOT_DESTROYED =
|
|
974
|
+
POST_SLOT_DESTROYED = 66,
|
|
963
975
|
/**
|
|
964
976
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
965
977
|
*
|
|
@@ -975,7 +987,7 @@ export declare enum ModCallbackCustom {
|
|
|
975
987
|
* function postSlotInit(slot: Entity): void {}
|
|
976
988
|
* ```
|
|
977
989
|
*/
|
|
978
|
-
POST_SLOT_INIT =
|
|
990
|
+
POST_SLOT_INIT = 67,
|
|
979
991
|
/**
|
|
980
992
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
981
993
|
*
|
|
@@ -986,7 +998,7 @@ export declare enum ModCallbackCustom {
|
|
|
986
998
|
* function postSlotRender(slot: Entity): void {}
|
|
987
999
|
* ```
|
|
988
1000
|
*/
|
|
989
|
-
POST_SLOT_RENDER =
|
|
1001
|
+
POST_SLOT_RENDER = 68,
|
|
990
1002
|
/**
|
|
991
1003
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
992
1004
|
*
|
|
@@ -997,7 +1009,7 @@ export declare enum ModCallbackCustom {
|
|
|
997
1009
|
* function postSlotUpdate(slot: Entity): void {}
|
|
998
1010
|
* ```
|
|
999
1011
|
*/
|
|
1000
|
-
POST_SLOT_UPDATE =
|
|
1012
|
+
POST_SLOT_UPDATE = 69,
|
|
1001
1013
|
/**
|
|
1002
1014
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
1003
1015
|
*
|
|
@@ -1008,7 +1020,7 @@ export declare enum ModCallbackCustom {
|
|
|
1008
1020
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
1009
1021
|
* ```
|
|
1010
1022
|
*/
|
|
1011
|
-
POST_SPIKES_RENDER =
|
|
1023
|
+
POST_SPIKES_RENDER = 70,
|
|
1012
1024
|
/**
|
|
1013
1025
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
1014
1026
|
*
|
|
@@ -1019,7 +1031,7 @@ export declare enum ModCallbackCustom {
|
|
|
1019
1031
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
1020
1032
|
* ```
|
|
1021
1033
|
*/
|
|
1022
|
-
POST_SPIKES_UPDATE =
|
|
1034
|
+
POST_SPIKES_UPDATE = 71,
|
|
1023
1035
|
/**
|
|
1024
1036
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1025
1037
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -1034,7 +1046,7 @@ export declare enum ModCallbackCustom {
|
|
|
1034
1046
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
1035
1047
|
* ```
|
|
1036
1048
|
*/
|
|
1037
|
-
POST_TEAR_INIT_LATE =
|
|
1049
|
+
POST_TEAR_INIT_LATE = 72,
|
|
1038
1050
|
/**
|
|
1039
1051
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1040
1052
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -1048,7 +1060,7 @@ export declare enum ModCallbackCustom {
|
|
|
1048
1060
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
1049
1061
|
* ```
|
|
1050
1062
|
*/
|
|
1051
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
1063
|
+
POST_TEAR_INIT_VERY_LATE = 73,
|
|
1052
1064
|
/**
|
|
1053
1065
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
1054
1066
|
*
|
|
@@ -1059,7 +1071,7 @@ export declare enum ModCallbackCustom {
|
|
|
1059
1071
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
1060
1072
|
* ```
|
|
1061
1073
|
*/
|
|
1062
|
-
POST_TNT_RENDER =
|
|
1074
|
+
POST_TNT_RENDER = 74,
|
|
1063
1075
|
/**
|
|
1064
1076
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
1065
1077
|
*
|
|
@@ -1070,7 +1082,7 @@ export declare enum ModCallbackCustom {
|
|
|
1070
1082
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
1071
1083
|
* ```
|
|
1072
1084
|
*/
|
|
1073
|
-
POST_TNT_UPDATE =
|
|
1085
|
+
POST_TNT_UPDATE = 75,
|
|
1074
1086
|
/**
|
|
1075
1087
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player gains or loses a new
|
|
1076
1088
|
* transformation.
|
|
@@ -1088,7 +1100,7 @@ export declare enum ModCallbackCustom {
|
|
|
1088
1100
|
* ): void {}
|
|
1089
1101
|
* ```
|
|
1090
1102
|
*/
|
|
1091
|
-
POST_TRANSFORMATION =
|
|
1103
|
+
POST_TRANSFORMATION = 76,
|
|
1092
1104
|
/**
|
|
1093
1105
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
1094
1106
|
*
|
|
@@ -1102,7 +1114,7 @@ export declare enum ModCallbackCustom {
|
|
|
1102
1114
|
* ): void {}
|
|
1103
1115
|
* ```
|
|
1104
1116
|
*/
|
|
1105
|
-
POST_TRINKET_BREAK =
|
|
1117
|
+
POST_TRINKET_BREAK = 77,
|
|
1106
1118
|
/**
|
|
1107
1119
|
* Fires from the `POST_PEFFECT_UPDATE` callback on the frame before a Berserk effect ends when
|
|
1108
1120
|
* the player is predicted to die (e.g. they currently have no health left or they took damage in
|
|
@@ -1117,7 +1129,7 @@ export declare enum ModCallbackCustom {
|
|
|
1117
1129
|
* function preBerserkDeath(player: EntityPlayer) {}
|
|
1118
1130
|
* ```
|
|
1119
1131
|
*/
|
|
1120
|
-
PRE_BERSERK_DEATH =
|
|
1132
|
+
PRE_BERSERK_DEATH = 78,
|
|
1121
1133
|
/**
|
|
1122
1134
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
1123
1135
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -1135,7 +1147,7 @@ export declare enum ModCallbackCustom {
|
|
|
1135
1147
|
* function preCustomRevive(player: EntityPlayer) {}
|
|
1136
1148
|
* ```
|
|
1137
1149
|
*/
|
|
1138
|
-
PRE_CUSTOM_REVIVE =
|
|
1150
|
+
PRE_CUSTOM_REVIVE = 79,
|
|
1139
1151
|
/**
|
|
1140
1152
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item becomes queued (i.e. when the player
|
|
1141
1153
|
* begins to hold the item above their head).
|
|
@@ -1154,7 +1166,7 @@ export declare enum ModCallbackCustom {
|
|
|
1154
1166
|
* ): void {}
|
|
1155
1167
|
* ```
|
|
1156
1168
|
*/
|
|
1157
|
-
PRE_ITEM_PICKUP =
|
|
1169
|
+
PRE_ITEM_PICKUP = 80,
|
|
1158
1170
|
/**
|
|
1159
1171
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
1160
1172
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -1168,5 +1180,5 @@ export declare enum ModCallbackCustom {
|
|
|
1168
1180
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
1169
1181
|
* ```
|
|
1170
1182
|
*/
|
|
1171
|
-
PRE_NEW_LEVEL =
|
|
1183
|
+
PRE_NEW_LEVEL = 81
|
|
1172
1184
|
}
|