isaacscript-common 1.2.257 → 1.2.260

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.
Files changed (81) hide show
  1. package/dist/callbacks/postPlayerReordered.lua +9 -6
  2. package/dist/callbacks/subscriptions/postBombInitLate.lua +2 -3
  3. package/dist/callbacks/subscriptions/postBoneSwing.lua +2 -3
  4. package/dist/callbacks/subscriptions/postCollectibleInitFirst.lua +2 -3
  5. package/dist/callbacks/subscriptions/postCursedTeleport.lua +2 -3
  6. package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +2 -3
  7. package/dist/callbacks/subscriptions/postCustomRevive.lua +2 -3
  8. package/dist/callbacks/subscriptions/postEffectInitLate.lua +2 -3
  9. package/dist/callbacks/subscriptions/postEsauJr.lua +2 -3
  10. package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +2 -3
  11. package/dist/callbacks/subscriptions/postFirstEsauJr.lua +2 -3
  12. package/dist/callbacks/subscriptions/postFirstFlip.lua +2 -3
  13. package/dist/callbacks/subscriptions/postFlip.lua +2 -3
  14. package/dist/callbacks/subscriptions/postGameStartedReordered.lua +2 -3
  15. package/dist/callbacks/subscriptions/postGridEntityBroken.lua +2 -3
  16. package/dist/callbacks/subscriptions/postGridEntityCollision.lua +2 -3
  17. package/dist/callbacks/subscriptions/postGridEntityInit.lua +2 -3
  18. package/dist/callbacks/subscriptions/postGridEntityRemove.lua +2 -3
  19. package/dist/callbacks/subscriptions/postGridEntityStateChange.lua +2 -3
  20. package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +2 -3
  21. package/dist/callbacks/subscriptions/postItemPickup.lua +2 -3
  22. package/dist/callbacks/subscriptions/postKnifeInitLate.lua +2 -3
  23. package/dist/callbacks/subscriptions/postLaserInitLate.lua +2 -3
  24. package/dist/callbacks/subscriptions/postNPCInitLate.lua +2 -3
  25. package/dist/callbacks/subscriptions/postNewLevelReordered.lua +2 -3
  26. package/dist/callbacks/subscriptions/postNewRoomEarly.lua +2 -3
  27. package/dist/callbacks/subscriptions/postNewRoomReordered.lua +2 -3
  28. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +2 -3
  29. package/dist/callbacks/subscriptions/postPickupCollect.lua +2 -3
  30. package/dist/callbacks/subscriptions/postPickupInitLate.lua +2 -3
  31. package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +2 -3
  32. package/dist/callbacks/subscriptions/postPlayerChangeType.lua +2 -3
  33. package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +2 -3
  34. package/dist/callbacks/subscriptions/postPlayerInitLate.lua +2 -3
  35. package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +2 -3
  36. package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +2 -3
  37. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +2 -3
  38. package/dist/callbacks/subscriptions/postProjectileInitLate.lua +2 -3
  39. package/dist/callbacks/subscriptions/postPurchase.lua +2 -3
  40. package/dist/callbacks/subscriptions/postSacrifice.lua +2 -3
  41. package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +2 -3
  42. package/dist/callbacks/subscriptions/postSlotDestroyed.lua +2 -3
  43. package/dist/callbacks/subscriptions/postSlotInit.lua +2 -3
  44. package/dist/callbacks/subscriptions/postSlotRender.lua +2 -3
  45. package/dist/callbacks/subscriptions/postSlotUpdate.lua +2 -3
  46. package/dist/callbacks/subscriptions/postTearInitLate.lua +2 -3
  47. package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +2 -3
  48. package/dist/callbacks/subscriptions/postTransformation.lua +2 -3
  49. package/dist/callbacks/subscriptions/postTrinketBreak.lua +2 -3
  50. package/dist/callbacks/subscriptions/preBerserkDeath.lua +2 -3
  51. package/dist/callbacks/subscriptions/preCustomRevive.lua +2 -3
  52. package/dist/callbacks/subscriptions/preItemPickup.lua +2 -3
  53. package/dist/callbacks/subscriptions/preNewLevel.lua +2 -3
  54. package/dist/callbacks/subscriptions/roomClearChange.lua +2 -3
  55. package/dist/features/deployJSONRoom.lua +2 -3
  56. package/dist/features/playerInventory.lua +3 -4
  57. package/dist/features/runInNFrames.lua +6 -5
  58. package/dist/features/sirenHelpers.lua +2 -2
  59. package/dist/features/taintedLazarusPlayers.lua +6 -6
  60. package/dist/functions/array.lua +5 -6
  61. package/dist/functions/benchmark.lua +1 -2
  62. package/dist/functions/collectibleCacheFlag.lua +1 -2
  63. package/dist/functions/deepCopy.lua +4 -5
  64. package/dist/functions/doors.lua +1 -2
  65. package/dist/functions/entity.d.ts +8 -8
  66. package/dist/functions/entity.lua +9 -13
  67. package/dist/functions/entitySpecific.d.ts +46 -46
  68. package/dist/functions/entitySpecific.lua +122 -123
  69. package/dist/functions/globals.lua +1 -2
  70. package/dist/functions/gridEntity.lua +2 -3
  71. package/dist/functions/log.lua +1 -1
  72. package/dist/functions/math.lua +3 -4
  73. package/dist/functions/player.lua +1 -2
  74. package/dist/functions/playerHealth.lua +3 -4
  75. package/dist/functions/playerIndex.lua +1 -2
  76. package/dist/functions/pocketItems.lua +6 -7
  77. package/dist/functions/rooms.lua +2 -3
  78. package/dist/functions/table.lua +5 -6
  79. package/dist/functions/utils.lua +2 -3
  80. package/dist/lualib_bundle.lua +358 -388
  81. package/package.json +4 -4
