isaacscript-common 1.0.493 → 1.0.494

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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostBombInitLateCallbackType = (bomb: EntityBomb) => void;
3
3
  export declare function hasSubscriptions(): boolean;
4
- export declare function register(callback: PostBombInitLateCallbackType, bombVariant?: BombVariant): void;
4
+ export declare function register(callback: PostBombInitLateCallbackType, bombVariant?: BombVariant | int): void;
5
5
  export declare function fire(bomb: EntityBomb): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostFamiliarInitLateCallbackType = (familiar: EntityFamiliar) => void;
3
3
  export declare function hasSubscriptions(): boolean;
4
- export declare function register(callback: PostFamiliarInitLateCallbackType, familiarVariant?: FamiliarVariant): void;
4
+ export declare function register(callback: PostFamiliarInitLateCallbackType, familiarVariant?: FamiliarVariant | int): void;
5
5
  export declare function fire(familiar: EntityFamiliar): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostKnifeInitLateCallbackType = (knife: EntityKnife) => void;
3
3
  export declare function hasSubscriptions(): boolean;
4
- export declare function register(callback: PostKnifeInitLateCallbackType, knifeVariant?: KnifeVariant): void;
4
+ export declare function register(callback: PostKnifeInitLateCallbackType, knifeVariant?: KnifeVariant | int): void;
5
5
  export declare function fire(knife: EntityKnife): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostLaserInitLateCallbackType = (laser: EntityLaser) => void;
3
3
  export declare function hasSubscriptions(): boolean;
4
- export declare function register(callback: PostLaserInitLateCallbackType, laserVariant?: LaserVariant): void;
4
+ export declare function register(callback: PostLaserInitLateCallbackType, laserVariant?: LaserVariant | int): void;
5
5
  export declare function fire(laser: EntityLaser): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostPickupCollectCallbackType = (pickup: EntityPickup, player: EntityPlayer) => void;
3
3
  export declare function hasSubscriptions(): boolean;
4
- export declare function register(callback: PostPickupCollectCallbackType, pickupVariant?: PickupVariant): void;
4
+ export declare function register(callback: PostPickupCollectCallbackType, pickupVariant?: PickupVariant | int): void;
5
5
  export declare function fire(pickup: EntityPickup, player: EntityPlayer): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostPickupInitLateCallbackType = (pickup: EntityPickup) => void;
3
3
  export declare function hasSubscriptions(): boolean;
4
- export declare function register(callback: PostPickupInitLateCallbackType, pickupVariant?: PickupVariant): void;
4
+ export declare function register(callback: PostPickupInitLateCallbackType, pickupVariant?: PickupVariant | int): void;
5
5
  export declare function fire(pickup: EntityPickup): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostProjectileInitLateCallbackType = (projectile: EntityProjectile) => void;
3
3
  export declare function hasSubscriptions(): boolean;
4
- export declare function register(callback: PostProjectileInitLateCallbackType, projectileVariant?: ProjectileVariant): void;
4
+ export declare function register(callback: PostProjectileInitLateCallbackType, projectileVariant?: ProjectileVariant | int): void;
5
5
  export declare function fire(projectile: EntityProjectile): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPurchaseCallbackType = (player: EntityPlayer, pickupVariant: PickupVariant, pickupSubType: int, pickupPrice: int) => void;
2
+ export declare type PostPurchaseCallbackType = (player: EntityPlayer, pickupVariant: PickupVariant | int, pickupSubType: int, pickupPrice: int) => void;
3
3
  export declare function hasSubscriptions(): boolean;
4
- export declare function register(callback: PostPurchaseCallbackType, pickupVariant?: PickupVariant, pickupSubType?: int): void;
5
- export declare function fire(player: EntityPlayer, pickupVariant: PickupVariant, pickupSubType: int, pickupPrice: int): void;
4
+ export declare function register(callback: PostPurchaseCallbackType, pickupVariant?: PickupVariant | int, pickupSubType?: int): void;
5
+ export declare function fire(player: EntityPlayer, pickupVariant: PickupVariant | int, pickupSubType: int, pickupPrice: int): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostTearInitLateCallbackType = (tear: EntityTear) => void;
3
3
  export declare function hasSubscriptions(): boolean;
