isaacscript-common 1.2.234 → 1.2.235
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.
|
@@ -101,4 +101,5 @@ export declare function setEntityRandomColor(entity: Entity): void;
|
|
|
101
101
|
* Helper function to spawn an entity. Use this instead of the `Isaac.Spawn` method if you do not
|
|
102
102
|
* need to specify the velocity or spawner.
|
|
103
103
|
*/
|
|
104
|
-
export declare function spawn(entityType: EntityType | int, variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: undefined): Entity;
|
|
104
|
+
export declare function spawn(entityType: EntityType | int, variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined): Entity;
|
|
105
|
+
export declare function spawnWithSeed(entityType: EntityType | int, variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): Entity;
|
|
@@ -173,4 +173,21 @@ function ____exports.spawn(self, entityType, variant, subType, position, velocit
|
|
|
173
173
|
spawner
|
|
174
174
|
)
|
|
175
175
|
end
|
|
176
|
+
function ____exports.spawnWithSeed(self, entityType, variant, subType, position, seed, velocity, spawner)
|
|
177
|
+
if velocity == nil then
|
|
178
|
+
velocity = VectorZero
|
|
179
|
+
end
|
|
180
|
+
if spawner == nil then
|
|
181
|
+
spawner = nil
|
|
182
|
+
end
|
|
183
|
+
return game:Spawn(
|
|
184
|
+
entityType,
|
|
185
|
+
variant,
|
|
186
|
+
position,
|
|
187
|
+
velocity,
|
|
188
|
+
spawner,
|
|
189
|
+
subType,
|
|
190
|
+
seed
|
|
191
|
+
)
|
|
192
|
+
end
|
|
176
193
|
return ____exports
|