isaacscript-common 87.8.2 → 87.9.0
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/CustomPickups.d.ts +6 -5
- package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/classes/features/other/CustomPickups.js +10 -9
- package/dist/classes/features/other/CustomPickups.lua +5 -5
- 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/core/constants.d.ts +2 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +2 -0
- package/dist/core/constants.lua +2 -0
- 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/functions/playerCollectibles.d.ts.map +1 -1
- package/dist/functions/playerCollectibles.js +1 -3
- package/dist/functions/playerCollectibles.lua +1 -1
- package/dist/index.rollup.d.ts +62 -57
- package/dist/isaacscript-common.lua +676 -46
- 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/CustomPickups.ts +25 -12
- 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/core/constants.ts +2 -0
- 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/functions/playerCollectibles.ts +1 -3
- package/src/objects/backdropTypeToRockAltType.ts +2 -0
- package/src/objects/roomTypeNames.ts +1 -0
- package/src/objects/roomTypeSpecialGotoPrefixes.ts +1 -0
|
@@ -188,8 +188,7 @@ function copiedObjectHasChildObject() {
|
|
|
188
188
|
function copiedMapIsMap() {
|
|
189
189
|
const keyToLookFor = "abc";
|
|
190
190
|
const valueToLookFor = "def";
|
|
191
|
-
const oldMap = new Map();
|
|
192
|
-
oldMap.set(keyToLookFor, valueToLookFor);
|
|
191
|
+
const oldMap = new Map([[keyToLookFor, valueToLookFor]]);
|
|
193
192
|
const newMap = (0, deepCopy_1.deepCopy)(oldMap, SerializationType_1.SerializationType.NONE, "copiedMapIsMap");
|
|
194
193
|
if (!(0, tstlClass_1.isTSTLMap)(newMap)) {
|
|
195
194
|
error(`The copied Map was not a Map and has a type of: ${typeof newMap}`);
|
|
@@ -198,8 +197,7 @@ function copiedMapIsMap() {
|
|
|
198
197
|
function copiedMapHasValue() {
|
|
199
198
|
const keyToLookFor = "abc";
|
|
200
199
|
const valueToLookFor = "def";
|
|
201
|
-
const oldMap = new Map();
|
|
202
|
-
oldMap.set(keyToLookFor, valueToLookFor);
|
|
200
|
+
const oldMap = new Map([[keyToLookFor, valueToLookFor]]);
|
|
203
201
|
const newMap = (0, deepCopy_1.deepCopy)(oldMap, SerializationType_1.SerializationType.NONE, "copiedMapHasValue");
|
|
204
202
|
if (!(0, tstlClass_1.isTSTLMap)(newMap)) {
|
|
205
203
|
error(`The copied Map was not a Map and has a type of: ${typeof newMap}`);
|
|
@@ -214,8 +212,7 @@ function copiedMapHasValue() {
|
|
|
214
212
|
}
|
|
215
213
|
function copiedSetIsSet() {
|
|
216
214
|
const valueToLookFor = "abc";
|
|
217
|
-
const oldSet = new Set();
|
|
218
|
-
oldSet.add(valueToLookFor);
|
|
215
|
+
const oldSet = new Set([valueToLookFor]);
|
|
219
216
|
const newSet = (0, deepCopy_1.deepCopy)(oldSet, SerializationType_1.SerializationType.NONE, "copiedSetIsSet");
|
|
220
217
|
if (!(0, tstlClass_1.isTSTLSet)(newSet)) {
|
|
221
218
|
error(`The copied Set was not a Set and has a type of: ${typeof newSet}`);
|
|
@@ -223,8 +220,7 @@ function copiedSetIsSet() {
|
|
|
223
220
|
}
|
|
224
221
|
function copiedSetHasValue() {
|
|
225
222
|
const valueToLookFor = "abc";
|
|
226
|
-
const oldSet = new Set();
|
|
227
|
-
oldSet.add(valueToLookFor);
|
|
223
|
+
const oldSet = new Set([valueToLookFor]);
|
|
228
224
|
const newSet = (0, deepCopy_1.deepCopy)(oldSet, SerializationType_1.SerializationType.NONE, "copiedSetHasValue");
|
|
229
225
|
if (!(0, tstlClass_1.isTSTLSet)(newSet)) {
|
|
230
226
|
error(`The copied Set was not a Set and has a type of: ${typeof newSet}`);
|
|
@@ -237,11 +233,11 @@ function copiedSetHasValue() {
|
|
|
237
233
|
function copiedMapHasChildMap() {
|
|
238
234
|
const childMapKey = 123;
|
|
239
235
|
const childMapValue = 456;
|
|
240
|
-
const oldChildMap = new Map();
|
|
241
|
-
oldChildMap.set(childMapKey, childMapValue);
|
|
236
|
+
const oldChildMap = new Map([[childMapKey, childMapValue]]);
|
|
242
237
|
const keyToLookFor = "childMap";
|
|
243
|
-
const oldMap = new Map(
|
|
244
|
-
|
|
238
|
+
const oldMap = new Map([
|
|
239
|
+
[keyToLookFor, oldChildMap],
|
|
240
|
+
]);
|
|
245
241
|
const newMap = (0, deepCopy_1.deepCopy)(oldMap, SerializationType_1.SerializationType.NONE, "copiedMapHasChildMap");
|
|
246
242
|
if (!(0, tstlClass_1.isTSTLMap)(newMap)) {
|
|
247
243
|
error(`The copied Map was not a Map and had a type of: ${typeof newMap}`);
|
|
@@ -311,8 +307,7 @@ function copiedDefaultMapHasBrand() {
|
|
|
311
307
|
function copiedSerializedMapHasStringKey() {
|
|
312
308
|
const mapKey = "123";
|
|
313
309
|
const mapValue = 456;
|
|
314
|
-
const oldMap = new Map();
|
|
315
|
-
oldMap.set(mapKey, mapValue);
|
|
310
|
+
const oldMap = new Map([[mapKey, mapValue]]);
|
|
316
311
|
const serializedOldMap = (0, deepCopy_1.deepCopy)(oldMap, SerializationType_1.SerializationType.SERIALIZE, "copiedSerializedMapHasStringKey-serialize");
|
|
317
312
|
const newTable = (0, deepCopy_1.deepCopy)(serializedOldMap, SerializationType_1.SerializationType.DESERIALIZE, "copiedSerializedMapHasStringKey-deserialize");
|
|
318
313
|
const newMap = newTable;
|
|
@@ -324,8 +319,7 @@ function copiedSerializedMapHasStringKey() {
|
|
|
324
319
|
function copiedSerializedMapHasNumberKey() {
|
|
325
320
|
const mapKey = 123;
|
|
326
321
|
const mapValue = 456;
|
|
327
|
-
const oldMap = new Map();
|
|
328
|
-
oldMap.set(mapKey, mapValue);
|
|
322
|
+
const oldMap = new Map([[mapKey, mapValue]]);
|
|
329
323
|
const serializedOldMap = (0, deepCopy_1.deepCopy)(oldMap, SerializationType_1.SerializationType.SERIALIZE, "copiedSerializedMapHasNumberKey-serialize");
|
|
330
324
|
const newTable = (0, deepCopy_1.deepCopy)(serializedOldMap, SerializationType_1.SerializationType.DESERIALIZE, "copiedSerializedMapHasNumberKey-deserialize");
|
|
331
325
|
const newMap = newTable;
|
|
@@ -161,8 +161,7 @@ end
|
|
|
161
161
|
function copiedMapIsMap(self)
|
|
162
162
|
local keyToLookFor = "abc"
|
|
163
163
|
local valueToLookFor = "def"
|
|
164
|
-
local oldMap = __TS__New(Map)
|
|
165
|
-
oldMap:set(keyToLookFor, valueToLookFor)
|
|
164
|
+
local oldMap = __TS__New(Map, {{keyToLookFor, valueToLookFor}})
|
|
166
165
|
local newMap = deepCopy(nil, oldMap, SerializationType.NONE, "copiedMapIsMap")
|
|
167
166
|
if not isTSTLMap(nil, newMap) then
|
|
168
167
|
error("The copied Map was not a Map and has a type of: " .. __TS__TypeOf(newMap))
|
|
@@ -171,8 +170,7 @@ end
|
|
|
171
170
|
function copiedMapHasValue(self)
|
|
172
171
|
local keyToLookFor = "abc"
|
|
173
172
|
local valueToLookFor = "def"
|
|
174
|
-
local oldMap = __TS__New(Map)
|
|
175
|
-
oldMap:set(keyToLookFor, valueToLookFor)
|
|
173
|
+
local oldMap = __TS__New(Map, {{keyToLookFor, valueToLookFor}})
|
|
176
174
|
local newMap = deepCopy(nil, oldMap, SerializationType.NONE, "copiedMapHasValue")
|
|
177
175
|
if not isTSTLMap(nil, newMap) then
|
|
178
176
|
error("The copied Map was not a Map and has a type of: " .. __TS__TypeOf(newMap))
|
|
@@ -187,8 +185,7 @@ function copiedMapHasValue(self)
|
|
|
187
185
|
end
|
|
188
186
|
function copiedSetIsSet(self)
|
|
189
187
|
local valueToLookFor = "abc"
|
|
190
|
-
local oldSet = __TS__New(Set)
|
|
191
|
-
oldSet:add(valueToLookFor)
|
|
188
|
+
local oldSet = __TS__New(Set, {valueToLookFor})
|
|
192
189
|
local newSet = deepCopy(nil, oldSet, SerializationType.NONE, "copiedSetIsSet")
|
|
193
190
|
if not isTSTLSet(nil, newSet) then
|
|
194
191
|
error("The copied Set was not a Set and has a type of: " .. __TS__TypeOf(newSet))
|
|
@@ -196,8 +193,7 @@ function copiedSetIsSet(self)
|
|
|
196
193
|
end
|
|
197
194
|
function copiedSetHasValue(self)
|
|
198
195
|
local valueToLookFor = "abc"
|
|
199
|
-
local oldSet = __TS__New(Set)
|
|
200
|
-
oldSet:add(valueToLookFor)
|
|
196
|
+
local oldSet = __TS__New(Set, {valueToLookFor})
|
|
201
197
|
local newSet = deepCopy(nil, oldSet, SerializationType.NONE, "copiedSetHasValue")
|
|
202
198
|
if not isTSTLSet(nil, newSet) then
|
|
203
199
|
error("The copied Set was not a Set and has a type of: " .. __TS__TypeOf(newSet))
|
|
@@ -210,11 +206,9 @@ end
|
|
|
210
206
|
function copiedMapHasChildMap(self)
|
|
211
207
|
local childMapKey = 123
|
|
212
208
|
local childMapValue = 456
|
|
213
|
-
local oldChildMap = __TS__New(Map)
|
|
214
|
-
oldChildMap:set(childMapKey, childMapValue)
|
|
209
|
+
local oldChildMap = __TS__New(Map, {{childMapKey, childMapValue}})
|
|
215
210
|
local keyToLookFor = "childMap"
|
|
216
|
-
local oldMap = __TS__New(Map)
|
|
217
|
-
oldMap:set(keyToLookFor, oldChildMap)
|
|
211
|
+
local oldMap = __TS__New(Map, {{keyToLookFor, oldChildMap}})
|
|
218
212
|
local newMap = deepCopy(nil, oldMap, SerializationType.NONE, "copiedMapHasChildMap")
|
|
219
213
|
if not isTSTLMap(nil, newMap) then
|
|
220
214
|
error("The copied Map was not a Map and had a type of: " .. __TS__TypeOf(newMap))
|
|
@@ -287,8 +281,7 @@ end
|
|
|
287
281
|
function copiedSerializedMapHasStringKey(self)
|
|
288
282
|
local mapKey = "123"
|
|
289
283
|
local mapValue = 456
|
|
290
|
-
local oldMap = __TS__New(Map)
|
|
291
|
-
oldMap:set(mapKey, mapValue)
|
|
284
|
+
local oldMap = __TS__New(Map, {{mapKey, mapValue}})
|
|
292
285
|
local serializedOldMap = deepCopy(nil, oldMap, SerializationType.SERIALIZE, "copiedSerializedMapHasStringKey-serialize")
|
|
293
286
|
local newTable = deepCopy(nil, serializedOldMap, SerializationType.DESERIALIZE, "copiedSerializedMapHasStringKey-deserialize")
|
|
294
287
|
local newMap = newTable
|
|
@@ -300,8 +293,7 @@ end
|
|
|
300
293
|
function copiedSerializedMapHasNumberKey(self)
|
|
301
294
|
local mapKey = 123
|
|
302
295
|
local mapValue = 456
|
|
303
|
-
local oldMap = __TS__New(Map)
|
|
304
|
-
oldMap:set(mapKey, mapValue)
|
|
296
|
+
local oldMap = __TS__New(Map, {{mapKey, mapValue}})
|
|
305
297
|
local serializedOldMap = deepCopy(nil, oldMap, SerializationType.SERIALIZE, "copiedSerializedMapHasNumberKey-serialize")
|
|
306
298
|
local newTable = deepCopy(nil, serializedOldMap, SerializationType.DESERIALIZE, "copiedSerializedMapHasNumberKey-deserialize")
|
|
307
299
|
local newMap = newTable
|
|
@@ -157,7 +157,7 @@ export declare function parseEntityTypeVariantString(entityTypeVariantString: st
|
|
|
157
157
|
* @param cap Optional. If specified, will only remove the given amount of collectibles.
|
|
158
158
|
* @returns An array of the entities that were removed.
|
|
159
159
|
*/
|
|
160
|
-
export declare function removeAllMatchingEntities(entityType: EntityType, entityVariant?: number, entitySubType?: number, cap?: int
|
|
160
|
+
export declare function removeAllMatchingEntities(entityType: EntityType, entityVariant?: number, entitySubType?: number, cap?: int): readonly Entity[];
|
|
161
161
|
/**
|
|
162
162
|
* Helper function to remove all of the entities in the supplied array.
|
|
163
163
|
*
|
|
@@ -206,7 +206,7 @@ export declare function setEntityRandomColor(entity: Entity): void;
|
|
|
206
206
|
* entity. Default is undefined, which will make the entity spawn with a random
|
|
207
207
|
* seed.
|
|
208
208
|
*/
|
|
209
|
-
export declare function spawn(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
209
|
+
export declare function spawn(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): Entity;
|
|
210
210
|
/**
|
|
211
211
|
* Helper function to spawn the entity corresponding to an `EntityID`.
|
|
212
212
|
*
|
|
@@ -218,10 +218,10 @@ export declare function spawn(entityType: EntityType, variant: int, subType: int
|
|
|
218
218
|
* entity. Default is undefined, which will make the entity spawn with a random
|
|
219
219
|
* seed using the `Isaac.Spawn` method.
|
|
220
220
|
*/
|
|
221
|
-
export declare function spawnEntityID(entityID: EntityID, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
221
|
+
export declare function spawnEntityID(entityID: EntityID, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): Entity;
|
|
222
222
|
/**
|
|
223
223
|
* Helper function to spawn an entity. Use this instead of the `Game.Spawn` method if you do not
|
|
224
224
|
* need to specify the velocity or spawner.
|
|
225
225
|
*/
|
|
226
|
-
export declare function spawnWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
226
|
+
export declare function spawnWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): Entity;
|
|
227
227
|
//# sourceMappingURL=entities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/functions/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAMX,MAAM,8BAA8B,CAAC;AAItC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAsBlD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,UAAU,GAAE,UAAU,GAAG,CAAC,CAAM,EAChC,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,GAAG,CA4BL;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,SAAS,UAAU,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC,EAC5D,cAAc,UAAQ,GACrB,OAAO,CAUT;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,UAAU,GAAE,UAAU,GAAG,CAAC,CAAM,EAChC,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,OAAO,CAGT;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,EACpD,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,SAAS,CAAC,EAAE,EACtB,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,GAClC,CAAC,GAAG,SAAS,CAgBf;AAED,wFAAwF;AACxF,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,QAAQ,GACjB,CAAC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CA4BR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,QAAQ,EAClB,mBAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,QAAQ,GAAE,MAAmB,EAC7B,OAAO,CAAC,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,IAAI,GAAG,GAAG,GACrB,MAAM,CAWR;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,SAAS,EAAE,IAAI,GAAG,GAAG,EACrB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CAUR"}
|
|
@@ -399,7 +399,7 @@ function parseEntityTypeVariantString(entityTypeVariantString) {
|
|
|
399
399
|
* @param cap Optional. If specified, will only remove the given amount of collectibles.
|
|
400
400
|
* @returns An array of the entities that were removed.
|
|
401
401
|
*/
|
|
402
|
-
function removeAllMatchingEntities(entityType, entityVariant = -1, entitySubType = -1, cap
|
|
402
|
+
function removeAllMatchingEntities(entityType, entityVariant = -1, entitySubType = -1, cap) {
|
|
403
403
|
const entities = getEntities(entityType, entityVariant, entitySubType);
|
|
404
404
|
return removeEntities(entities, cap);
|
|
405
405
|
}
|
|
@@ -489,7 +489,7 @@ function setEntityRandomColor(entity) {
|
|
|
489
489
|
* entity. Default is undefined, which will make the entity spawn with a random
|
|
490
490
|
* seed.
|
|
491
491
|
*/
|
|
492
|
-
function spawn(entityType, variant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
492
|
+
function spawn(entityType, variant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
493
493
|
const room = cachedClasses_1.game.GetRoom();
|
|
494
494
|
// We do an explicit check to prevent run-time errors in Lua environments.
|
|
495
495
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
@@ -515,7 +515,7 @@ function spawn(entityType, variant, subType, positionOrGridIndex, velocity = con
|
|
|
515
515
|
* entity. Default is undefined, which will make the entity spawn with a random
|
|
516
516
|
* seed using the `Isaac.Spawn` method.
|
|
517
517
|
*/
|
|
518
|
-
function spawnEntityID(entityID, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
518
|
+
function spawnEntityID(entityID, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
519
519
|
const [entityType, variant, subType] = getConstituentsFromEntityID(entityID);
|
|
520
520
|
return spawn(entityType, variant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
521
521
|
}
|
|
@@ -523,6 +523,6 @@ function spawnEntityID(entityID, positionOrGridIndex, velocity = constants_1.Vec
|
|
|
523
523
|
* Helper function to spawn an entity. Use this instead of the `Game.Spawn` method if you do not
|
|
524
524
|
* need to specify the velocity or spawner.
|
|
525
525
|
*/
|
|
526
|
-
function spawnWithSeed(entityType, variant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
526
|
+
function spawnWithSeed(entityType, variant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
527
527
|
return spawn(entityType, variant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
528
528
|
}
|
|
@@ -291,58 +291,58 @@ export declare function removeAllSlots(slotVariant?: SlotVariant | -1, subType?:
|
|
|
291
291
|
*/
|
|
292
292
|
export declare function removeAllTears(tearVariant?: TearVariant | -1, subType?: number, cap?: int): readonly EntityTear[];
|
|
293
293
|
/** Helper function to spawn a `EntityType.BOMB` (4). */
|
|
294
|
-
export declare function spawnBomb(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
294
|
+
export declare function spawnBomb(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityBomb;
|
|
295
295
|
/** Helper function to spawn a `EntityType.BOMB` (4) with a specific seed. */
|
|
296
|
-
export declare function spawnBombWithSeed(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
296
|
+
export declare function spawnBombWithSeed(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityBomb;
|
|
297
297
|
/** Helper function to spawn a `EntityType.EFFECT` (1000). */
|
|
298
|
-
export declare function spawnEffect(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
298
|
+
export declare function spawnEffect(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityEffect;
|
|
299
299
|
/** Helper function to spawn a `EntityType.EFFECT` (1000) with a specific seed. */
|
|
300
|
-
export declare function spawnEffectWithSeed(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
300
|
+
export declare function spawnEffectWithSeed(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityEffect;
|
|
301
301
|
/**
|
|
302
302
|
* Helper function to spawn a `EntityType.FAMILIAR` (3).
|
|
303
303
|
*
|
|
304
304
|
* If you are trying to implement a custom familiar, you probably want to use the
|
|
305
305
|
* `checkFamiliarFromCollectibles` helper function instead.
|
|
306
306
|
*/
|
|
307
|
-
export declare function spawnFamiliar(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
307
|
+
export declare function spawnFamiliar(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityFamiliar;
|
|
308
308
|
/** Helper function to spawn a `EntityType.FAMILIAR` (3) with a specific seed. */
|
|
309
|
-
export declare function spawnFamiliarWithSeed(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
309
|
+
export declare function spawnFamiliarWithSeed(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityFamiliar;
|
|
310
310
|
/** Helper function to spawn a `EntityType.KNIFE` (8). */
|
|
311
|
-
export declare function spawnKnife(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
311
|
+
export declare function spawnKnife(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityKnife;
|
|
312
312
|
/** Helper function to spawn a `EntityType.KNIFE` (8) with a specific seed. */
|
|
313
|
-
export declare function spawnKnifeWithSeed(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
313
|
+
export declare function spawnKnifeWithSeed(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityKnife;
|
|
314
314
|
/** Helper function to spawn a `EntityType.LASER` (7). */
|
|
315
|
-
export declare function spawnLaser(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
315
|
+
export declare function spawnLaser(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityLaser;
|
|
316
316
|
/** Helper function to spawn a `EntityType.LASER` (7) with a specific seed. */
|
|
317
|
-
export declare function spawnLaserWithSeed(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
317
|
+
export declare function spawnLaserWithSeed(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityLaser;
|
|
318
318
|
/**
|
|
319
319
|
* Helper function to spawn an NPC.
|
|
320
320
|
*
|
|
321
321
|
* Note that if you pass a non-NPC `EntityType` to this function, it will cause a run-time error,
|
|
322
322
|
* since the `Entity.ToNPC` method will return undefined.
|
|
323
323
|
*/
|
|
324
|
-
export declare function spawnNPC(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
324
|
+
export declare function spawnNPC(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityNPC;
|
|
325
325
|
/**
|
|
326
326
|
* Helper function to spawn an NPC with a specific seed.
|
|
327
327
|
*
|
|
328
328
|
* Note that if you pass a non-NPC `EntityType` to this function, it will cause a run-time error,
|
|
329
329
|
* since the `Entity.ToNPC` method will return undefined.
|
|
330
330
|
*/
|
|
331
|
-
export declare function spawnNPCWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
331
|
+
export declare function spawnNPCWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityNPC;
|
|
332
332
|
/** Helper function to spawn a `EntityType.PICKUP` (5). */
|
|
333
|
-
export declare function spawnPickup(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
333
|
+
export declare function spawnPickup(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickup;
|
|
334
334
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with a specific seed. */
|
|
335
|
-
export declare function spawnPickupWithSeed(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
335
|
+
export declare function spawnPickupWithSeed(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickup;
|
|
336
336
|
/** Helper function to spawn a `EntityType.PROJECTILE` (9). */
|
|
337
|
-
export declare function spawnProjectile(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
337
|
+
export declare function spawnProjectile(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityProjectile;
|
|
338
338
|
/** Helper function to spawn a `EntityType.PROJECTILE` (9) with a specific seed. */
|
|
339
|
-
export declare function spawnProjectileWithSeed(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
339
|
+
export declare function spawnProjectileWithSeed(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityProjectile;
|
|
340
340
|
/** Helper function to spawn a `EntityType.SLOT` (6). */
|
|
341
|
-
export declare function spawnSlot(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
341
|
+
export declare function spawnSlot(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntitySlot;
|
|
342
342
|
/** Helper function to spawn a `EntityType.SLOT` (6) with a specific seed. */
|
|
343
|
-
export declare function spawnSlotWithSeed(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
343
|
+
export declare function spawnSlotWithSeed(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntitySlot;
|
|
344
344
|
/** Helper function to spawn a `EntityType.TEAR` (2). */
|
|
345
|
-
export declare function spawnTear(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
345
|
+
export declare function spawnTear(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityTear;
|
|
346
346
|
/** Helper function to spawn a `EntityType.EntityType` (2) with a specific seed. */
|
|
347
|
-
export declare function spawnTearWithSeed(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
347
|
+
export declare function spawnTearWithSeed(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityTear;
|
|
348
348
|
//# sourceMappingURL=entitiesSpecific.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitiesSpecific.d.ts","sourceRoot":"","sources":["../../src/functions/entitiesSpecific.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAK1D;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,QAAQ,CACtB,WAAW,GAAE,WAAW,GAAG,CAAC,CAAM,EAClC,OAAO,SAAK,GACX,SAAS,UAAU,EAAE,CAYvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CACxB,aAAa,GAA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BAAmB,EAAE,MAAM,GAAG,GAAG,EACjC,SAAS,EAAE,IAAI,GAAG,GAAG,EACrB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,CAAC,EAAE,MAAM,GACf,UAAU,CASZ"}
|
|
@@ -458,25 +458,25 @@ function removeAllTears(tearVariant = -1, subType = -1, cap) {
|
|
|
458
458
|
return (0, entities_1.removeEntities)(tears, cap);
|
|
459
459
|
}
|
|
460
460
|
/** Helper function to spawn a `EntityType.BOMB` (4). */
|
|
461
|
-
function spawnBomb(bombVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
461
|
+
function spawnBomb(bombVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
462
462
|
const entity = (0, entities_1.spawn)(isaac_typescript_definitions_1.EntityType.BOMB, bombVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
463
463
|
const bomb = entity.ToBomb();
|
|
464
464
|
(0, utils_1.assertDefined)(bomb, "Failed to spawn a bomb.");
|
|
465
465
|
return bomb;
|
|
466
466
|
}
|
|
467
467
|
/** Helper function to spawn a `EntityType.BOMB` (4) with a specific seed. */
|
|
468
|
-
function spawnBombWithSeed(bombVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
468
|
+
function spawnBombWithSeed(bombVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
469
469
|
return spawnBomb(bombVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
470
470
|
}
|
|
471
471
|
/** Helper function to spawn a `EntityType.EFFECT` (1000). */
|
|
472
|
-
function spawnEffect(effectVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
472
|
+
function spawnEffect(effectVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
473
473
|
const entity = (0, entities_1.spawn)(isaac_typescript_definitions_1.EntityType.EFFECT, effectVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
474
474
|
const effect = entity.ToEffect();
|
|
475
475
|
(0, utils_1.assertDefined)(effect, "Failed to spawn an effect.");
|
|
476
476
|
return effect;
|
|
477
477
|
}
|
|
478
478
|
/** Helper function to spawn a `EntityType.EFFECT` (1000) with a specific seed. */
|
|
479
|
-
function spawnEffectWithSeed(effectVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
479
|
+
function spawnEffectWithSeed(effectVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
480
480
|
return spawnEffect(effectVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
@@ -485,36 +485,36 @@ function spawnEffectWithSeed(effectVariant, subType, positionOrGridIndex, seedOr
|
|
|
485
485
|
* If you are trying to implement a custom familiar, you probably want to use the
|
|
486
486
|
* `checkFamiliarFromCollectibles` helper function instead.
|
|
487
487
|
*/
|
|
488
|
-
function spawnFamiliar(familiarVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
488
|
+
function spawnFamiliar(familiarVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
489
489
|
const entity = (0, entities_1.spawn)(isaac_typescript_definitions_1.EntityType.FAMILIAR, familiarVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
490
490
|
const familiar = entity.ToFamiliar();
|
|
491
491
|
(0, utils_1.assertDefined)(familiar, "Failed to spawn a familiar.");
|
|
492
492
|
return familiar;
|
|
493
493
|
}
|
|
494
494
|
/** Helper function to spawn a `EntityType.FAMILIAR` (3) with a specific seed. */
|
|
495
|
-
function spawnFamiliarWithSeed(familiarVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
495
|
+
function spawnFamiliarWithSeed(familiarVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
496
496
|
return spawnFamiliar(familiarVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
497
497
|
}
|
|
498
498
|
/** Helper function to spawn a `EntityType.KNIFE` (8). */
|
|
499
|
-
function spawnKnife(knifeVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
499
|
+
function spawnKnife(knifeVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
500
500
|
const entity = (0, entities_1.spawn)(isaac_typescript_definitions_1.EntityType.KNIFE, knifeVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
501
501
|
const knife = entity.ToKnife();
|
|
502
502
|
(0, utils_1.assertDefined)(knife, "Failed to spawn a knife.");
|
|
503
503
|
return knife;
|
|
504
504
|
}
|
|
505
505
|
/** Helper function to spawn a `EntityType.KNIFE` (8) with a specific seed. */
|
|
506
|
-
function spawnKnifeWithSeed(knifeVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
506
|
+
function spawnKnifeWithSeed(knifeVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
507
507
|
return spawnKnife(knifeVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
508
508
|
}
|
|
509
509
|
/** Helper function to spawn a `EntityType.LASER` (7). */
|
|
510
|
-
function spawnLaser(laserVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
510
|
+
function spawnLaser(laserVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
511
511
|
const entity = (0, entities_1.spawn)(isaac_typescript_definitions_1.EntityType.LASER, laserVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
512
512
|
const laser = entity.ToLaser();
|
|
513
513
|
(0, utils_1.assertDefined)(laser, "Failed to spawn a laser.");
|
|
514
514
|
return laser;
|
|
515
515
|
}
|
|
516
516
|
/** Helper function to spawn a `EntityType.LASER` (7) with a specific seed. */
|
|
517
|
-
function spawnLaserWithSeed(laserVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
517
|
+
function spawnLaserWithSeed(laserVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
518
518
|
return spawnLaser(laserVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
519
519
|
}
|
|
520
520
|
/**
|
|
@@ -523,7 +523,7 @@ function spawnLaserWithSeed(laserVariant, subType, positionOrGridIndex, seedOrRN
|
|
|
523
523
|
* Note that if you pass a non-NPC `EntityType` to this function, it will cause a run-time error,
|
|
524
524
|
* since the `Entity.ToNPC` method will return undefined.
|
|
525
525
|
*/
|
|
526
|
-
function spawnNPC(entityType, variant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
526
|
+
function spawnNPC(entityType, variant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
527
527
|
const entity = (0, entities_1.spawn)(entityType, variant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
528
528
|
const npc = entity.ToNPC();
|
|
529
529
|
(0, utils_1.assertDefined)(npc, "Failed to spawn an NPC.");
|
|
@@ -535,47 +535,47 @@ function spawnNPC(entityType, variant, subType, positionOrGridIndex, velocity =
|
|
|
535
535
|
* Note that if you pass a non-NPC `EntityType` to this function, it will cause a run-time error,
|
|
536
536
|
* since the `Entity.ToNPC` method will return undefined.
|
|
537
537
|
*/
|
|
538
|
-
function spawnNPCWithSeed(entityType, variant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
538
|
+
function spawnNPCWithSeed(entityType, variant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
539
539
|
return spawnNPC(entityType, variant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
540
540
|
}
|
|
541
541
|
/** Helper function to spawn a `EntityType.PICKUP` (5). */
|
|
542
|
-
function spawnPickup(pickupVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
542
|
+
function spawnPickup(pickupVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
543
543
|
const entity = (0, entities_1.spawn)(isaac_typescript_definitions_1.EntityType.PICKUP, pickupVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
544
544
|
const pickup = entity.ToPickup();
|
|
545
545
|
(0, utils_1.assertDefined)(pickup, "Failed to spawn a pickup.");
|
|
546
546
|
return pickup;
|
|
547
547
|
}
|
|
548
548
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with a specific seed. */
|
|
549
|
-
function spawnPickupWithSeed(pickupVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
549
|
+
function spawnPickupWithSeed(pickupVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
550
550
|
return spawnPickup(pickupVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
551
551
|
}
|
|
552
552
|
/** Helper function to spawn a `EntityType.PROJECTILE` (9). */
|
|
553
|
-
function spawnProjectile(projectileVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
553
|
+
function spawnProjectile(projectileVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
554
554
|
const entity = (0, entities_1.spawn)(isaac_typescript_definitions_1.EntityType.PROJECTILE, projectileVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
555
555
|
const projectile = entity.ToProjectile();
|
|
556
556
|
(0, utils_1.assertDefined)(projectile, "Failed to spawn a projectile.");
|
|
557
557
|
return projectile;
|
|
558
558
|
}
|
|
559
559
|
/** Helper function to spawn a `EntityType.PROJECTILE` (9) with a specific seed. */
|
|
560
|
-
function spawnProjectileWithSeed(projectileVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
560
|
+
function spawnProjectileWithSeed(projectileVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
561
561
|
return spawnProjectile(projectileVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
562
562
|
}
|
|
563
563
|
/** Helper function to spawn a `EntityType.SLOT` (6). */
|
|
564
|
-
function spawnSlot(slotVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
564
|
+
function spawnSlot(slotVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
565
565
|
return (0, entities_1.spawn)(isaac_typescript_definitions_1.EntityType.SLOT, slotVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
566
566
|
}
|
|
567
567
|
/** Helper function to spawn a `EntityType.SLOT` (6) with a specific seed. */
|
|
568
|
-
function spawnSlotWithSeed(slotVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
568
|
+
function spawnSlotWithSeed(slotVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
569
569
|
return spawnSlot(slotVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
570
570
|
}
|
|
571
571
|
/** Helper function to spawn a `EntityType.TEAR` (2). */
|
|
572
|
-
function spawnTear(tearVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
572
|
+
function spawnTear(tearVariant, subType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
573
573
|
const entity = (0, entities_1.spawn)(isaac_typescript_definitions_1.EntityType.TEAR, tearVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
574
574
|
const tear = entity.ToTear();
|
|
575
575
|
(0, utils_1.assertDefined)(tear, "Failed to spawn a tear.");
|
|
576
576
|
return tear;
|
|
577
577
|
}
|
|
578
578
|
/** Helper function to spawn a `EntityType.EntityType` (2) with a specific seed. */
|
|
579
|
-
function spawnTearWithSeed(tearVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
579
|
+
function spawnTearWithSeed(tearVariant, subType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
580
580
|
return spawnTear(tearVariant, subType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
581
581
|
}
|
|
@@ -182,64 +182,64 @@ export declare function removeAllTrinkets(trinketType?: TrinketType, cap?: int):
|
|
|
182
182
|
/**
|
|
183
183
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.LIL_BATTERY` (90).
|
|
184
184
|
*/
|
|
185
|
-
export declare function spawnBattery(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
185
|
+
export declare function spawnBattery(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupBattery;
|
|
186
186
|
/**
|
|
187
187
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.LIL_BATTERY` (90)
|
|
188
188
|
* and a specific seed.
|
|
189
189
|
*/
|
|
190
|
-
export declare function spawnBatteryWithSeed(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
190
|
+
export declare function spawnBatteryWithSeed(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupBattery;
|
|
191
191
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.BOMB` (40). */
|
|
192
|
-
export declare function spawnBombPickup(bombSubType: BombSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
192
|
+
export declare function spawnBombPickup(bombSubType: BombSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupBomb;
|
|
193
193
|
/**
|
|
194
194
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.BOMB` (40) and a
|
|
195
195
|
* specific seed.
|
|
196
196
|
*/
|
|
197
|
-
export declare function spawnBombPickupWithSeed(bombSubType: BombSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
197
|
+
export declare function spawnBombPickupWithSeed(bombSubType: BombSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupBomb;
|
|
198
198
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.CARD` (300). */
|
|
199
|
-
export declare function spawnCard(cardType: CardType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
199
|
+
export declare function spawnCard(cardType: CardType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupCard;
|
|
200
200
|
/**
|
|
201
201
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.CARD` (300) and a
|
|
202
202
|
* specific seed.
|
|
203
203
|
*/
|
|
204
|
-
export declare function spawnCardWithSeed(cardType: CardType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
204
|
+
export declare function spawnCardWithSeed(cardType: CardType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupCard;
|
|
205
205
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.COIN` (20). */
|
|
206
|
-
export declare function spawnCoin(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
206
|
+
export declare function spawnCoin(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupCoin;
|
|
207
207
|
/**
|
|
208
208
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.COIN` (20) and a
|
|
209
209
|
* specific seed.
|
|
210
210
|
*/
|
|
211
|
-
export declare function spawnCoinWithSeed(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
211
|
+
export declare function spawnCoinWithSeed(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupCoin;
|
|
212
212
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.HEART` (10). */
|
|
213
|
-
export declare function spawnHeart(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
214
|
-
export declare function spawnHeartWithSeed(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
213
|
+
export declare function spawnHeart(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupHeart;
|
|
214
|
+
export declare function spawnHeartWithSeed(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupHeart;
|
|
215
215
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.KEY` (30). */
|
|
216
|
-
export declare function spawnKey(keySubType: KeySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
216
|
+
export declare function spawnKey(keySubType: KeySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupKey;
|
|
217
217
|
/**
|
|
218
218
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.KEY` (30) and a
|
|
219
219
|
* specific seed.
|
|
220
220
|
*/
|
|
221
|
-
export declare function spawnKeyWithSeed(keySubType: KeySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
221
|
+
export declare function spawnKeyWithSeed(keySubType: KeySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupKey;
|
|
222
222
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.PILL` (70). */
|
|
223
|
-
export declare function spawnPill(pillColor: PillColor, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
223
|
+
export declare function spawnPill(pillColor: PillColor, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupPill;
|
|
224
224
|
/**
|
|
225
225
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.PILL` (70) and a
|
|
226
226
|
* specific seed.
|
|
227
227
|
*/
|
|
228
|
-
export declare function spawnPillWithSeed(pillColor: PillColor, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
228
|
+
export declare function spawnPillWithSeed(pillColor: PillColor, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupPill;
|
|
229
229
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.SACK` (69). */
|
|
230
|
-
export declare function spawnSack(sackSubType: SackSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
230
|
+
export declare function spawnSack(sackSubType: SackSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupSack;
|
|
231
231
|
/**
|
|
232
232
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.SACK` (69) and a
|
|
233
233
|
* specific seed.
|
|
234
234
|
*/
|
|
235
|
-
export declare function spawnSackWithSeed(sackSubType: SackSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
235
|
+
export declare function spawnSackWithSeed(sackSubType: SackSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupSack;
|
|
236
236
|
/**
|
|
237
237
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TRINKET` (350).
|
|
238
238
|
*/
|
|
239
|
-
export declare function spawnTrinket(trinketType: TrinketType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
239
|
+
export declare function spawnTrinket(trinketType: TrinketType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupTrinket;
|
|
240
240
|
/**
|
|
241
241
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TRINKET` (350) and
|
|
242
242
|
* a specific seed.
|
|
243
243
|
*/
|
|
244
|
-
export declare function spawnTrinketWithSeed(trinketType: TrinketType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
244
|
+
export declare function spawnTrinketWithSeed(trinketType: TrinketType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupTrinket;
|
|
245
245
|
//# sourceMappingURL=pickupsSpecific.d.ts.map
|