4
- export declare function register(callback: PostTearInitLateCallbackType, tearVariant?: TearVariant): void;
4
+ export declare function register(callback: PostTearInitLateCallbackType, tearVariant?: TearVariant | int): void;
5
5
  export declare function fire(tear: EntityTear): void;
@@ -166,7 +166,7 @@ export declare function removeEntities(entities: Entity[], cap?: int): void;
166
166
  * @param subType Optional. If specified, will only remove bombs that match this sub-type.
167
167
  * @param cap Optional. If specified, will only remove the given amount of bombs.
168
168
  */
169
- export declare function removeAllBombs(variant?: BombVariant, subType?: int, cap?: int): void;
169
+ export declare function removeAllBombs(variant?: BombVariant | int, subType?: int, cap?: int): void;
170
170
  /**
171
171
  * Helper function to remove all of the effects in the room.
172
172
  *
@@ -182,7 +182,7 @@ export declare function removeAllEffects(variant?: EffectVariant, subType?: int,
182
182
  * @param subType Optional. If specified, will only remove familiars that match this sub-type.
183
183
  * @param cap Optional. If specified, will only remove the given amount of familiars.
184
184
  */
185
- export declare function removeAllFamiliars(variant?: FamiliarVariant, subType?: int, cap?: int): void;
185
+ export declare function removeAllFamiliars(variant?: FamiliarVariant | int, subType?: int, cap?: int): void;
186
186
  /**
187
187
  * Helper function to remove all of the knives in the room.
188
188
  *
@@ -190,7 +190,7 @@ export declare function removeAllFamiliars(variant?: FamiliarVariant, subType?:
190
190
  * @param subType Optional. If specified, will only remove knives that match this sub-type.
191
191
  * @param cap Optional. If specified, will only remove the given amount of knives.
192
192
  */
193
- export declare function removeAllKnives(variant?: KnifeVariant, subType?: int, cap?: int): void;
193
+ export declare function removeAllKnives(variant?: KnifeVariant | int, subType?: int, cap?: int): void;
194
194
  /**
195
195
  * Helper function to remove all of the lasers in the room.
196
196
  *
@@ -198,7 +198,7 @@ export declare function removeAllKnives(variant?: KnifeVariant, subType?: int, c
198
198
  * @param subType Optional. If specified, will only remove lasers that match this sub-type.
199
199
  * @param cap Optional. If specified, will only remove the given amount of lasers.
200
200
  */
201
- export declare function removeAllLasers(variant?: LaserVariant, subType?: int, cap?: int): void;
201
+ export declare function removeAllLasers(variant?: LaserVariant | int, subType?: int, cap?: int): void;
202
202
  /**
203
203
  * Helper function to remove all of the matching entities in the room.
204
204
  *
@@ -217,7 +217,7 @@ export declare function removeAllMatchingEntities(entityType: int, entityVariant
217
217
  * @param subType Optional. If specified, will only remove pickups that match this sub-type.
218
218
  * @param cap Optional. If specified, will only remove the given amount of pickups.
219
219
  */
220
- export declare function removeAllPickups(variant?: PickupVariant, subType?: int, cap?: int): void;
220
+ export declare function removeAllPickups(variant?: PickupVariant | int, subType?: int, cap?: int): void;
221
221
  /**
222
222
  * Helper function to remove all of the projectiles in the room.
223
223
  *
@@ -225,7 +225,7 @@ export declare function removeAllPickups(variant?: PickupVariant, subType?: int,
225
225
  * @param subType Optional. If specified, will only remove projectiles that match this sub-type.
226
226
  * @param cap Optional. If specified, will only remove the given amount of projectiles.
227
227
  */