@@ -2,7 +2,6 @@ local ____lualib = require("lualib_bundle")
2
2
  local Set = ____lualib.Set
3
3
  local __TS__New = ____lualib.__TS__New
4
4
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
5
- local __TS__ArrayPush = ____lualib.__TS__ArrayPush
6
5
  local ____exports = {}
7
6
  local ____cachedClasses = require("cachedClasses")
8
7
  local game = ____cachedClasses.game
@@ -56,7 +55,7 @@ function ____exports.countEntities(self, entityType, variant, subType, ignoreFri
56
55
  return #entities
57
56
  end
58
57
  function ____exports.getClosestEntityTo(self, referenceEntity, entities)
59
- local closestEntity = nil
58
+ local closestEntity
60
59
  local closestDistance = math.huge
61
60
  for ____, entity in ipairs(entities) do
62
61
  local distance = referenceEntity.Position:Distance(entity.Position)
@@ -65,25 +64,22 @@ function ____exports.getClosestEntityTo(self, referenceEntity, entities)
65
64
  closestDistance = distance
66
65
  end
67
66
  end
68
- if closestEntity == nil then
69
- error("Failed to find the closest entity.")
70
- end
71
67
  return closestEntity
72
68
  end
73
- function ____exports.getEntities(self, matchingEntityType, matchingVariant, matchingSubType, ignoreFriendly)
74
- if matchingVariant == nil then
75
- matchingVariant = -1
69
+ function ____exports.getEntities(self, entityType, variant, subType, ignoreFriendly)
70
+ if variant == nil then
71
+ variant = -1
76
72
  end
77
- if matchingSubType == nil then
78
- matchingSubType = -1
73
+ if subType == nil then
74
+ subType = -1
79
75
  end
80
76
  if ignoreFriendly == nil then
81
77
  ignoreFriendly = false
82
78
  end
83
- if matchingEntityType == nil then
79
+ if entityType == nil then
84
80
  return Isaac.GetRoomEntities()
85
81
  end
86
- return Isaac.FindByType(matchingEntityType, matchingVariant, matchingSubType, ignoreFriendly)
82
+ return Isaac.FindByType(entityType, variant, subType, ignoreFriendly)
87
83
  end
88
84
  function ____exports.getEntityID(self, entity)
89
85
  return (((tostring(entity.Type) .. ".") .. tostring(entity.Variant)) .. ".") .. tostring(entity.SubType)
@@ -145,7 +141,7 @@ function ____exports.setEntityRandomColor(self, entity)
145
141
  3,
146
142
  function()
147
143
  local randomColorValue = getRandom(nil, rng)
148
- __TS__ArrayPush(colorValues, randomColorValue)
144
+ colorValues[#colorValues + 1] = randomColorValue
149
145
  end
150
146
  )
151
147
  local color = Color(colorValues[1], colorValues[2], colorValues[3])
@@ -11,7 +11,7 @@ import { EntityTypeNonNPC } from "../types/EntityTypeNonNPC";
11
11
  * }
