isaacscript-common 87.8.2 → 87.8.3
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/classes/ModFeature.d.ts.map +1 -1
- package/dist/classes/ModFeature.js +2 -0
- package/dist/classes/ModUpgraded.d.ts.map +1 -1
- package/dist/classes/ModUpgraded.js +1 -0
- package/dist/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/classes/features/other/CustomTrapdoors.js +4 -1
- package/dist/classes/features/other/CustomTrapdoors.lua +3 -1
- package/dist/classes/features/other/FastReset.d.ts.map +1 -1
- package/dist/classes/features/other/FastReset.js +5 -1
- package/dist/classes/features/other/FastReset.lua +4 -1
- package/dist/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/classes/features/other/Pause.js +11 -1
- package/dist/classes/features/other/Pause.lua +14 -3
- package/dist/classes/features/other/saveDataManager/restoreDefaults.js +1 -1
- package/dist/classes/features/other/saveDataManager/restoreDefaults.lua +1 -1
- package/dist/enums/ModCallbackCustom.d.ts +10 -8
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.js +10 -8
- package/dist/functions/bosses.d.ts +2 -2
- package/dist/functions/bosses.d.ts.map +1 -1
- package/dist/functions/bosses.js +2 -2
- package/dist/functions/deepCopyTests.js +10 -16
- package/dist/functions/deepCopyTests.lua +8 -16
- package/dist/functions/entities.d.ts +4 -4
- package/dist/functions/entities.d.ts.map +1 -1
- package/dist/functions/entities.js +4 -4
- package/dist/functions/entitiesSpecific.d.ts +20 -20
- package/dist/functions/entitiesSpecific.d.ts.map +1 -1
- package/dist/functions/entitiesSpecific.js +20 -20
- package/dist/functions/pickupsSpecific.d.ts +18 -18
- package/dist/functions/pickupsSpecific.d.ts.map +1 -1
- package/dist/functions/pickupsSpecific.js +18 -18
- package/dist/index.rollup.d.ts +54 -52
- package/dist/isaacscript-common.lua +668 -40
- package/dist/objects/backdropTypeToRockAltType.d.ts +2 -0
- package/dist/objects/backdropTypeToRockAltType.d.ts.map +1 -1
- package/dist/objects/backdropTypeToRockAltType.js +2 -0
- package/dist/objects/backdropTypeToRockAltType.lua +3 -1
- package/dist/objects/roomTypeNames.d.ts +1 -0
- package/dist/objects/roomTypeNames.d.ts.map +1 -1
- package/dist/objects/roomTypeNames.js +1 -0
- package/dist/objects/roomTypeNames.lua +2 -1
- package/dist/objects/roomTypeSpecialGotoPrefixes.d.ts +1 -0
- package/dist/objects/roomTypeSpecialGotoPrefixes.d.ts.map +1 -1
- package/dist/objects/roomTypeSpecialGotoPrefixes.js +1 -0
- package/dist/objects/roomTypeSpecialGotoPrefixes.lua +2 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +6 -6
- package/src/classes/ModFeature.ts +2 -0
- package/src/classes/ModUpgraded.ts +1 -0
- package/src/classes/features/other/CustomTrapdoors.ts +5 -2
- package/src/classes/features/other/FastReset.ts +5 -1
- package/src/classes/features/other/Pause.ts +15 -2
- package/src/classes/features/other/saveDataManager/restoreDefaults.ts +1 -1
- package/src/enums/ModCallbackCustom.ts +10 -8
- package/src/functions/bosses.ts +3 -3
- package/src/functions/deepCopyTests.ts +10 -16
- package/src/functions/entities.ts +6 -6
- package/src/functions/entitiesSpecific.ts +30 -30
- package/src/functions/pickupsSpecific.ts +27 -27
- package/src/objects/backdropTypeToRockAltType.ts +2 -0
- package/src/objects/roomTypeNames.ts +1 -0
- package/src/objects/roomTypeSpecialGotoPrefixes.ts +1 -0
package/dist/index.rollup.d.ts
CHANGED
|
@@ -11846,10 +11846,11 @@ export declare enum ModCallbackCustom {
|
|
|
11846
11846
|
*
|
|
11847
11847
|
* `POST_GAME_STARTED_REORDERED` --> `POST_NEW_LEVEL_REORDERED` --> `POST_NEW_ROOM_REORDERED`
|
|
11848
11848
|
*
|
|
11849
|
-
*
|
|
11850
|
-
*
|
|
11851
|
-
*
|
|
11852
|
-
*
|
|
11849
|
+
* You must provide a third argument:
|
|
11850
|
+
*
|
|
11851
|
+
* - Pass true if you want the callback to only fire if the run is continued.
|
|
11852
|
+
* - Pass false if you want the callback to only fire when the run is not continued.
|
|
11853
|
+
* - Pass undefined if you want the callback to fire in both situations.
|
|
11853
11854
|
*
|
|
11854
11855
|
* (The third argument for this callback is mandatory in order to prevent users from shooting
|
|
11855
11856
|
* themselves in the foot with respect to logic unexpectedly being executed on continued runs.)
|
|
@@ -11865,10 +11866,11 @@ export declare enum ModCallbackCustom {
|
|
|
11865
11866
|
* new run has started (or continued), but you can be sure that all new-run-related initialization
|
|
11866
11867
|
* has been completed.
|
|
11867
11868
|
*
|
|
11868
|
-
*
|
|
11869
|
-
*
|
|
11870
|
-
*
|
|
11871
|
-
*
|
|
11869
|
+
* You must provide a third argument:
|
|
11870
|
+
*
|
|
11871
|
+
* - Pass true if you want the callback to only fire if the run is continued.
|
|
11872
|
+
* - Pass false if you want the callback to only fire when the run is not continued.
|
|
11873
|
+
* - Pass undefined if you want the callback to fire in both situations.
|
|
11872
11874
|
*
|
|
11873
11875
|
* (The third argument for this callback is mandatory in order to prevent users from shooting
|
|
11874
11876
|
* themselves in the foot with respect to logic unexpectedly being executed on continued runs.)
|
|
@@ -16423,7 +16425,7 @@ export declare function removeAllLasers(laserVariant?: LaserVariant | -1, subTyp
|
|
|
16423
16425
|
* @param cap Optional. If specified, will only remove the given amount of collectibles.
|
|
16424
16426
|
* @returns An array of the entities that were removed.
|
|
16425
16427
|
*/
|
|
16426
|
-
export declare function removeAllMatchingEntities(entityType: EntityType, entityVariant?: number, entitySubType?: number, cap?: int
|
|
16428
|
+
export declare function removeAllMatchingEntities(entityType: EntityType, entityVariant?: number, entitySubType?: number, cap?: int): readonly Entity[];
|
|
16427
16429
|
|
|
16428
16430
|
/**
|
|
16429
16431
|
* Helper function to remove all of the grid entities in the room that match the grid entity types
|
|
@@ -18355,33 +18357,33 @@ export declare type SoulHeartType = HeartSubType.SOUL | HeartSubType.BLACK | Hea
|
|
|
18355
18357
|
* entity. Default is undefined, which will make the entity spawn with a random
|
|
18356
18358
|
* seed.
|
|
18357
18359
|
*/
|
|
18358
|
-
export declare function spawn(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18360
|
+
export declare function spawn(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): Entity;
|
|
18359
18361
|
|
|
18360
18362
|
/**
|
|
18361
18363
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.LIL_BATTERY` (90).
|
|
18362
18364
|
*/
|
|
18363
|
-
export declare function spawnBattery(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18365
|
+
export declare function spawnBattery(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupBattery;
|
|
18364
18366
|
|
|
18365
18367
|
/**
|
|
18366
18368
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.LIL_BATTERY` (90)
|
|
18367
18369
|
* and a specific seed.
|
|
18368
18370
|
*/
|
|
18369
|
-
export declare function spawnBatteryWithSeed(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18371
|
+
export declare function spawnBatteryWithSeed(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupBattery;
|
|
18370
18372
|
|
|
18371
18373
|
/** Helper function to spawn a `EntityType.BOMB` (4). */
|
|
18372
|
-
export declare function spawnBomb(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18374
|
+
export declare function spawnBomb(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityBomb;
|
|
18373
18375
|
|
|
18374
18376
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.BOMB` (40). */
|
|
18375
|
-
export declare function spawnBombPickup(bombSubType: BombSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18377
|
+
export declare function spawnBombPickup(bombSubType: BombSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupBomb;
|
|
18376
18378
|
|
|
18377
18379
|
/**
|
|
18378
18380
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.BOMB` (40) and a
|
|
18379
18381
|
* specific seed.
|
|
18380
18382
|
*/
|
|
18381
|
-
export declare function spawnBombPickupWithSeed(bombSubType: BombSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18383
|
+
export declare function spawnBombPickupWithSeed(bombSubType: BombSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupBomb;
|
|
18382
18384
|
|
|
18383
18385
|
/** Helper function to spawn a `EntityType.BOMB` (4) with a specific seed. */
|
|
18384
|
-
export declare function spawnBombWithSeed(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18386
|
+
export declare function spawnBombWithSeed(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityBomb;
|
|
18385
18387
|
|
|
18386
18388
|
/**
|
|
18387
18389
|
* Helper function to spawn a boss.
|
|
@@ -18393,32 +18395,32 @@ export declare function spawnBombWithSeed(bombVariant: BombVariant, subType: int
|
|
|
18393
18395
|
* Gurglings/Turdlings with 2 copies, and other multi-segment bosses with 4 segments. You can
|
|
18394
18396
|
* customize this via the "numSegments" argument.
|
|
18395
18397
|
*/
|
|
18396
|
-
export declare function spawnBoss(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18398
|
+
export declare function spawnBoss(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG, numSegments?: int): EntityNPC;
|
|
18397
18399
|
|
|
18398
18400
|
/**
|
|
18399
18401
|
* Helper function to spawn a boss with a specific seed.
|
|
18400
18402
|
*
|
|
18401
18403
|
* For more information, see the documentation for the `spawnBoss` function.
|
|
18402
18404
|
*/
|
|
18403
|
-
export declare function spawnBossWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18405
|
+
export declare function spawnBossWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity, numSegments?: int): EntityNPC;
|
|
18404
18406
|
|
|
18405
18407
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.CARD` (300). */
|
|
18406
|
-
export declare function spawnCard(cardType: CardType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18408
|
+
export declare function spawnCard(cardType: CardType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupCard;
|
|
18407
18409
|
|
|
18408
18410
|
/**
|
|
18409
18411
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.CARD` (300) and a
|
|
18410
18412
|
* specific seed.
|
|
18411
18413
|
*/
|
|
18412
|
-
export declare function spawnCardWithSeed(cardType: CardType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18414
|
+
export declare function spawnCardWithSeed(cardType: CardType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupCard;
|
|
18413
18415
|
|
|
18414
18416
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.COIN` (20). */
|
|
18415
|
-
export declare function spawnCoin(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18417
|
+
export declare function spawnCoin(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupCoin;
|
|
18416
18418
|
|
|
18417
18419
|
/**
|
|
18418
18420
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.COIN` (20) and a
|
|
18419
18421
|
* specific seed.
|
|
18420
18422
|
*/
|
|
18421
|
-
export declare function spawnCoinWithSeed(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18423
|
+
export declare function spawnCoinWithSeed(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupCoin;
|
|
18422
18424
|
|
|
18423
18425
|
/**
|
|
18424
18426
|
* Helper function to spawn a collectible.
|
|
@@ -18481,10 +18483,10 @@ export declare function spawnDoor(gridIndexOrPosition: int | Vector): GridEntity
|
|
|
18481
18483
|
export declare function spawnDoorWithVariant(doorVariant: DoorVariant, gridIndexOrPosition: int | Vector): GridEntityDoor | undefined;
|
|
18482
18484
|
|
|
18483
18485
|
/** Helper function to spawn a `EntityType.EFFECT` (1000). */
|
|
18484
|
-
export declare function spawnEffect(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18486
|
+
export declare function spawnEffect(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityEffect;
|
|
18485
18487
|
|
|
18486
18488
|
/** Helper function to spawn a `EntityType.EFFECT` (1000) with a specific seed. */
|
|
18487
|
-
export declare function spawnEffectWithSeed(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18489
|
+
export declare function spawnEffectWithSeed(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityEffect;
|
|
18488
18490
|
|
|
18489
18491
|
/**
|
|
18490
18492
|
* Helper function to spawn an empty collectible. Doing this is tricky since spawning a collectible
|
|
@@ -18517,7 +18519,7 @@ export declare function spawnEmptyCollectible(positionOrGridIndex: Vector | int,
|
|
|
18517
18519
|
* entity. Default is undefined, which will make the entity spawn with a random
|
|
18518
18520
|
* seed using the `Isaac.Spawn` method.
|
|
18519
18521
|
*/
|
|
18520
|
-
export declare function spawnEntityID(entityID: EntityID, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18522
|
+
export declare function spawnEntityID(entityID: EntityID, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): Entity;
|
|
18521
18523
|
|
|
18522
18524
|
/**
|
|
18523
18525
|
* Helper function to spawn a `EntityType.FAMILIAR` (3).
|
|
@@ -18525,10 +18527,10 @@ export declare function spawnEntityID(entityID: EntityID, positionOrGridIndex: V
|
|
|
18525
18527
|
* If you are trying to implement a custom familiar, you probably want to use the
|
|
18526
18528
|
* `checkFamiliarFromCollectibles` helper function instead.
|
|
18527
18529
|
*/
|
|
18528
|
-
export declare function spawnFamiliar(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18530
|
+
export declare function spawnFamiliar(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityFamiliar;
|
|
18529
18531
|
|
|
18530
18532
|
/** Helper function to spawn a `EntityType.FAMILIAR` (3) with a specific seed. */
|
|
18531
|
-
export declare function spawnFamiliarWithSeed(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18533
|
+
export declare function spawnFamiliarWithSeed(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityFamiliar;
|
|
18532
18534
|
|
|
18533
18535
|
/**
|
|
18534
18536
|
* Helper function to spawn a giant poop. This is performed by spawning each of the four quadrant
|
|
@@ -18581,30 +18583,30 @@ export declare function spawnGridEntity(gridEntityType: GridEntityType, gridInde
|
|
|
18581
18583
|
export declare function spawnGridEntityWithVariant(gridEntityType: GridEntityType, variant: int, gridIndexOrPosition: int | Vector, removeExistingGridEntity?: boolean): GridEntity | undefined;
|
|
18582
18584
|
|
|
18583
18585
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.HEART` (10). */
|
|
18584
|
-
export declare function spawnHeart(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18586
|
+
export declare function spawnHeart(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupHeart;
|
|
18585
18587
|
|
|
18586
|
-
export declare function spawnHeartWithSeed(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18588
|
+
export declare function spawnHeartWithSeed(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupHeart;
|
|
18587
18589
|
|
|
18588
18590
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.KEY` (30). */
|
|
18589
|
-
export declare function spawnKey(keySubType: KeySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18591
|
+
export declare function spawnKey(keySubType: KeySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupKey;
|
|
18590
18592
|
|
|
18591
18593
|
/**
|
|
18592
18594
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.KEY` (30) and a
|
|
18593
18595
|
* specific seed.
|
|
18594
18596
|
*/
|
|
18595
|
-
export declare function spawnKeyWithSeed(keySubType: KeySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18597
|
+
export declare function spawnKeyWithSeed(keySubType: KeySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupKey;
|
|
18596
18598
|
|
|
18597
18599
|
/** Helper function to spawn a `EntityType.KNIFE` (8). */
|
|
18598
|
-
export declare function spawnKnife(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18600
|
+
export declare function spawnKnife(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityKnife;
|
|
18599
18601
|
|
|
18600
18602
|
/** Helper function to spawn a `EntityType.KNIFE` (8) with a specific seed. */
|
|
18601
|
-
export declare function spawnKnifeWithSeed(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18603
|
+
export declare function spawnKnifeWithSeed(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityKnife;
|
|
18602
18604
|
|
|
18603
18605
|
/** Helper function to spawn a `EntityType.LASER` (7). */
|
|
18604
|
-
export declare function spawnLaser(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18606
|
+
export declare function spawnLaser(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityLaser;
|
|
18605
18607
|
|
|
18606
18608
|
/** Helper function to spawn a `EntityType.LASER` (7) with a specific seed. */
|
|
18607
|
-
export declare function spawnLaserWithSeed(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18609
|
+
export declare function spawnLaserWithSeed(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityLaser;
|
|
18608
18610
|
|
|
18609
18611
|
/**
|
|
18610
18612
|
* Helper function to spawn an NPC.
|
|
@@ -18612,7 +18614,7 @@ export declare function spawnLaserWithSeed(laserVariant: LaserVariant, subType:
|
|
|
18612
18614
|
* Note that if you pass a non-NPC `EntityType` to this function, it will cause a run-time error,
|
|
18613
18615
|
* since the `Entity.ToNPC` method will return undefined.
|
|
18614
18616
|
*/
|
|
18615
|
-
export declare function spawnNPC(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18617
|
+
export declare function spawnNPC(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityNPC;
|
|
18616
18618
|
|
|
18617
18619
|
/**
|
|
18618
18620
|
* Helper function to spawn an NPC with a specific seed.
|
|
@@ -18620,22 +18622,22 @@ export declare function spawnNPC(entityType: EntityType, variant: int, subType:
|
|
|
18620
18622
|
* Note that if you pass a non-NPC `EntityType` to this function, it will cause a run-time error,
|
|
18621
18623
|
* since the `Entity.ToNPC` method will return undefined.
|
|
18622
18624
|
*/
|
|
18623
|
-
export declare function spawnNPCWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18625
|
+
export declare function spawnNPCWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityNPC;
|
|
18624
18626
|
|
|
18625
18627
|
/** Helper function to spawn a `EntityType.PICKUP` (5). */
|
|
18626
|
-
export declare function spawnPickup(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18628
|
+
export declare function spawnPickup(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickup;
|
|
18627
18629
|
|
|
18628
18630
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with a specific seed. */
|
|
18629
|
-
export declare function spawnPickupWithSeed(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18631
|
+
export declare function spawnPickupWithSeed(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickup;
|
|
18630
18632
|
|
|
18631
18633
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.PILL` (70). */
|
|
18632
|
-
export declare function spawnPill(pillColor: PillColor, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18634
|
+
export declare function spawnPill(pillColor: PillColor, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupPill;
|
|
18633
18635
|
|
|
18634
18636
|
/**
|
|
18635
18637
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.PILL` (70) and a
|
|
18636
18638
|
* specific seed.
|
|
18637
18639
|
*/
|
|
18638
|
-
export declare function spawnPillWithSeed(pillColor: PillColor, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18640
|
+
export declare function spawnPillWithSeed(pillColor: PillColor, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupPill;
|
|
18639
18641
|
|
|
18640
18642
|
/** Helper function to spawn a `GridEntityType.DOOR` (16) with a specific variant. */
|
|
18641
18643
|
export declare function spawnPit(gridIndexOrPosition: int | Vector): GridEntityPit | undefined;
|
|
@@ -18656,10 +18658,10 @@ export declare function spawnPressurePlate(gridIndexOrPosition: int | Vector): G
|
|
|
18656
18658
|
export declare function spawnPressurePlateWithVariant(pressurePlateVariant: PressurePlateVariant, gridIndexOrPosition: int | Vector): GridEntityPressurePlate | undefined;
|
|
18657
18659
|
|
|
18658
18660
|
/** Helper function to spawn a `EntityType.PROJECTILE` (9). */
|
|
18659
|
-
export declare function spawnProjectile(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18661
|
+
export declare function spawnProjectile(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityProjectile;
|
|
18660
18662
|
|
|
18661
18663
|
/** Helper function to spawn a `EntityType.PROJECTILE` (9) with a specific seed. */
|
|
18662
|
-
export declare function spawnProjectileWithSeed(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18664
|
+
export declare function spawnProjectileWithSeed(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityProjectile;
|
|
18663
18665
|
|
|
18664
18666
|
/** Helper function to spawn a `GridEntityType.ROCK` (2). */
|
|
18665
18667
|
export declare function spawnRock(gridIndexOrPosition: int | Vector): GridEntityRock | undefined;
|
|
@@ -18770,19 +18772,19 @@ declare class SpawnRockAltRewards extends Feature {
|
|
|
18770
18772
|
export declare function spawnRockWithVariant(rockVariant: RockVariant, gridIndexOrPosition: int | Vector): GridEntityRock | undefined;
|
|
18771
18773
|
|
|
18772
18774
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.SACK` (69). */
|
|
18773
|
-
export declare function spawnSack(sackSubType: SackSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18775
|
+
export declare function spawnSack(sackSubType: SackSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupSack;
|
|
18774
18776
|
|
|
18775
18777
|
/**
|
|
18776
18778
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.SACK` (69) and a
|
|
18777
18779
|
* specific seed.
|
|
18778
18780
|
*/
|
|
18779
|
-
export declare function spawnSackWithSeed(sackSubType: SackSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18781
|
+
export declare function spawnSackWithSeed(sackSubType: SackSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupSack;
|
|
18780
18782
|
|
|
18781
18783
|
/** Helper function to spawn a `EntityType.SLOT` (6). */
|
|
18782
|
-
export declare function spawnSlot(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18784
|
+
export declare function spawnSlot(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntitySlot;
|
|
18783
18785
|
|
|
18784
18786
|
/** Helper function to spawn a `EntityType.SLOT` (6) with a specific seed. */
|
|
18785
|
-
export declare function spawnSlotWithSeed(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18787
|
+
export declare function spawnSlotWithSeed(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntitySlot;
|
|
18786
18788
|
|
|
18787
18789
|
/** Helper function to spawn a `GridEntityType.SPIKES` (8). */
|
|
18788
18790
|
export declare function spawnSpikes(gridIndexOrPosition: int | Vector): GridEntitySpikes | undefined;
|
|
@@ -18791,10 +18793,10 @@ export declare function spawnSpikes(gridIndexOrPosition: int | Vector): GridEnti
|
|
|
18791
18793
|
export declare function spawnSpikesWithVariant(variant: int, gridIndexOrPosition: int | Vector): GridEntitySpikes | undefined;
|
|
18792
18794
|
|
|
18793
18795
|
/** Helper function to spawn a `EntityType.TEAR` (2). */
|
|
18794
|
-
export declare function spawnTear(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18796
|
+
export declare function spawnTear(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityTear;
|
|
18795
18797
|
|
|
18796
18798
|
/** Helper function to spawn a `EntityType.EntityType` (2) with a specific seed. */
|
|
18797
|
-
export declare function spawnTearWithSeed(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18799
|
+
export declare function spawnTearWithSeed(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityTear;
|
|
18798
18800
|
|
|
18799
18801
|
/** Helper function to spawn a `GridEntityType.TELEPORTER` (23). */
|
|
18800
18802
|
export declare function spawnTeleporter(gridIndexOrPosition: int | Vector): GridEntity | undefined;
|
|
@@ -18817,13 +18819,13 @@ export declare function spawnTrapdoorWithVariant(trapdoorVariant: TrapdoorVarian
|
|
|
18817
18819
|
/**
|
|
18818
18820
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TRINKET` (350).
|
|
18819
18821
|
*/
|
|
18820
|
-
export declare function spawnTrinket(trinketType: TrinketType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18822
|
+
export declare function spawnTrinket(trinketType: TrinketType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupTrinket;
|
|
18821
18823
|
|
|
18822
18824
|
/**
|
|
18823
18825
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TRINKET` (350) and
|
|
18824
18826
|
* a specific seed.
|
|
18825
18827
|
*/
|
|
18826
|
-
export declare function spawnTrinketWithSeed(trinketType: TrinketType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18828
|
+
export declare function spawnTrinketWithSeed(trinketType: TrinketType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupTrinket;
|
|
18827
18829
|
|
|
18828
18830
|
/**
|
|
18829
18831
|
* Helper function to spawn a Void Portal. This is more complicated than simply spawning a trapdoor
|
|
@@ -18835,7 +18837,7 @@ export declare function spawnVoidPortal(gridIndex: int): GridEntity | undefined;
|
|
|
18835
18837
|
* Helper function to spawn an entity. Use this instead of the `Game.Spawn` method if you do not
|
|
18836
18838
|
* need to specify the velocity or spawner.
|
|
18837
18839
|
*/
|
|
18838
|
-
export declare function spawnWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18840
|
+
export declare function spawnWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): Entity;
|
|
18839
18841
|
|
|
18840
18842
|
/**
|
|
18841
18843
|
* Breaks a number into chunks of a given size. This is similar to the `String.split` method, but
|