isaacscript-common 28.7.1 → 29.0.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/index.rollup.d.ts +5 -2
- package/dist/isaacscript-common.lua +2 -2
- package/dist/src/classes/features/other/PersistentEntities.d.ts +5 -2
- package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
- package/dist/src/classes/features/other/PersistentEntities.lua +1 -1
- package/package.json +1 -1
- package/src/classes/features/other/PersistentEntities.ts +3 -3
package/dist/index.rollup.d.ts
CHANGED
|
@@ -13028,10 +13028,13 @@ declare class PersistentEntities extends Feature {
|
|
|
13028
13028
|
*
|
|
13029
13029
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PERSISTENT_ENTITIES`.
|
|
13030
13030
|
*
|
|
13031
|
-
* @returns
|
|
13031
|
+
* @returns An object containing the entity and the persistent entity index. You can use the index
|
|
13032
13032
|
* with the `removePersistentEntity` function.
|
|
13033
13033
|
*/
|
|
13034
|
-
spawnPersistentEntity(entityType: EntityType, variant: int, subType: int, position: Vector):
|
|
13034
|
+
spawnPersistentEntity(entityType: EntityType, variant: int, subType: int, position: Vector): {
|
|
13035
|
+
entity: Entity;
|
|
13036
|
+
persistentIndex: int;
|
|
13037
|
+
};
|
|
13035
13038
|
}
|
|
13036
13039
|
|
|
13037
13040
|
export declare type PickingUpItem = PickingUpItemNull | PickingUpItemCollectible | PickingUpItemTrinket;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common
|
|
3
|
+
isaacscript-common 29.0.0
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -50415,7 +50415,7 @@ function PersistentEntities.prototype.spawnPersistentEntity(self, entityType, va
|
|
|
50415
50415
|
position,
|
|
50416
50416
|
v.run.persistentEntityIndexCounter
|
|
50417
50417
|
)
|
|
50418
|
-
return {entity, v.run.persistentEntityIndexCounter}
|
|
50418
|
+
return {entity = entity, persistentIndex = v.run.persistentEntityIndexCounter}
|
|
50419
50419
|
end
|
|
50420
50420
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "removePersistentEntity", true)
|
|
50421
50421
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "spawnPersistentEntity", true)
|
|
@@ -38,9 +38,12 @@ export declare class PersistentEntities extends Feature {
|
|
|
38
38
|
*
|
|
39
39
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PERSISTENT_ENTITIES`.
|
|
40
40
|
*
|
|
41
|
-
* @returns
|
|
41
|
+
* @returns An object containing the entity and the persistent entity index. You can use the index
|
|
42
42
|
* with the `removePersistentEntity` function.
|
|
43
43
|
*/
|
|
44
|
-
spawnPersistentEntity(entityType: EntityType, variant: int, subType: int, position: Vector):
|
|
44
|
+
spawnPersistentEntity(entityType: EntityType, variant: int, subType: int, position: Vector): {
|
|
45
|
+
entity: Entity;
|
|
46
|
+
persistentIndex: int;
|
|
47
|
+
};
|
|
45
48
|
}
|
|
46
49
|
//# sourceMappingURL=PersistentEntities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersistentEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PersistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAmChD,qBAAa,kBAAmB,SAAQ,OAAO;IAI7C,OAAO,CAAC,WAAW,CAAc;IAqBjC,OAAO,CAAC,gBAAgB,CAgBtB;IAEF;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAoBrC,OAAO,CAAC,oBAAoB,CAkB1B;IAEF,OAAO,CAAC,aAAa;IAsBrB;;;;;;;;;;;OAWG;IAEI,sBAAsB,CAC3B,qBAAqB,EAAE,GAAG,EAC1B,YAAY,UAAO,GAClB,IAAI;IAiBP;;;;;;;;;;;;;;;;;OAiBG;IAEI,qBAAqB,CAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,GACf,
|
|
1
|
+
{"version":3,"file":"PersistentEntities.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PersistentEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAEX,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAmChD,qBAAa,kBAAmB,SAAQ,OAAO;IAI7C,OAAO,CAAC,WAAW,CAAc;IAqBjC,OAAO,CAAC,gBAAgB,CAgBtB;IAEF;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAoBrC,OAAO,CAAC,oBAAoB,CAkB1B;IAEF,OAAO,CAAC,aAAa;IAsBrB;;;;;;;;;;;OAWG;IAEI,sBAAsB,CAC3B,qBAAqB,EAAE,GAAG,EAC1B,YAAY,UAAO,GAClB,IAAI;IAiBP;;;;;;;;;;;;;;;;;OAiBG;IAEI,qBAAqB,CAC1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,GACf;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,GAAG,CAAA;KAAE;CAa5C"}
|
|
@@ -147,7 +147,7 @@ function PersistentEntities.prototype.spawnPersistentEntity(self, entityType, va
|
|
|
147
147
|
position,
|
|
148
148
|
v.run.persistentEntityIndexCounter
|
|
149
149
|
)
|
|
150
|
-
return {entity, v.run.persistentEntityIndexCounter}
|
|
150
|
+
return {entity = entity, persistentIndex = v.run.persistentEntityIndexCounter}
|
|
151
151
|
end
|
|
152
152
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "removePersistentEntity", true)
|
|
153
153
|
__TS__Decorate({Exported}, PersistentEntities.prototype, "spawnPersistentEntity", true)
|
package/package.json
CHANGED
|
@@ -201,7 +201,7 @@ export class PersistentEntities extends Feature {
|
|
|
201
201
|
*
|
|
202
202
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PERSISTENT_ENTITIES`.
|
|
203
203
|
*
|
|
204
|
-
* @returns
|
|
204
|
+
* @returns An object containing the entity and the persistent entity index. You can use the index
|
|
205
205
|
* with the `removePersistentEntity` function.
|
|
206
206
|
*/
|
|
207
207
|
@Exported
|
|
@@ -210,7 +210,7 @@ export class PersistentEntities extends Feature {
|
|
|
210
210
|
variant: int,
|
|
211
211
|
subType: int,
|
|
212
212
|
position: Vector,
|
|
213
|
-
):
|
|
213
|
+
): { entity: Entity; persistentIndex: int } {
|
|
214
214
|
v.run.persistentEntityIndexCounter++;
|
|
215
215
|
|
|
216
216
|
const entity = this.spawnAndTrack(
|
|
@@ -221,6 +221,6 @@ export class PersistentEntities extends Feature {
|
|
|
221
221
|
v.run.persistentEntityIndexCounter,
|
|
222
222
|
);
|
|
223
223
|
|
|
224
|
-
return
|
|
224
|
+
return { entity, persistentIndex: v.run.persistentEntityIndexCounter };
|
|
225
225
|
}
|
|
226
226
|
}
|