228
- export declare function removeAllProjectiles(variant?: ProjectileVariant, subType?: int, cap?: int): void;
228
+ export declare function removeAllProjectiles(variant?: ProjectileVariant | int, subType?: int, cap?: int): void;
229
229
  /**
230
230
  * Helper function to remove all of the tears in the room.
231
231
  *
@@ -233,7 +233,7 @@ export declare function removeAllProjectiles(variant?: ProjectileVariant, subTyp
233
233
  * @param subType Optional. If specified, will only remove tears that match this sub-type.
234
234
  * @param cap Optional. If specified, will only remove the given amount of tears.
235
235
  */
236
- export declare function removeAllTears(variant?: TearVariant, subType?: int, cap?: int): void;
236
+ export declare function removeAllTears(variant?: TearVariant | int, subType?: int, cap?: int): void;
237
237
  /**
238
238
  * Helper function to set the position of every entity in the room based on a map of positions. If
239
239
  * an entity is found that does not have matching element in the provided map, then that entity will
@@ -67,31 +67,31 @@ export interface CallbackParametersCustom {
67
67
  ];
68
68
  [ModCallbacksCustom.MC_POST_TEAR_INIT_LATE]: [
69
69
  callback: PostTearInitLateCallbackType,
70
- tearVariant?: TearVariant
70
+ tearVariant?: TearVariant | int
71
71
  ];
72
72
  [ModCallbacksCustom.MC_POST_FAMILIAR_INIT_LATE]: [
73
73
  callback: PostFamiliarInitLateCallbackType,
74
- familiarVariant?: FamiliarVariant
74
+ familiarVariant?: FamiliarVariant | int
75
75
  ];
76
76
  [ModCallbacksCustom.MC_POST_BOMB_INIT_LATE]: [
77
77
  callback: PostBombInitLateCallbackType,
78
- bombVariant?: BombVariant
78
+ bombVariant?: BombVariant | int
79
79
  ];
80
80
  [ModCallbacksCustom.MC_POST_PICKUP_INIT_LATE]: [
81
81
  callback: PostPickupInitLateCallbackType,
82
- pickupVariant?: PickupVariant
82
+ pickupVariant?: PickupVariant | int
83
83
  ];
84
84
  [ModCallbacksCustom.MC_POST_LASER_INIT_LATE]: [
85
85
  callback: PostLaserInitLateCallbackType,
86
- laserVariant?: LaserVariant
86
+ laserVariant?: LaserVariant | int
87
87
  ];
88
88
  [ModCallbacksCustom.MC_POST_KNIFE_INIT_LATE]: [
89
89
  callback: PostKnifeInitLateCallbackType,
90
- knifeVariant?: KnifeVariant
90
+ knifeVariant?: KnifeVariant | int
91
91
  ];
92
92
  [ModCallbacksCustom.MC_POST_PROJECTILE_INIT_LATE]: [
93
93
  callback: PostProjectileInitLateCallbackType,
94
- projectileVariant?: ProjectileVariant
94
+ projectileVariant?: ProjectileVariant | int
95
95
  ];
96
96
  [ModCallbacksCustom.MC_POST_NPC_INIT_LATE]: [
97
97
  callback: PostNPCInitLateCallbackType,
@@ -103,7 +103,7 @@ export interface CallbackParametersCustom {
103
103
  ];
104
104
  [ModCallbacksCustom.MC_POST_PICKUP_COLLECT]: [
105
105
  callback: PostPickupCollectCallbackType,
106
- pickupVariant?: PickupVariant
106
+ pickupVariant?: PickupVariant | int
107
107
  ];
108
108
  [ModCallbacksCustom.MC_PRE_ITEM_PICKUP]: [
109
109
  callback: PreItemPickupCallbackType,
@@ -146,7 +146,7 @@ export interface CallbackParametersCustom {
146
146
  ];
147
147
  [ModCallbacksCustom.MC_POST_PURCHASE]: [
148
148
  callback: PostPurchaseCallbackType,
149
- pickupVariant?: PickupVariant,
149
+ pickupVariant?: PickupVariant | int,
150
150
  pickupSubType?: int
151
151
  ];
152
152
  [ModCallbacksCustom.MC_POST_SACRIFICE]: [callback: PostSacrificeCallbackType];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.493",
3
+ "version": "1.0.494",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",