isaacscript-common 27.10.1 → 27.11.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.rollup.d.ts +240 -96
- package/dist/isaacscript-common.lua +326 -97
- package/dist/src/callbackClasses.d.ts +7 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +35 -0
- package/dist/src/callbacks.d.ts +103 -96
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +7 -0
- package/dist/src/classes/callbacks/PostEffectInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostEffectInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostEffectInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostEffectRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostEffectRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostEffectRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostEffectUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostEffectUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostEffectUpdateFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostFamiliarInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostFamiliarInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostFamiliarInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostFamiliarRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostFamiliarRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostFamiliarRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostFamiliarUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostFamiliarUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostFamiliarUpdateFilter.lua +23 -0
- package/dist/src/classes/callbacks/PreFamiliarCollisionFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreFamiliarCollisionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreFamiliarCollisionFilter.lua +21 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +205 -96
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +110 -96
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +35 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +2 -2
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbackClasses.ts +7 -0
- package/src/callbacks.ts +8 -0
- package/src/classes/callbacks/PostEffectInitFilter.ts +22 -0
- package/src/classes/callbacks/PostEffectRenderFilter.ts +22 -0
- package/src/classes/callbacks/PostEffectUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PostFamiliarInitFilter.ts +22 -0
- package/src/classes/callbacks/PostFamiliarRenderFilter.ts +25 -0
- package/src/classes/callbacks/PostFamiliarUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PreFamiliarCollisionFilter.ts +24 -0
- package/src/enums/ModCallbackCustom.ts +116 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +46 -0
- package/src/shouldFire.ts +3 -0
|
@@ -266,6 +266,21 @@ export declare enum ModCallbackCustom {
|
|
|
266
266
|
* ```
|
|
267
267
|
*/
|
|
268
268
|
POST_DOOR_UPDATE = 15,
|
|
269
|
+
/**
|
|
270
|
+
* The exact same thing as the vanilla `POST_EFFECT_INIT` callback, except this callback allows
|
|
271
|
+
* you to specify extra arguments for additional filtration.
|
|
272
|
+
*
|
|
273
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
274
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
275
|
+
* matches the `EffectVariant` provided.
|
|
276
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
277
|
+
* matches the sub-type provided.
|
|
278
|
+
*
|
|
279
|
+
* ```ts
|
|
280
|
+
* function postEffectInitFilter(effect: EntityEffect): void {}
|
|
281
|
+
* ```
|
|
282
|
+
*/
|
|
283
|
+
POST_EFFECT_INIT_FILTER = 16,
|
|
269
284
|
/**
|
|
270
285
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
271
286
|
*
|
|
@@ -282,7 +297,22 @@ export declare enum ModCallbackCustom {
|
|
|
282
297
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
283
298
|
* ```
|
|
284
299
|
*/
|
|
285
|
-
POST_EFFECT_INIT_LATE =
|
|
300
|
+
POST_EFFECT_INIT_LATE = 17,
|
|
301
|
+
/**
|
|
302
|
+
* The exact same thing as the vanilla `POST_EFFECT_RENDER` callback, except this callback allows
|
|
303
|
+
* you to specify extra arguments for additional filtration.
|
|
304
|
+
*
|
|
305
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
306
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
307
|
+
* matches the `EffectVariant` provided.
|
|
308
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
309
|
+
* matches the sub-type provided.
|
|
310
|
+
*
|
|
311
|
+
* ```ts
|
|
312
|
+
* function postEffectRenderFilter(effect: EntityEffect, renderOffset: Vector): void {}
|
|
313
|
+
* ```
|
|
314
|
+
*/
|
|
315
|
+
POST_EFFECT_RENDER_FILTER = 18,
|
|
286
316
|
/**
|
|
287
317
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
288
318
|
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
@@ -301,7 +331,22 @@ export declare enum ModCallbackCustom {
|
|
|
301
331
|
* ): void {}
|
|
302
332
|
* ```
|
|
303
333
|
*/
|
|
304
|
-
POST_EFFECT_STATE_CHANGED =
|
|
334
|
+
POST_EFFECT_STATE_CHANGED = 19,
|
|
335
|
+
/**
|
|
336
|
+
* The exact same thing as the vanilla `POST_EFFECT_UPDATE` callback, except this callback allows
|
|
337
|
+
* you to specify extra arguments for additional filtration.
|
|
338
|
+
*
|
|
339
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
340
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
341
|
+
* matches the `EffectVariant` provided.
|
|
342
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
343
|
+
* matches the sub-type provided.
|
|
344
|
+
*
|
|
345
|
+
* ```ts
|
|
346
|
+
* function postEffectUpdateFilter(effect: EntityEffect): void {}
|
|
347
|
+
* ```
|
|
348
|
+
*/
|
|
349
|
+
POST_EFFECT_UPDATE_FILTER = 20,
|
|
305
350
|
/**
|
|
306
351
|
* The exact same thing as the vanilla `POST_ENTITY_KILL` callback, except this callback allows
|
|
307
352
|
* you to specify extra arguments for additional filtration.
|
|
@@ -318,7 +363,7 @@ export declare enum ModCallbackCustom {
|
|
|
318
363
|
* function postEntityKillFilter(entity: Entity): void {}
|
|
319
364
|
* ```
|
|
320
365
|
*/
|
|
321
|
-
POST_ENTITY_KILL_FILTER =
|
|
366
|
+
POST_ENTITY_KILL_FILTER = 21,
|
|
322
367
|
/**
|
|
323
368
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
324
369
|
* updated to the new character until a game frame has passed.)
|
|
@@ -327,7 +372,22 @@ export declare enum ModCallbackCustom {
|
|
|
327
372
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
328
373
|
* ```
|
|
329
374
|
*/
|
|
330
|
-
POST_ESAU_JR =
|
|
375
|
+
POST_ESAU_JR = 22,
|
|
376
|
+
/**
|
|
377
|
+
* The exact same thing as the vanilla `POST_FAMILIAR_INIT` callback, except this callback allows
|
|
378
|
+
* you to specify extra arguments for additional filtration.
|
|
379
|
+
*
|
|
380
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
381
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
382
|
+
* matches the `FamiliarVariant` provided.
|
|
383
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
384
|
+
* matches the sub-type provided.
|
|
385
|
+
*
|
|
386
|
+
* ```ts
|
|
387
|
+
* function postFamiliarInitFilter(familiar: EntityFamiliar): void {}
|
|
388
|
+
* ```
|
|
389
|
+
*/
|
|
390
|
+
POST_FAMILIAR_INIT_FILTER = 23,
|
|
331
391
|
/**
|
|
332
392
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
333
393
|
*
|
|
@@ -344,7 +404,22 @@ export declare enum ModCallbackCustom {
|
|
|
344
404
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
345
405
|
* ```
|
|
346
406
|
*/
|
|
347
|
-
POST_FAMILIAR_INIT_LATE =
|
|
407
|
+
POST_FAMILIAR_INIT_LATE = 24,
|
|
408
|
+
/**
|
|
409
|
+
* The exact same thing as the vanilla `POST_FAMILIAR_RENDER` callback, except this callback
|
|
410
|
+
* allows you to specify extra arguments for additional filtration.
|
|
411
|
+
*
|
|
412
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
413
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
414
|
+
* matches the `FamiliarVariant` provided.
|
|
415
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
416
|
+
* matches the sub-type provided.
|
|
417
|
+
*
|
|
418
|
+
* ```ts
|
|
419
|
+
* function postFamiliarRenderFilter(familiar: EntityFamiliar, renderOffset: Vector): void {}
|
|
420
|
+
* ```
|
|
421
|
+
*/
|
|
422
|
+
POST_FAMILIAR_RENDER_FILTER = 25,
|
|
348
423
|
/**
|
|
349
424
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
350
425
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -364,7 +439,22 @@ export declare enum ModCallbackCustom {
|
|
|
364
439
|
* ): void {}
|
|
365
440
|
* ```
|
|
366
441
|
*/
|
|
367
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
442
|
+
POST_FAMILIAR_STATE_CHANGED = 26,
|
|
443
|
+
/**
|
|
444
|
+
* The exact same thing as the vanilla `POST_FAMILIAR_UPDATE` callback, except this callback
|
|
445
|
+
* allows you to specify extra arguments for additional filtration.
|
|
446
|
+
*
|
|
447
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
448
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
449
|
+
* matches the `FamiliarVariant` provided.
|
|
450
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
451
|
+
* matches the sub-type provided.
|
|
452
|
+
*
|
|
453
|
+
* ```ts
|
|
454
|
+
* function postFamiliarUpdateFilter(familiar: EntityFamiliar): void {}
|
|
455
|
+
* ```
|
|
456
|
+
*/
|
|
457
|
+
POST_FAMILIAR_UPDATE_FILTER = 27,
|
|
368
458
|
/**
|
|
369
459
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
370
460
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -376,7 +466,7 @@ export declare enum ModCallbackCustom {
|
|
|
376
466
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
377
467
|
* ```
|
|
378
468
|
*/
|
|
379
|
-
POST_FIRST_ESAU_JR =
|
|
469
|
+
POST_FIRST_ESAU_JR = 28,
|
|
380
470
|
/**
|
|
381
471
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
382
472
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -389,7 +479,7 @@ export declare enum ModCallbackCustom {
|
|
|
389
479
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
390
480
|
* ```
|
|
391
481
|
*/
|
|
392
|
-
POST_FIRST_FLIP =
|
|
482
|
+
POST_FIRST_FLIP = 29,
|
|
393
483
|
/**
|
|
394
484
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
395
485
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -402,7 +492,7 @@ export declare enum ModCallbackCustom {
|
|
|
402
492
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
403
493
|
* ```
|
|
404
494
|
*/
|
|
405
|
-
POST_FLIP =
|
|
495
|
+
POST_FLIP = 30,
|
|
406
496
|
/**
|
|
407
497
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
408
498
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -421,7 +511,7 @@ export declare enum ModCallbackCustom {
|
|
|
421
511
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
422
512
|
* ```
|
|
423
513
|
*/
|
|
424
|
-
POST_GAME_STARTED_REORDERED =
|
|
514
|
+
POST_GAME_STARTED_REORDERED = 31,
|
|
425
515
|
/**
|
|
426
516
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
427
517
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -440,7 +530,7 @@ export declare enum ModCallbackCustom {
|
|
|
440
530
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
441
531
|
* ```
|
|
442
532
|
*/
|
|
443
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
533
|
+
POST_GAME_STARTED_REORDERED_LAST = 32,
|
|
444
534
|
/**
|
|
445
535
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
446
536
|
*
|
|
@@ -448,7 +538,7 @@ export declare enum ModCallbackCustom {
|
|
|
448
538
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
449
539
|
* ```
|
|
450
540
|
*/
|
|
451
|
-
POST_GREED_MODE_WAVE =
|
|
541
|
+
POST_GREED_MODE_WAVE = 33,
|
|
452
542
|
/**
|
|
453
543
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
454
544
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -467,7 +557,7 @@ export declare enum ModCallbackCustom {
|
|
|
467
557
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
468
558
|
* ```
|
|
469
559
|
*/
|
|
470
|
-
POST_GRID_ENTITY_BROKEN =
|
|
560
|
+
POST_GRID_ENTITY_BROKEN = 34,
|
|
471
561
|
/**
|
|
472
562
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
473
563
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -495,7 +585,7 @@ export declare enum ModCallbackCustom {
|
|
|
495
585
|
* ): void {}
|
|
496
586
|
* ```
|
|
497
587
|
*/
|
|
498
|
-
POST_GRID_ENTITY_COLLISION =
|
|
588
|
+
POST_GRID_ENTITY_COLLISION = 35,
|
|
499
589
|
/**
|
|
500
590
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
501
591
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -512,7 +602,7 @@ export declare enum ModCallbackCustom {
|
|
|
512
602
|
* ): void {}
|
|
513
603
|
* ```
|
|
514
604
|
*/
|
|
515
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
605
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 36,
|
|
516
606
|
/**
|
|
517
607
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
518
608
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -536,7 +626,7 @@ export declare enum ModCallbackCustom {
|
|
|
536
626
|
* ): void {}
|
|
537
627
|
* ```
|
|
538
628
|
*/
|
|
539
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
629
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 37,
|
|
540
630
|
/**
|
|
541
631
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
542
632
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -553,7 +643,7 @@ export declare enum ModCallbackCustom {
|
|
|
553
643
|
* ): void {}
|
|
554
644
|
* ```
|
|
555
645
|
*/
|
|
556
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
646
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 38,
|
|
557
647
|
/**
|
|
558
648
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
559
649
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -570,7 +660,7 @@ export declare enum ModCallbackCustom {
|
|
|
570
660
|
* ): void {}
|
|
571
661
|
* ```
|
|
572
662
|
*/
|
|
573
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
663
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 39,
|
|
574
664
|
/**
|
|
575
665
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
576
666
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -587,7 +677,7 @@ export declare enum ModCallbackCustom {
|
|
|
587
677
|
* ): void {}
|
|
588
678
|
* ```
|
|
589
679
|
*/
|
|
590
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
680
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 40,
|
|
591
681
|
/**
|
|
592
682
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
593
683
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -606,7 +696,7 @@ export declare enum ModCallbackCustom {
|
|
|
606
696
|
* ): void {}
|
|
607
697
|
* ```
|
|
608
698
|
*/
|
|
609
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
699
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 41,
|
|
610
700
|
/**
|
|
611
701
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
612
702
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -623,7 +713,7 @@ export declare enum ModCallbackCustom {
|
|
|
623
713
|
* ): void {}
|
|
624
714
|
* ```
|
|
625
715
|
*/
|
|
626
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
716
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 42,
|
|
627
717
|
/**
|
|
628
718
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
629
719
|
*
|
|
@@ -645,7 +735,7 @@ export declare enum ModCallbackCustom {
|
|
|
645
735
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
646
736
|
* ```
|
|
647
737
|
*/
|
|
648
|
-
POST_GRID_ENTITY_INIT =
|
|
738
|
+
POST_GRID_ENTITY_INIT = 43,
|
|
649
739
|
/**
|
|
650
740
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
651
741
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -670,7 +760,7 @@ export declare enum ModCallbackCustom {
|
|
|
670
760
|
* ): void {}
|
|
671
761
|
* ```
|
|
672
762
|
*/
|
|
673
|
-
POST_GRID_ENTITY_REMOVE =
|
|
763
|
+
POST_GRID_ENTITY_REMOVE = 44,
|
|
674
764
|
/**
|
|
675
765
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
676
766
|
*
|
|
@@ -687,7 +777,7 @@ export declare enum ModCallbackCustom {
|
|
|
687
777
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
688
778
|
* ```
|
|
689
779
|
*/
|
|
690
|
-
POST_GRID_ENTITY_RENDER =
|
|
780
|
+
POST_GRID_ENTITY_RENDER = 45,
|
|
691
781
|
/**
|
|
692
782
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
693
783
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -709,7 +799,7 @@ export declare enum ModCallbackCustom {
|
|
|
709
799
|
* ): void {}
|
|
710
800
|
* ```
|
|
711
801
|
*/
|
|
712
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
802
|
+
POST_GRID_ENTITY_STATE_CHANGED = 46,
|
|
713
803
|
/**
|
|
714
804
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
715
805
|
*
|
|
@@ -726,7 +816,7 @@ export declare enum ModCallbackCustom {
|
|
|
726
816
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
727
817
|
* ```
|
|
728
818
|
*/
|
|
729
|
-
POST_GRID_ENTITY_UPDATE =
|
|
819
|
+
POST_GRID_ENTITY_UPDATE = 47,
|
|
730
820
|
/**
|
|
731
821
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
732
822
|
* temporary collectible effect.
|
|
@@ -749,7 +839,7 @@ export declare enum ModCallbackCustom {
|
|
|
749
839
|
* ): void {}
|
|
750
840
|
* ```
|
|
751
841
|
*/
|
|
752
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
842
|
+
POST_HOLY_MANTLE_REMOVED = 48,
|
|
753
843
|
/**
|
|
754
844
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
755
845
|
* active collectible item, implying that the item was just used.
|
|
@@ -772,7 +862,7 @@ export declare enum ModCallbackCustom {
|
|
|
772
862
|
* ): void {}
|
|
773
863
|
* ```
|
|
774
864
|
*/
|
|
775
|
-
POST_ITEM_DISCHARGE =
|
|
865
|
+
POST_ITEM_DISCHARGE = 49,
|
|
776
866
|
/**
|
|
777
867
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
778
868
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -793,7 +883,7 @@ export declare enum ModCallbackCustom {
|
|
|
793
883
|
* ): void {}
|
|
794
884
|
* ```
|
|
795
885
|
*/
|
|
796
|
-
POST_ITEM_PICKUP =
|
|
886
|
+
POST_ITEM_PICKUP = 50,
|
|
797
887
|
/**
|
|
798
888
|
* Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
|
|
799
889
|
* released. (In other words, the callback only fires when the "pressed" status is different than
|
|
@@ -809,7 +899,7 @@ export declare enum ModCallbackCustom {
|
|
|
809
899
|
* function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
|
|
810
900
|
* ```
|
|
811
901
|
*/
|
|
812
|
-
POST_KEYBOARD_CHANGED =
|
|
902
|
+
POST_KEYBOARD_CHANGED = 51,
|
|
813
903
|
/**
|
|
814
904
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
815
905
|
*
|
|
@@ -826,7 +916,7 @@ export declare enum ModCallbackCustom {
|
|
|
826
916
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
827
917
|
* ```
|
|
828
918
|
*/
|
|
829
|
-
POST_KNIFE_INIT_LATE =
|
|
919
|
+
POST_KNIFE_INIT_LATE = 52,
|
|
830
920
|
/**
|
|
831
921
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
832
922
|
*
|
|
@@ -843,7 +933,7 @@ export declare enum ModCallbackCustom {
|
|
|
843
933
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
844
934
|
* ```
|
|
845
935
|
*/
|
|
846
|
-
POST_LASER_INIT_LATE =
|
|
936
|
+
POST_LASER_INIT_LATE = 53,
|
|
847
937
|
/**
|
|
848
938
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
849
939
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -869,7 +959,7 @@ export declare enum ModCallbackCustom {
|
|
|
869
959
|
* function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
|
|
870
960
|
* ```
|
|
871
961
|
*/
|
|
872
|
-
POST_NEW_LEVEL_REORDERED =
|
|
962
|
+
POST_NEW_LEVEL_REORDERED = 54,
|
|
873
963
|
/**
|
|
874
964
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
875
965
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -886,7 +976,7 @@ export declare enum ModCallbackCustom {
|
|
|
886
976
|
* function postNewRoomEarly(roomType: RoomType): void {}
|
|
887
977
|
* ```
|
|
888
978
|
*/
|
|
889
|
-
POST_NEW_ROOM_EARLY =
|
|
979
|
+
POST_NEW_ROOM_EARLY = 55,
|
|
890
980
|
/**
|
|
891
981
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
892
982
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -909,7 +999,7 @@ export declare enum ModCallbackCustom {
|
|
|
909
999
|
* function postNewRoomReordered(roomType: RoomType): void {}
|
|
910
1000
|
* ```
|
|
911
1001
|
*/
|
|
912
|
-
POST_NEW_ROOM_REORDERED =
|
|
1002
|
+
POST_NEW_ROOM_REORDERED = 56,
|
|
913
1003
|
/**
|
|
914
1004
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
915
1005
|
* to specify extra arguments for additional filtration.
|
|
@@ -926,7 +1016,7 @@ export declare enum ModCallbackCustom {
|
|
|
926
1016
|
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
927
1017
|
* ```
|
|
928
1018
|
*/
|
|
929
|
-
POST_NPC_DEATH_FILTER =
|
|
1019
|
+
POST_NPC_DEATH_FILTER = 57,
|
|
930
1020
|
/**
|
|
931
1021
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
932
1022
|
* to specify extra arguments for additional filtration.
|
|
@@ -943,7 +1033,7 @@ export declare enum ModCallbackCustom {
|
|
|
943
1033
|
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
944
1034
|
* ```
|
|
945
1035
|
*/
|
|
946
|
-
POST_NPC_INIT_FILTER =
|
|
1036
|
+
POST_NPC_INIT_FILTER = 58,
|
|
947
1037
|
/**
|
|
948
1038
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
949
1039
|
*
|
|
@@ -962,7 +1052,7 @@ export declare enum ModCallbackCustom {
|
|
|
962
1052
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
963
1053
|
* ```
|
|
964
1054
|
*/
|
|
965
|
-
POST_NPC_INIT_LATE =
|
|
1055
|
+
POST_NPC_INIT_LATE = 59,
|
|
966
1056
|
/**
|
|
967
1057
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
968
1058
|
* to specify extra arguments for additional filtration.
|
|
@@ -979,7 +1069,7 @@ export declare enum ModCallbackCustom {
|
|
|
979
1069
|
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
980
1070
|
* ```
|
|
981
1071
|
*/
|
|
982
|
-
POST_NPC_RENDER_FILTER =
|
|
1072
|
+
POST_NPC_RENDER_FILTER = 60,
|
|
983
1073
|
/**
|
|
984
1074
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
985
1075
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -1000,7 +1090,7 @@ export declare enum ModCallbackCustom {
|
|
|
1000
1090
|
* ): void {}
|
|
1001
1091
|
* ```
|
|
1002
1092
|
*/
|
|
1003
|
-
POST_NPC_STATE_CHANGED =
|
|
1093
|
+
POST_NPC_STATE_CHANGED = 61,
|
|
1004
1094
|
/**
|
|
1005
1095
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
1006
1096
|
* to specify extra arguments for additional filtration.
|
|
@@ -1017,7 +1107,7 @@ export declare enum ModCallbackCustom {
|
|
|
1017
1107
|
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
1018
1108
|
* ```
|
|
1019
1109
|
*/
|
|
1020
|
-
POST_NPC_UPDATE_FILTER =
|
|
1110
|
+
POST_NPC_UPDATE_FILTER = 62,
|
|
1021
1111
|
/**
|
|
1022
1112
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
1023
1113
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -1042,7 +1132,7 @@ export declare enum ModCallbackCustom {
|
|
|
1042
1132
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
1043
1133
|
* ```
|
|
1044
1134
|
*/
|
|
1045
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
1135
|
+
POST_PEFFECT_UPDATE_REORDERED = 63,
|
|
1046
1136
|
/**
|
|
1047
1137
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
|
|
1048
1138
|
* than what it was on the previous frame.
|
|
@@ -1063,7 +1153,7 @@ export declare enum ModCallbackCustom {
|
|
|
1063
1153
|
* ): void {}
|
|
1064
1154
|
* ```
|
|
1065
1155
|
*/
|
|
1066
|
-
POST_PICKUP_CHANGED =
|
|
1156
|
+
POST_PICKUP_CHANGED = 64,
|
|
1067
1157
|
/**
|
|
1068
1158
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
1069
1159
|
*
|
|
@@ -1082,7 +1172,7 @@ export declare enum ModCallbackCustom {
|
|
|
1082
1172
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
1083
1173
|
* ```
|
|
1084
1174
|
*/
|
|
1085
|
-
POST_PICKUP_COLLECT =
|
|
1175
|
+
POST_PICKUP_COLLECT = 65,
|
|
1086
1176
|
/**
|
|
1087
1177
|
* The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
|
|
1088
1178
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1097,7 +1187,7 @@ export declare enum ModCallbackCustom {
|
|
|
1097
1187
|
* function postPickupInitFilter(pickup: EntityPickup): void {}
|
|
1098
1188
|
* ```
|
|
1099
1189
|
*/
|
|
1100
|
-
POST_PICKUP_INIT_FILTER =
|
|
1190
|
+
POST_PICKUP_INIT_FILTER = 66,
|
|
1101
1191
|
/**
|
|
1102
1192
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
1103
1193
|
* respective pickup on the run.
|
|
@@ -1115,7 +1205,7 @@ export declare enum ModCallbackCustom {
|
|
|
1115
1205
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
1116
1206
|
* ```
|
|
1117
1207
|
*/
|
|
1118
|
-
POST_PICKUP_INIT_FIRST =
|
|
1208
|
+
POST_PICKUP_INIT_FIRST = 67,
|
|
1119
1209
|
/**
|
|
1120
1210
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
1121
1211
|
*
|
|
@@ -1132,7 +1222,7 @@ export declare enum ModCallbackCustom {
|
|
|
1132
1222
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
1133
1223
|
* ```
|
|
1134
1224
|
*/
|
|
1135
|
-
POST_PICKUP_INIT_LATE =
|
|
1225
|
+
POST_PICKUP_INIT_LATE = 68,
|
|
1136
1226
|
/**
|
|
1137
1227
|
* The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
|
|
1138
1228
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1147,7 +1237,7 @@ export declare enum ModCallbackCustom {
|
|
|
1147
1237
|
* function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
|
|
1148
1238
|
* ```
|
|
1149
1239
|
*/
|
|
1150
|
-
POST_PICKUP_RENDER_FILTER =
|
|
1240
|
+
POST_PICKUP_RENDER_FILTER = 69,
|
|
1151
1241
|
/**
|
|
1152
1242
|
* The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
|
|
1153
1243
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -1166,7 +1256,7 @@ export declare enum ModCallbackCustom {
|
|
|
1166
1256
|
* ): [PickupVariant, int] | undefined {}
|
|
1167
1257
|
* ```
|
|
1168
1258
|
*/
|
|
1169
|
-
POST_PICKUP_SELECTION_FILTER =
|
|
1259
|
+
POST_PICKUP_SELECTION_FILTER = 70,
|
|
1170
1260
|
/**
|
|
1171
1261
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
1172
1262
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -1185,7 +1275,7 @@ export declare enum ModCallbackCustom {
|
|
|
1185
1275
|
* ): void {}
|
|
1186
1276
|
* ```
|
|
1187
1277
|
*/
|
|
1188
|
-
POST_PICKUP_STATE_CHANGED =
|
|
1278
|
+
POST_PICKUP_STATE_CHANGED = 71,
|
|
1189
1279
|
/**
|
|
1190
1280
|
* The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
|
|
1191
1281
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1200,7 +1290,7 @@ export declare enum ModCallbackCustom {
|
|
|
1200
1290
|
* function postPickupUpdateFilter(pickup: EntityPickup): void {}
|
|
1201
1291
|
* ```
|
|
1202
1292
|
*/
|
|
1203
|
-
POST_PICKUP_UPDATE_FILTER =
|
|
1293
|
+
POST_PICKUP_UPDATE_FILTER = 72,
|
|
1204
1294
|
/**
|
|
1205
1295
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
1206
1296
|
*
|
|
@@ -1212,7 +1302,7 @@ export declare enum ModCallbackCustom {
|
|
|
1212
1302
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
1213
1303
|
* ```
|
|
1214
1304
|
*/
|
|
1215
|
-
POST_PIT_RENDER =
|
|
1305
|
+
POST_PIT_RENDER = 73,
|
|
1216
1306
|
/**
|
|
1217
1307
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
1218
1308
|
*
|
|
@@ -1224,7 +1314,7 @@ export declare enum ModCallbackCustom {
|
|
|
1224
1314
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
1225
1315
|
* ```
|
|
1226
1316
|
*/
|
|
1227
|
-
POST_PIT_UPDATE =
|
|
1317
|
+
POST_PIT_UPDATE = 74,
|
|
1228
1318
|
/**
|
|
1229
1319
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
1230
1320
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -1246,7 +1336,7 @@ export declare enum ModCallbackCustom {
|
|
|
1246
1336
|
* ): void {}
|
|
1247
1337
|
* ```
|
|
1248
1338
|
*/
|
|
1249
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
1339
|
+
POST_PLAYER_CHANGE_HEALTH = 75,
|
|
1250
1340
|
/**
|
|
1251
1341
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
1252
1342
|
* from what they were on the previous frame.
|
|
@@ -1276,7 +1366,7 @@ export declare enum ModCallbackCustom {
|
|
|
1276
1366
|
* ) => void {}
|
|
1277
1367
|
* ```
|
|
1278
1368
|
*/
|
|
1279
|
-
POST_PLAYER_CHANGE_STAT =
|
|
1369
|
+
POST_PLAYER_CHANGE_STAT = 76,
|
|
1280
1370
|
/**
|
|
1281
1371
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
1282
1372
|
* type
|
|
@@ -1299,7 +1389,7 @@ export declare enum ModCallbackCustom {
|
|
|
1299
1389
|
* ): void {}
|
|
1300
1390
|
* ```
|
|
1301
1391
|
*/
|
|
1302
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
1392
|
+
POST_PLAYER_CHANGE_TYPE = 77,
|
|
1303
1393
|
/**
|
|
1304
1394
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1305
1395
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -1316,7 +1406,7 @@ export declare enum ModCallbackCustom {
|
|
|
1316
1406
|
* ): void {}
|
|
1317
1407
|
* ```
|
|
1318
1408
|
*/
|
|
1319
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
1409
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 78,
|
|
1320
1410
|
/**
|
|
1321
1411
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1322
1412
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -1333,7 +1423,7 @@ export declare enum ModCallbackCustom {
|
|
|
1333
1423
|
* ): void {}
|
|
1334
1424
|
* ```
|
|
1335
1425
|
*/
|
|
1336
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
1426
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 79,
|
|
1337
1427
|
/**
|
|
1338
1428
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
1339
1429
|
* prevent the fatal damage.
|
|
@@ -1351,7 +1441,7 @@ export declare enum ModCallbackCustom {
|
|
|
1351
1441
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
1352
1442
|
* ```
|
|
1353
1443
|
*/
|
|
1354
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
1444
|
+
POST_PLAYER_FATAL_DAMAGE = 80,
|
|
1355
1445
|
/**
|
|
1356
1446
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
1357
1447
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -1373,7 +1463,7 @@ export declare enum ModCallbackCustom {
|
|
|
1373
1463
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
1374
1464
|
* ```
|
|
1375
1465
|
*/
|
|
1376
|
-
POST_PLAYER_INIT_FIRST =
|
|
1466
|
+
POST_PLAYER_INIT_FIRST = 81,
|
|
1377
1467
|
/**
|
|
1378
1468
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
1379
1469
|
*
|
|
@@ -1393,7 +1483,7 @@ export declare enum ModCallbackCustom {
|
|
|
1393
1483
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
1394
1484
|
* ```
|
|
1395
1485
|
*/
|
|
1396
|
-
POST_PLAYER_INIT_LATE =
|
|
1486
|
+
POST_PLAYER_INIT_LATE = 82,
|
|
1397
1487
|
/**
|
|
1398
1488
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
1399
1489
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -1417,7 +1507,7 @@ export declare enum ModCallbackCustom {
|
|
|
1417
1507
|
* function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
|
|
1418
1508
|
* ```
|
|
1419
1509
|
*/
|
|
1420
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
1510
|
+
POST_PLAYER_RENDER_REORDERED = 83,
|
|
1421
1511
|
/**
|
|
1422
1512
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
1423
1513
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -1442,7 +1532,7 @@ export declare enum ModCallbackCustom {
|
|
|
1442
1532
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
1443
1533
|
* ```
|
|
1444
1534
|
*/
|
|
1445
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
1535
|
+
POST_PLAYER_UPDATE_REORDERED = 84,
|
|
1446
1536
|
/**
|
|
1447
1537
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
1448
1538
|
*
|
|
@@ -1454,7 +1544,7 @@ export declare enum ModCallbackCustom {
|
|
|
1454
1544
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
1455
1545
|
* ```
|
|
1456
1546
|
*/
|
|
1457
|
-
POST_POOP_RENDER =
|
|
1547
|
+
POST_POOP_RENDER = 85,
|
|
1458
1548
|
/**
|
|
1459
1549
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
1460
1550
|
*
|
|
@@ -1466,7 +1556,7 @@ export declare enum ModCallbackCustom {
|
|
|
1466
1556
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
1467
1557
|
* ```
|
|
1468
1558
|
*/
|
|
1469
|
-
POST_POOP_UPDATE =
|
|
1559
|
+
POST_POOP_UPDATE = 86,
|
|
1470
1560
|
/**
|
|
1471
1561
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
1472
1562
|
*
|
|
@@ -1478,7 +1568,7 @@ export declare enum ModCallbackCustom {
|
|
|
1478
1568
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
1479
1569
|
* ```
|
|
1480
1570
|
*/
|
|
1481
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
1571
|
+
POST_PRESSURE_PLATE_RENDER = 87,
|
|
1482
1572
|
/**
|
|
1483
1573
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
1484
1574
|
*
|
|
@@ -1490,7 +1580,7 @@ export declare enum ModCallbackCustom {
|
|
|
1490
1580
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
1491
1581
|
* ```
|
|
1492
1582
|
*/
|
|
1493
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
1583
|
+
POST_PRESSURE_PLATE_UPDATE = 88,
|
|
1494
1584
|
/**
|
|
1495
1585
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
1496
1586
|
*
|
|
@@ -1507,7 +1597,7 @@ export declare enum ModCallbackCustom {
|
|
|
1507
1597
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
1508
1598
|
* ```
|
|
1509
1599
|
*/
|
|
1510
|
-
POST_PROJECTILE_INIT_LATE =
|
|
1600
|
+
POST_PROJECTILE_INIT_LATE = 89,
|
|
1511
1601
|
/**
|
|
1512
1602
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
1513
1603
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -1523,7 +1613,7 @@ export declare enum ModCallbackCustom {
|
|
|
1523
1613
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
1524
1614
|
* ```
|
|
1525
1615
|
*/
|
|
1526
|
-
POST_PURCHASE =
|
|
1616
|
+
POST_PURCHASE = 90,
|
|
1527
1617
|
/**
|
|
1528
1618
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
1529
1619
|
*
|
|
@@ -1537,7 +1627,7 @@ export declare enum ModCallbackCustom {
|
|
|
1537
1627
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
1538
1628
|
* ```
|
|
1539
1629
|
*/
|
|
1540
|
-
POST_ROCK_RENDER =
|
|
1630
|
+
POST_ROCK_RENDER = 91,
|
|
1541
1631
|
/**
|
|
1542
1632
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
1543
1633
|
*
|
|
@@ -1551,7 +1641,7 @@ export declare enum ModCallbackCustom {
|
|
|
1551
1641
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
1552
1642
|
* ```
|
|
1553
1643
|
*/
|
|
1554
|
-
POST_ROCK_UPDATE =
|
|
1644
|
+
POST_ROCK_UPDATE = 92,
|
|
1555
1645
|
/**
|
|
1556
1646
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
1557
1647
|
* the `Room.IsClear` method).
|
|
@@ -1568,7 +1658,7 @@ export declare enum ModCallbackCustom {
|
|
|
1568
1658
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
1569
1659
|
* ```
|
|
1570
1660
|
*/
|
|
1571
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
1661
|
+
POST_ROOM_CLEAR_CHANGED = 93,
|
|
1572
1662
|
/**
|
|
1573
1663
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
1574
1664
|
* Room.
|
|
@@ -1583,7 +1673,7 @@ export declare enum ModCallbackCustom {
|
|
|
1583
1673
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
1584
1674
|
* ```
|
|
1585
1675
|
*/
|
|
1586
|
-
POST_SACRIFICE =
|
|
1676
|
+
POST_SACRIFICE = 94,
|
|
1587
1677
|
/**
|
|
1588
1678
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
1589
1679
|
*
|
|
@@ -1601,7 +1691,7 @@ export declare enum ModCallbackCustom {
|
|
|
1601
1691
|
* ): void {}
|
|
1602
1692
|
* ```
|
|
1603
1693
|
*/
|
|
1604
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
1694
|
+
POST_SLOT_ANIMATION_CHANGED = 95,
|
|
1605
1695
|
/**
|
|
1606
1696
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
1607
1697
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -1625,7 +1715,7 @@ export declare enum ModCallbackCustom {
|
|
|
1625
1715
|
* ): void {}
|
|
1626
1716
|
* ```
|
|
1627
1717
|
*/
|
|
1628
|
-
POST_SLOT_COLLISION =
|
|
1718
|
+
POST_SLOT_COLLISION = 96,
|
|
1629
1719
|
/**
|
|
1630
1720
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
1631
1721
|
* destroyed or a beggar is removed.
|
|
@@ -1667,7 +1757,7 @@ export declare enum ModCallbackCustom {
|
|
|
1667
1757
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
1668
1758
|
* ```
|
|
1669
1759
|
*/
|
|
1670
|
-
POST_SLOT_DESTROYED =
|
|
1760
|
+
POST_SLOT_DESTROYED = 97,
|
|
1671
1761
|
/**
|
|
1672
1762
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
1673
1763
|
*
|
|
@@ -1686,7 +1776,7 @@ export declare enum ModCallbackCustom {
|
|
|
1686
1776
|
* function postSlotInit(slot: Entity): void {}
|
|
1687
1777
|
* ```
|
|
1688
1778
|
*/
|
|
1689
|
-
POST_SLOT_INIT =
|
|
1779
|
+
POST_SLOT_INIT = 98,
|
|
1690
1780
|
/**
|
|
1691
1781
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
1692
1782
|
*
|
|
@@ -1700,7 +1790,7 @@ export declare enum ModCallbackCustom {
|
|
|
1700
1790
|
* function postSlotRender(slot: Entity): void {}
|
|
1701
1791
|
* ```
|
|
1702
1792
|
*/
|
|
1703
|
-
POST_SLOT_RENDER =
|
|
1793
|
+
POST_SLOT_RENDER = 99,
|
|
1704
1794
|
/**
|
|
1705
1795
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
1706
1796
|
*
|
|
@@ -1714,7 +1804,7 @@ export declare enum ModCallbackCustom {
|
|
|
1714
1804
|
* function postSlotUpdate(slot: Entity): void {}
|
|
1715
1805
|
* ```
|
|
1716
1806
|
*/
|
|
1717
|
-
POST_SLOT_UPDATE =
|
|
1807
|
+
POST_SLOT_UPDATE = 100,
|
|
1718
1808
|
/**
|
|
1719
1809
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
1720
1810
|
*
|
|
@@ -1726,7 +1816,7 @@ export declare enum ModCallbackCustom {
|
|
|
1726
1816
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
1727
1817
|
* ```
|
|
1728
1818
|
*/
|
|
1729
|
-
POST_SPIKES_RENDER =
|
|
1819
|
+
POST_SPIKES_RENDER = 101,
|
|
1730
1820
|
/**
|
|
1731
1821
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
1732
1822
|
*
|
|
@@ -1738,7 +1828,7 @@ export declare enum ModCallbackCustom {
|
|
|
1738
1828
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
1739
1829
|
* ```
|
|
1740
1830
|
*/
|
|
1741
|
-
POST_SPIKES_UPDATE =
|
|
1831
|
+
POST_SPIKES_UPDATE = 102,
|
|
1742
1832
|
/**
|
|
1743
1833
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1744
1834
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -1756,7 +1846,7 @@ export declare enum ModCallbackCustom {
|
|
|
1756
1846
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
1757
1847
|
* ```
|
|
1758
1848
|
*/
|
|
1759
|
-
POST_TEAR_INIT_LATE =
|
|
1849
|
+
POST_TEAR_INIT_LATE = 103,
|
|
1760
1850
|
/**
|
|
1761
1851
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1762
1852
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -1773,7 +1863,7 @@ export declare enum ModCallbackCustom {
|
|
|
1773
1863
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
1774
1864
|
* ```
|
|
1775
1865
|
*/
|
|
1776
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
1866
|
+
POST_TEAR_INIT_VERY_LATE = 104,
|
|
1777
1867
|
/**
|
|
1778
1868
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
1779
1869
|
*
|
|
@@ -1785,7 +1875,7 @@ export declare enum ModCallbackCustom {
|
|
|
1785
1875
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
1786
1876
|
* ```
|
|
1787
1877
|
*/
|
|
1788
|
-
POST_TNT_RENDER =
|
|
1878
|
+
POST_TNT_RENDER = 105,
|
|
1789
1879
|
/**
|
|
1790
1880
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
1791
1881
|
*
|
|
@@ -1797,7 +1887,7 @@ export declare enum ModCallbackCustom {
|
|
|
1797
1887
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
1798
1888
|
* ```
|
|
1799
1889
|
*/
|
|
1800
|
-
POST_TNT_UPDATE =
|
|
1890
|
+
POST_TNT_UPDATE = 106,
|
|
1801
1891
|
/**
|
|
1802
1892
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
1803
1893
|
* transformation.
|
|
@@ -1816,7 +1906,7 @@ export declare enum ModCallbackCustom {
|
|
|
1816
1906
|
* ): void {}
|
|
1817
1907
|
* ```
|
|
1818
1908
|
*/
|
|
1819
|
-
POST_TRANSFORMATION =
|
|
1909
|
+
POST_TRANSFORMATION = 107,
|
|
1820
1910
|
/**
|
|
1821
1911
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
1822
1912
|
*
|
|
@@ -1831,7 +1921,7 @@ export declare enum ModCallbackCustom {
|
|
|
1831
1921
|
* ): void {}
|
|
1832
1922
|
* ```
|
|
1833
1923
|
*/
|
|
1834
|
-
POST_TRINKET_BREAK =
|
|
1924
|
+
POST_TRINKET_BREAK = 108,
|
|
1835
1925
|
/**
|
|
1836
1926
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
1837
1927
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -1847,7 +1937,7 @@ export declare enum ModCallbackCustom {
|
|
|
1847
1937
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
1848
1938
|
* ```
|
|
1849
1939
|
*/
|
|
1850
|
-
PRE_BERSERK_DEATH =
|
|
1940
|
+
PRE_BERSERK_DEATH = 109,
|
|
1851
1941
|
/**
|
|
1852
1942
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
1853
1943
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -1866,7 +1956,7 @@ export declare enum ModCallbackCustom {
|
|
|
1866
1956
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
1867
1957
|
* ```
|
|
1868
1958
|
*/
|
|
1869
|
-
PRE_CUSTOM_REVIVE =
|
|
1959
|
+
PRE_CUSTOM_REVIVE = 110,
|
|
1870
1960
|
/**
|
|
1871
1961
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
1872
1962
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1891,7 +1981,26 @@ export declare enum ModCallbackCustom {
|
|
|
1891
1981
|
* ): [EntityType, int, int, int] | undefined {}
|
|
1892
1982
|
* ```
|
|
1893
1983
|
*/
|
|
1894
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
1984
|
+
PRE_ENTITY_SPAWN_FILTER = 111,
|
|
1985
|
+
/**
|
|
1986
|
+
* The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
|
|
1987
|
+
* allows you to specify extra arguments for additional filtration.
|
|
1988
|
+
*
|
|
1989
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
1990
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
1991
|
+
* matches the `FamiliarVariant` provided.
|
|
1992
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
1993
|
+
* matches the sub-type provided.
|
|
1994
|
+
*
|
|
1995
|
+
* ```ts
|
|
1996
|
+
* function preFamiliarCollisionFilter(
|
|
1997
|
+
* familiar: EntityFamiliar,
|
|
1998
|
+
* collider: Entity,
|
|
1999
|
+
* low: boolean,
|
|
2000
|
+
* ): void {}
|
|
2001
|
+
* ```
|
|
2002
|
+
*/
|
|
2003
|
+
PRE_FAMILIAR_COLLISION_FILTER = 112,
|
|
1895
2004
|
/**
|
|
1896
2005
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
1897
2006
|
* meets all of the conditions to pick it up.
|
|
@@ -1911,7 +2020,7 @@ export declare enum ModCallbackCustom {
|
|
|
1911
2020
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
1912
2021
|
* ```
|
|
1913
2022
|
*/
|
|
1914
|
-
PRE_GET_PEDESTAL =
|
|
2023
|
+
PRE_GET_PEDESTAL = 113,
|
|
1915
2024
|
/**
|
|
1916
2025
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
1917
2026
|
* the player begins to hold the item above their head).
|
|
@@ -1931,7 +2040,7 @@ export declare enum ModCallbackCustom {
|
|
|
1931
2040
|
* ): void {}
|
|
1932
2041
|
* ```
|
|
1933
2042
|
*/
|
|
1934
|
-
PRE_ITEM_PICKUP =
|
|
2043
|
+
PRE_ITEM_PICKUP = 114,
|
|
1935
2044
|
/**
|
|
1936
2045
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
1937
2046
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -1945,7 +2054,7 @@ export declare enum ModCallbackCustom {
|
|
|
1945
2054
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
1946
2055
|
* ```
|
|
1947
2056
|
*/
|
|
1948
|
-
PRE_NEW_LEVEL =
|
|
2057
|
+
PRE_NEW_LEVEL = 115,
|
|
1949
2058
|
/**
|
|
1950
2059
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
1951
2060
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1966,7 +2075,7 @@ export declare enum ModCallbackCustom {
|
|
|
1966
2075
|
* ): boolean | undefined {}
|
|
1967
2076
|
* ```
|
|
1968
2077
|
*/
|
|
1969
|
-
PRE_NPC_COLLISION_FILTER =
|
|
2078
|
+
PRE_NPC_COLLISION_FILTER = 116,
|
|
1970
2079
|
/**
|
|
1971
2080
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
1972
2081
|
* to specify extra arguments for additional filtration.
|
|
@@ -1983,7 +2092,7 @@ export declare enum ModCallbackCustom {
|
|
|
1983
2092
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
1984
2093
|
* ```
|
|
1985
2094
|
*/
|
|
1986
|
-
PRE_NPC_UPDATE_FILTER =
|
|
2095
|
+
PRE_NPC_UPDATE_FILTER = 117,
|
|
1987
2096
|
/**
|
|
1988
2097
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
1989
2098
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -2006,6 +2115,6 @@ export declare enum ModCallbackCustom {
|
|
|
2006
2115
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
2007
2116
|
* ```
|
|
2008
2117
|
*/
|
|
2009
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
2118
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 118
|
|
2010
2119
|
}
|
|
2011
2120
|
//# sourceMappingURL=ModCallbackCustom.d.ts.map
|