12
12
  * ```
13
13
  */
14
- export declare function getBombs(matchingVariant?: BombVariant | int, matchingSubType?: number): EntityBomb[];
14
+ export declare function getBombs(bombVariant?: BombVariant | int, subType?: number): EntityBomb[];
15
15
  /**
16
16
  * Helper function to get all of the `EntityType.ENTITY_EFFECT` in the room.
17
17
  *
@@ -23,7 +23,7 @@ export declare function getBombs(matchingVariant?: BombVariant | int, matchingSu
23
23
  * }
24
24
  * ```
25
25
  */
26
- export declare function getEffects(matchingVariant?: EffectVariant | int, matchingSubType?: number): EntityEffect[];
26
+ export declare function getEffects(effectVariant?: EffectVariant | int, subType?: number): EntityEffect[];
27
27
  /**
28
28
  * Helper function to get all of the familiars in the room.
29
29
  *
@@ -35,7 +35,7 @@ export declare function getEffects(matchingVariant?: EffectVariant | int, matchi
35
35
  * }
36
36
  * ```
37
37
  */
38
- export declare function getFamiliars(matchingVariant?: FamiliarVariant | int, matchingSubType?: number): EntityFamiliar[];
38
+ export declare function getFamiliars(familiarVariant?: FamiliarVariant | int, subType?: number): EntityFamiliar[];
39
39
  /**
40
40
  * Helper function to get all of the `EntityType.ENTITY_KNIFE` in the room.
41
41
  *
@@ -47,7 +47,7 @@ export declare function getFamiliars(matchingVariant?: FamiliarVariant | int, ma
47
47
  * }
48
48
  * ```
49
49
  */
50
- export declare function getKnives(matchingVariant?: KnifeVariant | int, matchingSubType?: number): EntityKnife[];
50
+ export declare function getKnives(knifeVariant?: KnifeVariant | int, subType?: number): EntityKnife[];
51
51
  /**
52
52
  * Helper function to get all of the `EntityType.ENTITY_LASER` in the room.
53
53
  *
@@ -59,9 +59,9 @@ export declare function getKnives(matchingVariant?: KnifeVariant | int, matching
59
59
  * }
60
60
  * ```
61
61
  */
62
- export declare function getLasers(matchingVariant?: LaserVariant | int, matchingSubType?: number): EntityLaser[];
62
+ export declare function getLasers(laserVariant?: LaserVariant | int, subType?: number): EntityLaser[];
63
63
  /** The same thing as the `getEntities` function, but returns only NPCs. */
64
- export declare function getNPCs(matchingEntityType?: EntityType | int, matchingVariant?: int, matchingSubType?: int, ignoreFriendly?: boolean): EntityNPC[];
64
+ export declare function getNPCs(entityType?: EntityType | int, variant?: int, subType?: int, ignoreFriendly?: boolean): EntityNPC[];
65
65
  /**
66
66
  * Helper function to get all of the pickups in the room.
67
67
  *
@@ -73,7 +73,7 @@ export declare function getNPCs(matchingEntityType?: EntityType | int, matchingV
73
73
  * }
74
74
  * ```
75
75
  */
76
- export declare function getPickups(matchingVariant?: PickupVariant | int, matchingSubType?: number): EntityPickup[];
76
+ export declare function getPickups(pickupVariant?: PickupVariant | int, subType?: number): EntityPickup[];
77
77
  /**
78
78
  * Helper function to get all of the `EntityType.ENTITY_PROJECTILE` in the room.
79
79
  *
@@ -85,7 +85,7 @@ export declare function getPickups(matchingVariant?: PickupVariant | int, matchi
85
85
  * }
86
86
  * ```
87
87
  */
88
- export declare function getProjectiles(matchingVariant?: ProjectileVariant | int, matchingSubType?: number): EntityProjectile[];
88
+ export declare function getProjectiles(projectileVariant?: ProjectileVariant | int, subType?: number): EntityProjectile[];
89
89
  /**
90
90
  * Helper function to get all of the `EntityType.ENTITY_SLOT` in the room.
91
91
  *
@@ -97,7 +97,7 @@ export declare function getProjectiles(matchingVariant?: ProjectileVariant | int
97
97
  * }
98
98
  * ```
99
99
  */
