isaacscript-common 1.2.237 → 1.2.238
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.
|
@@ -198,34 +198,38 @@ export declare function removeAllSlots(variant?: SlotVariant | int, subType?: in
|
|
|
198
198
|
*/
|
|
199
199
|
export declare function removeAllTears(variant?: TearVariant | int, subType?: int, cap?: int): boolean;
|
|
200
200
|
/** Helper function to spawn a `EntityType.ENTITY_BOMB` (4). */
|
|
201
|
-
export declare function spawnBomb(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityBomb;
|
|
201
|
+
export declare function spawnBomb(variant: BombVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityBomb;
|
|
202
202
|
/** Helper function to spawn a `EntityType.ENTITY_BOMB` (4) with a specific seed. */
|
|
203
|
-
export declare function spawnBombWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityBomb;
|
|
203
|
+
export declare function spawnBombWithSeed(variant: BombVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityBomb;
|
|
204
204
|
/** Helper function to spawn a `EntityType.ENTITY_EFFECT` (1000). */
|
|
205
|
-
export declare function spawnEffect(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityEffect;
|
|
205
|
+
export declare function spawnEffect(variant: EffectVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityEffect;
|
|
206
206
|
/** Helper function to spawn a `EntityType.ENTITY_EFFECT` (1000) with a specific seed. */
|
|
207
|
-
export declare function spawnEffectWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityEffect;
|
|
207
|
+
export declare function spawnEffectWithSeed(variant: EffectVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityEffect;
|
|
208
208
|
/** Helper function to spawn a `EntityType.ENTITY_FAMILIAR` (3). */
|
|
209
|
-
export declare function spawnFamiliar(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityFamiliar;
|
|
209
|
+
export declare function spawnFamiliar(variant: FamiliarVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityFamiliar;
|
|
210
210
|
/** Helper function to spawn a `EntityType.ENTITY_FAMILIAR` (3) with a specific seed. */
|
|
211
|
-
export declare function spawnFamiliarWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityFamiliar;
|
|
211
|
+
export declare function spawnFamiliarWithSeed(variant: FamiliarVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityFamiliar;
|
|
212
212
|
/** Helper function to spawn a `EntityType.ENTITY_KNIFE` (8). */
|
|
213
|
-
export declare function spawnKnife(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityKnife;
|
|
213
|
+
export declare function spawnKnife(variant: KnifeVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityKnife;
|
|
214
214
|
/** Helper function to spawn a `EntityType.ENTITY_KNIFE` (8) with a specific seed. */
|
|
215
|
-
export declare function spawnKnifeWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityKnife;
|
|
215
|
+
export declare function spawnKnifeWithSeed(variant: KnifeVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityKnife;
|
|
216
216
|
/** Helper function to spawn a `EntityType.ENTITY_LASER` (7). */
|
|
217
|
-
export declare function spawnLaser(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityLaser;
|
|
217
|
+
export declare function spawnLaser(variant: LaserVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityLaser;
|
|
218
218
|
/** Helper function to spawn a `EntityType.ENTITY_LASER` (7) with a specific seed. */
|
|
219
|
-
export declare function spawnLaserWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityLaser;
|
|
219
|
+
export declare function spawnLaserWithSeed(variant: LaserVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityLaser;
|
|
220
220
|
/** Helper function to spawn a `EntityType.ENTITY_PICKUP` (5). */
|
|
221
|
-
export declare function spawnPickup(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
221
|
+
export declare function spawnPickup(variant: PickupVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
|
|
222
222
|
/** Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with a specific seed. */
|
|
223
|
-
export declare function spawnPickupWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
223
|
+
export declare function spawnPickupWithSeed(variant: PickupVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
|
|
224
224
|
/** Helper function to spawn a `EntityType.ENTITY_PROJECTILE` (9). */
|
|
225
|
-
export declare function spawnProjectile(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityProjectile;
|
|
225
|
+
export declare function spawnProjectile(variant: ProjectileVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityProjectile;
|
|
226
226
|
/** Helper function to spawn a `EntityType.ENTITY_PROJECTILE` (9) with a specific seed. */
|
|
227
|
-
export declare function spawnProjectileWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityProjectile;
|
|
227
|
+
export declare function spawnProjectileWithSeed(variant: ProjectileVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityProjectile;
|
|
228
|
+
/** Helper function to spawn a `EntityType.ENTITY_SLOT` (6). */
|
|
229
|
+
export declare function spawnSlot(variant: SlotVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): Entity;
|
|
230
|
+
/** Helper function to spawn a `EntityType.ENTITY_SLOT` (6) with a specific seed. */
|
|
231
|
+
export declare function spawnSlotWithSeed(variant: int | SlotVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): Entity;
|
|
228
232
|
/** Helper function to spawn a `EntityType.ENTITY_TEAR` (2). */
|
|
229
233
|
export declare function spawnTear(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityTear;
|
|
230
234
|
/** Helper function to spawn a `EntityType.EntityType` (2) with a specific seed. */
|
|
231
|
-
export declare function spawnTearWithSeed(variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityTear;
|
|
235
|
+
export declare function spawnTearWithSeed(variant: TearVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityTear;
|
|
@@ -514,6 +514,44 @@ function ____exports.spawnProjectileWithSeed(self, variant, subType, position, s
|
|
|
514
514
|
seed
|
|
515
515
|
)
|
|
516
516
|
end
|
|
517
|
+
function ____exports.spawnSlot(self, variant, subType, position, velocity, spawner, seed)
|
|
518
|
+
if velocity == nil then
|
|
519
|
+
velocity = VectorZero
|
|
520
|
+
end
|
|
521
|
+
if spawner == nil then
|
|
522
|
+
spawner = nil
|
|
523
|
+
end
|
|
524
|
+
if seed == nil then
|
|
525
|
+
seed = nil
|
|
526
|
+
end
|
|
527
|
+
return spawn(
|
|
528
|
+
nil,
|
|
529
|
+
EntityType.ENTITY_SLOT,
|
|
530
|
+
variant,
|
|
531
|
+
subType,
|
|
532
|
+
position,
|
|
533
|
+
velocity,
|
|
534
|
+
spawner,
|
|
535
|
+
seed
|
|
536
|
+
)
|
|
537
|
+
end
|
|
538
|
+
function ____exports.spawnSlotWithSeed(self, variant, subType, position, seed, velocity, spawner)
|
|
539
|
+
if velocity == nil then
|
|
540
|
+
velocity = VectorZero
|
|
541
|
+
end
|
|
542
|
+
if spawner == nil then
|
|
543
|
+
spawner = nil
|
|
544
|
+
end
|
|
545
|
+
return ____exports.spawnSlot(
|
|
546
|
+
nil,
|
|
547
|
+
variant,
|
|
548
|
+
subType,
|
|
549
|
+
position,
|
|
550
|
+
velocity,
|
|
551
|
+
spawner,
|
|
552
|
+
seed
|
|
553
|
+
)
|
|
554
|
+
end
|
|
517
555
|
function ____exports.spawnTear(self, variant, subType, position, velocity, spawner, seed)
|
|
518
556
|
if velocity == nil then
|
|
519
557
|
velocity = VectorZero
|