isaacscript-common 18.2.0 → 18.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -8626,6 +8626,16 @@ export declare enum ModCallbackCustom {
|
|
|
8626
8626
|
* matches the variant provided.
|
|
8627
8627
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
8628
8628
|
* matches the sub-type provided.
|
|
8629
|
+
*
|
|
8630
|
+
* ```ts
|
|
8631
|
+
* function entityTakeDmgFilter(
|
|
8632
|
+
* entity: Entity,
|
|
8633
|
+
* amount: float,
|
|
8634
|
+
* damageFlags: BitFlags<DamageFlag>,
|
|
8635
|
+
* source: EntityRef,
|
|
8636
|
+
* countdownFrames: int,
|
|
8637
|
+
* ): boolean | undefined {}
|
|
8638
|
+
* ```
|
|
8629
8639
|
*/
|
|
8630
8640
|
ENTITY_TAKE_DMG_FILTER = 0,
|
|
8631
8641
|
/**
|
|
@@ -8637,6 +8647,16 @@ export declare enum ModCallbackCustom {
|
|
|
8637
8647
|
* matches the `PlayerVariant` provided.
|
|
8638
8648
|
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
8639
8649
|
* matches the `PlayerType` provided.
|
|
8650
|
+
*
|
|
8651
|
+
* ```ts
|
|
8652
|
+
* function entityTakeDmgPlayer(
|
|
8653
|
+
* player: EntityPlayer,
|
|
8654
|
+
* amount: float,
|
|
8655
|
+
* damageFlags: BitFlags<DamageFlag>,
|
|
8656
|
+
* source: EntityRef,
|
|
8657
|
+
* countdownFrames: int,
|
|
8658
|
+
* ): boolean | undefined {}
|
|
8659
|
+
* ```
|
|
8640
8660
|
*/
|
|
8641
8661
|
ENTITY_TAKE_DMG_PLAYER = 1,
|
|
8642
8662
|
/**
|
|
@@ -9397,6 +9417,10 @@ export declare enum ModCallbackCustom {
|
|
|
9397
9417
|
* matches the variant provided.
|
|
9398
9418
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9399
9419
|
* matches the sub-type provided.
|
|
9420
|
+
*
|
|
9421
|
+
* ```ts
|
|
9422
|
+
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
9423
|
+
* ```
|
|
9400
9424
|
*/
|
|
9401
9425
|
POST_NPC_DEATH_FILTER = 47,
|
|
9402
9426
|
/**
|
|
@@ -9410,6 +9434,10 @@ export declare enum ModCallbackCustom {
|
|
|
9410
9434
|
* matches the variant provided.
|
|
9411
9435
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9412
9436
|
* matches the sub-type provided.
|
|
9437
|
+
*
|
|
9438
|
+
* ```ts
|
|
9439
|
+
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
9440
|
+
* ```
|
|
9413
9441
|
*/
|
|
9414
9442
|
POST_NPC_INIT_FILTER = 48,
|
|
9415
9443
|
/**
|
|
@@ -9442,6 +9470,10 @@ export declare enum ModCallbackCustom {
|
|
|
9442
9470
|
* matches the variant provided.
|
|
9443
9471
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9444
9472
|
* matches the sub-type provided.
|
|
9473
|
+
*
|
|
9474
|
+
* ```ts
|
|
9475
|
+
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
9476
|
+
* ```
|
|
9445
9477
|
*/
|
|
9446
9478
|
POST_NPC_RENDER_FILTER = 50,
|
|
9447
9479
|
/**
|
|
@@ -9476,6 +9508,10 @@ export declare enum ModCallbackCustom {
|
|
|
9476
9508
|
* matches the variant provided.
|
|
9477
9509
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
9478
9510
|
* matches the sub-type provided.
|
|
9511
|
+
*
|
|
9512
|
+
* ```ts
|
|
9513
|
+
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
9514
|
+
* ```
|
|
9479
9515
|
*/
|
|
9480
9516
|
POST_NPC_UPDATE_FILTER = 52,
|
|
9481
9517
|
/**
|
|
@@ -10276,6 +10312,14 @@ export declare enum ModCallbackCustom {
|
|
|
10276
10312
|
* matches the variant provided.
|
|
10277
10313
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
10278
10314
|
* matches the sub-type provided.
|
|
10315
|
+
*
|
|
10316
|
+
* ```ts
|
|
10317
|
+
* function preNPCCollisionFilter(
|
|
10318
|
+
* npc: EntityNPC,
|
|
10319
|
+
* collider: Entity,
|
|
10320
|
+
* low: boolean,
|
|
10321
|
+
* ): boolean | undefined {}
|
|
10322
|
+
* ```
|
|
10279
10323
|
*/
|
|
10280
10324
|
PRE_NPC_COLLISION_FILTER = 99,
|
|
10281
10325
|
/**
|
|
@@ -10289,6 +10333,10 @@ export declare enum ModCallbackCustom {
|
|
|
10289
10333
|
* matches the variant provided.
|
|
10290
10334
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
10291
10335
|
* matches the sub-type provided.
|
|
10336
|
+
*
|
|
10337
|
+
* ```ts
|
|
10338
|
+
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
10339
|
+
* ```
|
|
10292
10340
|
*/
|
|
10293
10341
|
PRE_NPC_UPDATE_FILTER = 100
|
|
10294
10342
|
}
|
|
@@ -18,6 +18,16 @@ export declare enum ModCallbackCustom {
|
|
|
18
18
|
* matches the variant provided.
|
|
19
19
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
20
20
|
* matches the sub-type provided.
|
|
21
|
+
*
|
|
22
|
+
* ```ts
|
|
23
|
+
* function entityTakeDmgFilter(
|
|
24
|
+
* entity: Entity,
|
|
25
|
+
* amount: float,
|
|
26
|
+
* damageFlags: BitFlags<DamageFlag>,
|
|
27
|
+
* source: EntityRef,
|
|
28
|
+
* countdownFrames: int,
|
|
29
|
+
* ): boolean | undefined {}
|
|
30
|
+
* ```
|
|
21
31
|
*/
|
|
22
32
|
ENTITY_TAKE_DMG_FILTER = 0,
|
|
23
33
|
/**
|
|
@@ -29,6 +39,16 @@ export declare enum ModCallbackCustom {
|
|
|
29
39
|
* matches the `PlayerVariant` provided.
|
|
30
40
|
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
31
41
|
* matches the `PlayerType` provided.
|
|
42
|
+
*
|
|
43
|
+
* ```ts
|
|
44
|
+
* function entityTakeDmgPlayer(
|
|
45
|
+
* player: EntityPlayer,
|
|
46
|
+
* amount: float,
|
|
47
|
+
* damageFlags: BitFlags<DamageFlag>,
|
|
48
|
+
* source: EntityRef,
|
|
49
|
+
* countdownFrames: int,
|
|
50
|
+
* ): boolean | undefined {}
|
|
51
|
+
* ```
|
|
32
52
|
*/
|
|
33
53
|
ENTITY_TAKE_DMG_PLAYER = 1,
|
|
34
54
|
/**
|
|
@@ -789,6 +809,10 @@ export declare enum ModCallbackCustom {
|
|
|
789
809
|
* matches the variant provided.
|
|
790
810
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
791
811
|
* matches the sub-type provided.
|
|
812
|
+
*
|
|
813
|
+
* ```ts
|
|
814
|
+
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
815
|
+
* ```
|
|
792
816
|
*/
|
|
793
817
|
POST_NPC_DEATH_FILTER = 47,
|
|
794
818
|
/**
|
|
@@ -802,6 +826,10 @@ export declare enum ModCallbackCustom {
|
|
|
802
826
|
* matches the variant provided.
|
|
803
827
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
804
828
|
* matches the sub-type provided.
|
|
829
|
+
*
|
|
830
|
+
* ```ts
|
|
831
|
+
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
832
|
+
* ```
|
|
805
833
|
*/
|
|
806
834
|
POST_NPC_INIT_FILTER = 48,
|
|
807
835
|
/**
|
|
@@ -834,6 +862,10 @@ export declare enum ModCallbackCustom {
|
|
|
834
862
|
* matches the variant provided.
|
|
835
863
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
836
864
|
* matches the sub-type provided.
|
|
865
|
+
*
|
|
866
|
+
* ```ts
|
|
867
|
+
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
868
|
+
* ```
|
|
837
869
|
*/
|
|
838
870
|
POST_NPC_RENDER_FILTER = 50,
|
|
839
871
|
/**
|
|
@@ -868,6 +900,10 @@ export declare enum ModCallbackCustom {
|
|
|
868
900
|
* matches the variant provided.
|
|
869
901
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
870
902
|
* matches the sub-type provided.
|
|
903
|
+
*
|
|
904
|
+
* ```ts
|
|
905
|
+
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
906
|
+
* ```
|
|
871
907
|
*/
|
|
872
908
|
POST_NPC_UPDATE_FILTER = 52,
|
|
873
909
|
/**
|
|
@@ -1668,6 +1704,14 @@ export declare enum ModCallbackCustom {
|
|
|
1668
1704
|
* matches the variant provided.
|
|
1669
1705
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
1670
1706
|
* matches the sub-type provided.
|
|
1707
|
+
*
|
|
1708
|
+
* ```ts
|
|
1709
|
+
* function preNPCCollisionFilter(
|
|
1710
|
+
* npc: EntityNPC,
|
|
1711
|
+
* collider: Entity,
|
|
1712
|
+
* low: boolean,
|
|
1713
|
+
* ): boolean | undefined {}
|
|
1714
|
+
* ```
|
|
1671
1715
|
*/
|
|
1672
1716
|
PRE_NPC_COLLISION_FILTER = 99,
|
|
1673
1717
|
/**
|
|
@@ -1681,6 +1725,10 @@ export declare enum ModCallbackCustom {
|
|
|
1681
1725
|
* matches the variant provided.
|
|
1682
1726
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
1683
1727
|
* matches the sub-type provided.
|
|
1728
|
+
*
|
|
1729
|
+
* ```ts
|
|
1730
|
+
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
1731
|
+
* ```
|
|
1684
1732
|
*/
|
|
1685
1733
|
PRE_NPC_UPDATE_FILTER = 100
|
|
1686
1734
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModCallbackCustom.d.ts","sourceRoot":"","sources":["../../../src/enums/ModCallbackCustom.ts"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,oBAAY,iBAAiB;IAC3B
|
|
1
|
+
{"version":3,"file":"ModCallbackCustom.d.ts","sourceRoot":"","sources":["../../../src/enums/ModCallbackCustom.ts"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,oBAAY,iBAAiB;IAC3B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;OAWG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;;OAWG;IACH,mBAAmB,IAAA;IAEnB;;;;;;;;;;;;OAYG;IACH,kBAAkB,IAAA;IAElB;;;;;;;;;;;;;;;OAeG;IACH,mBAAmB,IAAA;IAEnB;;;;;;OAMG;IACH,eAAe,IAAA;IAEf;;;;;;;;;;;;;;OAcG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;;;;;;OAgBG;IACH,2BAA2B,IAAA;IAE3B;;;;;;;;;;;;;;OAcG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;;;;;;;OAgBG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;;;;;;OAcG;IACH,wBAAwB,KAAA;IAExB;;;;;;;;;;OAUG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;;OAUG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,KAAA;IAErB;;;;;;;;;;;;;;;;;OAiBG;IACH,yBAAyB,KAAA;IAEzB;;;;;;;OAOG;IACH,YAAY,KAAA;IAEZ;;;;;;;;;;;;;;;OAeG;IACH,uBAAuB,KAAA;IAEvB;;;;;;;;;;;;;;;;;;OAkBG;IACH,2BAA2B,KAAA;IAE3B;;;;;;;;;;OAUG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;;;OAWG;IACH,eAAe,KAAA;IAEf;;;;;;;;;;;OAWG;IACH,SAAS,KAAA;IAET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;;;;;;;;;OAkBG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;;;;;;;;;;OAkBG;IACH,eAAe,KAAA;IAEf;;;;;;;;;;;;OAYG;IACH,aAAa,KAAA;IAEb;;;;;;;;;;;;;;;;;;;OAmBG;IACH,wBAAwB,KAAA;IAExB;;;;;;;;;;;;;;;OAeG;IACH,qBAAqB,MAAA;CACtB"}
|
package/package.json
CHANGED
|
@@ -30,6 +30,16 @@ export enum ModCallbackCustom {
|
|
|
30
30
|
* matches the variant provided.
|
|
31
31
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
32
32
|
* matches the sub-type provided.
|
|
33
|
+
*
|
|
34
|
+
* ```ts
|
|
35
|
+
* function entityTakeDmgFilter(
|
|
36
|
+
* entity: Entity,
|
|
37
|
+
* amount: float,
|
|
38
|
+
* damageFlags: BitFlags<DamageFlag>,
|
|
39
|
+
* source: EntityRef,
|
|
40
|
+
* countdownFrames: int,
|
|
41
|
+
* ): boolean | undefined {}
|
|
42
|
+
* ```
|
|
33
43
|
*/
|
|
34
44
|
ENTITY_TAKE_DMG_FILTER,
|
|
35
45
|
|
|
@@ -42,6 +52,16 @@ export enum ModCallbackCustom {
|
|
|
42
52
|
* matches the `PlayerVariant` provided.
|
|
43
53
|
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
44
54
|
* matches the `PlayerType` provided.
|
|
55
|
+
*
|
|
56
|
+
* ```ts
|
|
57
|
+
* function entityTakeDmgPlayer(
|
|
58
|
+
* player: EntityPlayer,
|
|
59
|
+
* amount: float,
|
|
60
|
+
* damageFlags: BitFlags<DamageFlag>,
|
|
61
|
+
* source: EntityRef,
|
|
62
|
+
* countdownFrames: int,
|
|
63
|
+
* ): boolean | undefined {}
|
|
64
|
+
* ```
|
|
45
65
|
*/
|
|
46
66
|
ENTITY_TAKE_DMG_PLAYER,
|
|
47
67
|
|
|
@@ -848,6 +868,10 @@ export enum ModCallbackCustom {
|
|
|
848
868
|
* matches the variant provided.
|
|
849
869
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
850
870
|
* matches the sub-type provided.
|
|
871
|
+
*
|
|
872
|
+
* ```ts
|
|
873
|
+
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
874
|
+
* ```
|
|
851
875
|
*/
|
|
852
876
|
POST_NPC_DEATH_FILTER,
|
|
853
877
|
|
|
@@ -862,6 +886,10 @@ export enum ModCallbackCustom {
|
|
|
862
886
|
* matches the variant provided.
|
|
863
887
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
864
888
|
* matches the sub-type provided.
|
|
889
|
+
*
|
|
890
|
+
* ```ts
|
|
891
|
+
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
892
|
+
* ```
|
|
865
893
|
*/
|
|
866
894
|
POST_NPC_INIT_FILTER,
|
|
867
895
|
|
|
@@ -896,6 +924,10 @@ export enum ModCallbackCustom {
|
|
|
896
924
|
* matches the variant provided.
|
|
897
925
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
898
926
|
* matches the sub-type provided.
|
|
927
|
+
*
|
|
928
|
+
* ```ts
|
|
929
|
+
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
930
|
+
* ```
|
|
899
931
|
*/
|
|
900
932
|
POST_NPC_RENDER_FILTER,
|
|
901
933
|
|
|
@@ -932,6 +964,10 @@ export enum ModCallbackCustom {
|
|
|
932
964
|
* matches the variant provided.
|
|
933
965
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
934
966
|
* matches the sub-type provided.
|
|
967
|
+
*
|
|
968
|
+
* ```ts
|
|
969
|
+
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
970
|
+
* ```
|
|
935
971
|
*/
|
|
936
972
|
POST_NPC_UPDATE_FILTER,
|
|
937
973
|
|
|
@@ -1779,6 +1815,14 @@ export enum ModCallbackCustom {
|
|
|
1779
1815
|
* matches the variant provided.
|
|
1780
1816
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
1781
1817
|
* matches the sub-type provided.
|
|
1818
|
+
*
|
|
1819
|
+
* ```ts
|
|
1820
|
+
* function preNPCCollisionFilter(
|
|
1821
|
+
* npc: EntityNPC,
|
|
1822
|
+
* collider: Entity,
|
|
1823
|
+
* low: boolean,
|
|
1824
|
+
* ): boolean | undefined {}
|
|
1825
|
+
* ```
|
|
1782
1826
|
*/
|
|
1783
1827
|
PRE_NPC_COLLISION_FILTER,
|
|
1784
1828
|
|
|
@@ -1793,6 +1837,10 @@ export enum ModCallbackCustom {
|
|
|
1793
1837
|
* matches the variant provided.
|
|
1794
1838
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
1795
1839
|
* matches the sub-type provided.
|
|
1840
|
+
*
|
|
1841
|
+
* ```ts
|
|
1842
|
+
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
1843
|
+
* ```
|
|
1796
1844
|
*/
|
|
1797
1845
|
PRE_NPC_UPDATE_FILTER,
|
|
1798
1846
|
}
|