100
- export declare function getSlots(matchingVariant?: SlotVariant | int, matchingSubType?: number): Entity[];
100
+ export declare function getSlots(slotVariant?: SlotVariant | int, subType?: number): Entity[];
101
101
  /**
102
102
  * Helper function to get all of the `EntityType.ENTITY_TEAR` in the room.
103
103
  *
@@ -109,52 +109,52 @@ export declare function getSlots(matchingVariant?: SlotVariant | int, matchingSu
109
109
  * }
110
110
  * ```
111
111
  */
112
- export declare function getTears(matchingVariant?: TearVariant | int, matchingSubType?: number): EntityTear[];
112
+ export declare function getTears(tearVariant?: TearVariant | int, subType?: number): EntityTear[];
113
113
  /**
114
114
  * Helper function to remove all of the `EntityType.ENTITY_BOMB` in the room.
115
115
  *
116
- * @param variant Optional. If specified, will only remove bombs that match this variant.
116
+ * @param bombVariant Optional. If specified, will only remove bombs that match this variant.
117
117
  * @param subType Optional. If specified, will only remove bombs that match this sub-type.
118
118
  * @param cap Optional. If specified, will only remove the given amount of bombs.
119
119
  * @returns True if one or more bombs were removed, false otherwise.
120
120
  */
121
- export declare function removeAllBombs(variant?: BombVariant | int, subType?: int, cap?: int): boolean;
121
+ export declare function removeAllBombs(bombVariant?: BombVariant | int, subType?: int, cap?: int): boolean;
122
122
  /**
123
123
  * Helper function to remove all of the effects in the room.
124
124
  *
125
- * @param variant Optional. If specified, will only remove effects that match this variant.
125
+ * @param effectVariant Optional. If specified, will only remove effects that match this variant.
126
126
  * @param subType Optional. If specified, will only remove effects that match this sub-type.
127
127
  * @param cap Optional. If specified, will only remove the given amount of effects.
128
128
  * @returns True if one or more effects were removed, false otherwise.
129
129
  */
130
- export declare function removeAllEffects(variant?: EffectVariant | int, subType?: int, cap?: int): boolean;
130
+ export declare function removeAllEffects(effectVariant?: EffectVariant | int, subType?: int, cap?: int): boolean;
131
131
  /**
132
132
  * Helper function to remove all of the familiars in the room.
133
133
  *
134
- * @param variant Optional. If specified, will only remove familiars that match this variant.
134
+ * @param familiarVariant Optional. If specified, will only remove familiars that match this variant.
135
135
  * @param subType Optional. If specified, will only remove familiars that match this sub-type.
136
136
  * @param cap Optional. If specified, will only remove the given amount of familiars.
137
137
  * @returns True if one or more familiars were removed, false otherwise.
138
138
  */
139
- export declare function removeAllFamiliars(variant?: FamiliarVariant | int, subType?: int, cap?: int): boolean;
139
+ export declare function removeAllFamiliars(familiarVariant?: FamiliarVariant | int, subType?: int, cap?: int): boolean;
140
140
  /**
141
141
  * Helper function to remove all of the `EntityType.ENTITY_KNIFE` in the room.
142
142
  *
143
- * @param variant Optional. If specified, will only remove knives that match this variant.
143
+ * @param knifeVariant Optional. If specified, will only remove knives that match this variant.
144
144
  * @param subType Optional. If specified, will only remove knives that match this sub-type.
145
145
  * @param cap Optional. If specified, will only remove the given amount of knives.
146
146
  * @returns True if one or more knives were removed, false otherwise.
147
147
  */
148
- export declare function removeAllKnives(variant?: KnifeVariant | int, subType?: int, cap?: int): boolean;
148
+ export declare function removeAllKnives(knifeVariant?: KnifeVariant | int, subType?: int, cap?: int): boolean;
149
149
  /**
150
150
  * Helper function to remove all of the `EntityType.ENTITY_LASER` in the room.
151
151
  *
152
- * @param variant Optional. If specified, will only remove lasers that match this variant.
152
+ * @param laserVariant Optional. If specified, will only remove lasers that match this variant.
153
153
  * @param subType Optional. If specified, will only remove lasers that match this sub-type.
154
154
  * @param cap Optional. If specified, will only remove the given amount of lasers.
155
155
  * @returns True if one or more lasers were removed, false otherwise.
156
156
  */
157
- export declare function removeAllLasers(variant?: LaserVariant | int, subType?: int, cap?: int): boolean;
157
+ export declare function removeAllLasers(laserVariant?: LaserVariant | int, subType?: int, cap?: int): boolean;
158
158
  /**
159
159
  * Helper function to remove all NPCs in the room.
160
160
  *
@@ -165,76 +165,76 @@ export declare function removeAllNPCs(cap?: int): boolean;
165
165
  /**
166
166
  * Helper function to remove all of the pickups in the room.
167
167
  *
168
- * @param variant Optional. If specified, will only remove pickups that match this variant.
168
+ * @param pickupVariant Optional. If specified, will only remove pickups that match this variant.
169
169
  * @param subType Optional. If specified, will only remove pickups that match this sub-type.
170
170
  * @param cap Optional. If specified, will only remove the given amount of pickups.
171
171
  * @returns True if one or more pickups were removed, false otherwise.
172
172
  */
173
- export declare function removeAllPickups(variant?: PickupVariant | int, subType?: int, cap?: int): boolean;
173
+ export declare function removeAllPickups(pickupVariant?: PickupVariant | int, subType?: int, cap?: int): boolean;
174
174
  /**
175
175
  * Helper function to remove all of the `EntityType.ENTITY_PROJECTILE` in the room.
176
176
  *
177
- * @param variant Optional. If specified, will only remove projectiles that match this variant.
177
+ * @param projectileVariant Optional. If specified, will only remove projectiles that match this variant.
178
178
  * @param subType Optional. If specified, will only remove projectiles that match this sub-type.
179
179
  * @param cap Optional. If specified, will only remove the given amount of projectiles.
180
180
  * @returns True if one or more projectiles were removed, false otherwise.
181
181
  */
182
- export declare function removeAllProjectiles(variant?: ProjectileVariant | int, subType?: int, cap?: int): boolean;
182
+ export declare function removeAllProjectiles(projectileVariant?: ProjectileVariant | int, subType?: int, cap?: int): boolean;
183
183
  /**
184
184
  * Helper function to remove all of the `EntityType.ENTITY_SLOT` in the room.
185
185
  *
186
- * @param variant Optional. If specified, will only remove slots that match this variant.
186
+ * @param slotVariant Optional. If specified, will only remove slots that match this variant.
187
187
  * @param subType Optional. If specified, will only remove slots that match this sub-type.
188
188
  * @param cap Optional. If specified, will only remove the given amount of slots.
189
189
  * @returns True if one or more slots were removed, false otherwise.
190
190
  */
191
- export declare function removeAllSlots(variant?: SlotVariant | int, subType?: int, cap?: int): boolean;
191
+ export declare function removeAllSlots(slotVariant?: SlotVariant | int, subType?: int, cap?: int): boolean;
192
192
  /**
193
193
  * Helper function to remove all of the `EntityType.ENTITY_TEAR` in the room.
194
194
  *
195
- * @param variant Optional. If specified, will only remove tears that match this variant.
195
+ * @param tearVariant Optional. If specified, will only remove tears that match this variant.
196
196
  * @param subType Optional. If specified, will only remove tears that match this sub-type.
197
197
  * @param cap Optional. If specified, will only remove the given amount of tears.
198
198
  * @returns True if one or more tears were removed, false otherwise.
199
199
  */
200
- export declare function removeAllTears(variant?: TearVariant | int, subType?: int, cap?: int): boolean;
200
+ export declare function removeAllTears(tearVariant?: TearVariant | int, subType?: int, cap?: int): boolean;
201
201
  /** Helper function to spawn a `EntityType.ENTITY_BOMB` (4). */
202
- export declare function spawnBomb(variant: BombVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityBomb;
202
+ export declare function spawnBomb(bombVariant: BombVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityBomb;
203
203
  /** Helper function to spawn a `EntityType.ENTITY_BOMB` (4) with a specific seed. */
204
- export declare function spawnBombWithSeed(variant: BombVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityBomb;
204
+ export declare function spawnBombWithSeed(bombVariant: BombVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityBomb;
205
205
  /** Helper function to spawn a `EntityType.ENTITY_EFFECT` (1000). */
206
- export declare function spawnEffect(variant: EffectVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityEffect;
206
+ export declare function spawnEffect(effectVariant: EffectVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityEffect;
207
207
  /** Helper function to spawn a `EntityType.ENTITY_EFFECT` (1000) with a specific seed. */
208
- export declare function spawnEffectWithSeed(variant: EffectVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityEffect;
208
+ export declare function spawnEffectWithSeed(effectVariant: EffectVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityEffect;
209
209
  /** Helper function to spawn a `EntityType.ENTITY_FAMILIAR` (3). */
210
- export declare function spawnFamiliar(variant: FamiliarVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityFamiliar;
210
+ export declare function spawnFamiliar(familiarVariant: FamiliarVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityFamiliar;
211
211
  /** Helper function to spawn a `EntityType.ENTITY_FAMILIAR` (3) with a specific seed. */
212
- export declare function spawnFamiliarWithSeed(variant: FamiliarVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityFamiliar;
212
+ export declare function spawnFamiliarWithSeed(familiarVariant: FamiliarVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityFamiliar;
213
213
  /** Helper function to spawn a `EntityType.ENTITY_KNIFE` (8). */
214
- export declare function spawnKnife(variant: KnifeVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityKnife;
214
+ export declare function spawnKnife(knifeVariant: KnifeVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityKnife;
215
215
  /** Helper function to spawn a `EntityType.ENTITY_KNIFE` (8) with a specific seed. */
216
- export declare function spawnKnifeWithSeed(variant: KnifeVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityKnife;
216
+ export declare function spawnKnifeWithSeed(knifeVariant: KnifeVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityKnife;
217
217
  /** Helper function to spawn a `EntityType.ENTITY_LASER` (7). */
218
- export declare function spawnLaser(variant: LaserVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityLaser;
218
+ export declare function spawnLaser(laserVariant: LaserVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityLaser;
219
219
  /** Helper function to spawn a `EntityType.ENTITY_LASER` (7) with a specific seed. */
220
- export declare function spawnLaserWithSeed(variant: LaserVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityLaser;
220
+ export declare function spawnLaserWithSeed(laserVariant: LaserVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityLaser;
221
221
  /** Helper function to spawn an NPC. */
222
222
  export declare function spawnNPC<T extends number>(entityType: T extends EntityTypeNonNPC ? never : T, variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityNPC;
223
223
  /** Helper function to spawn an NPC with a specific seed. */
224
224
  export declare function spawnNPCWithSeed(entityType: EntityType | int, variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityNPC;
225
225
  /** Helper function to spawn a `EntityType.ENTITY_PICKUP` (5). */
226
- export declare function spawnPickup(variant: PickupVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
226
+ export declare function spawnPickup(pickupVariant: PickupVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
227
227
  /** Helper function to spawn a `EntityType.ENTITY_PICKUP` (5) with a specific seed. */
228
- export declare function spawnPickupWithSeed(variant: PickupVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
228
+ export declare function spawnPickupWithSeed(pickupVariant: PickupVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
229
229
  /** Helper function to spawn a `EntityType.ENTITY_PROJECTILE` (9). */
230
- export declare function spawnProjectile(variant: ProjectileVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityProjectile;
230
+ export declare function spawnProjectile(projectileVariant: ProjectileVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityProjectile;
231
231
  /** Helper function to spawn a `EntityType.ENTITY_PROJECTILE` (9) with a specific seed. */
232
- export declare function spawnProjectileWithSeed(variant: ProjectileVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityProjectile;
232
+ export declare function spawnProjectileWithSeed(projectileVariant: ProjectileVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityProjectile;
233
233
  /** Helper function to spawn a `EntityType.ENTITY_SLOT` (6). */
234
- export declare function spawnSlot(variant: SlotVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): Entity;
234
+ export declare function spawnSlot(slotVariant: SlotVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): Entity;
235
235
  /** Helper function to spawn a `EntityType.ENTITY_SLOT` (6) with a specific seed. */
236
- export declare function spawnSlotWithSeed(variant: int | SlotVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): Entity;
236
+ export declare function spawnSlotWithSeed(slotVariant: int | SlotVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): Entity;
237
237
  /** Helper function to spawn a `EntityType.ENTITY_TEAR` (2). */
238
- export declare function spawnTear(variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityTear;
238
+ export declare function spawnTear(tearVariant: TearVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityTear;
239
239
  /** Helper function to spawn a `EntityType.EntityType` (2) with a specific seed. */
240
- export declare function spawnTearWithSeed(variant: TearVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityTear;
240
+ export declare function spawnTearWithSeed(tearVariant: TearVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityTear;