isaacscript-common 20.9.1 → 20.10.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.d.ts +7 -0
- package/dist/isaacscript-common.lua +5 -1
- package/dist/src/classes/features/other/RoomHistory.d.ts +7 -0
- package/dist/src/classes/features/other/RoomHistory.d.ts.map +1 -1
- package/dist/src/classes/features/other/RoomHistory.lua +4 -0
- package/package.json +1 -1
- package/src/classes/features/other/RoomHistory.ts +11 -0
package/dist/index.d.ts
CHANGED
|
@@ -13171,6 +13171,13 @@ export declare function roomGridIndexToXY(roomGridIndex: int): [x: int, y: int];
|
|
|
13171
13171
|
|
|
13172
13172
|
declare class RoomHistory extends Feature {
|
|
13173
13173
|
private postNewRoomEarly;
|
|
13174
|
+
/**
|
|
13175
|
+
* Helper function to get the total number of rooms that the player has visited thus far on the
|
|
13176
|
+
* run.
|
|
13177
|
+
*
|
|
13178
|
+
* In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_HISTORY`.
|
|
13179
|
+
*/
|
|
13180
|
+
getNumRoomsVisited(): ReadonlyArray<Readonly<RoomDescription>>;
|
|
13174
13181
|
/**
|
|
13175
13182
|
* Helper function to get information about all of the rooms that a player has visited thus far on
|
|
13176
13183
|
* this run.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 20.
|
|
3
|
+
isaacscript-common 20.10.0
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -34187,6 +34187,9 @@ function RoomHistory.prototype.____constructor(self)
|
|
|
34187
34187
|
end
|
|
34188
34188
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_EARLY, self.postNewRoomEarly}}
|
|
34189
34189
|
end
|
|
34190
|
+
function RoomHistory.prototype.getNumRoomsVisited(self)
|
|
34191
|
+
return self.v.run.roomHistory
|
|
34192
|
+
end
|
|
34190
34193
|
function RoomHistory.prototype.getRoomHistory(self)
|
|
34191
34194
|
return self.v.run.roomHistory
|
|
34192
34195
|
end
|
|
@@ -34218,6 +34221,7 @@ function RoomHistory.prototype.isLeavingRoom(self)
|
|
|
34218
34221
|
end
|
|
34219
34222
|
return startSeedString ~= latestRoomDescription.startSeedString or stage ~= latestRoomDescription.stage or stageType ~= latestRoomDescription.stageType or roomListIndex ~= latestRoomDescription.roomListIndex or roomVisitedCount ~= latestRoomDescription.roomVisitedCount
|
|
34220
34223
|
end
|
|
34224
|
+
__TS__Decorate({Exported}, RoomHistory.prototype, "getNumRoomsVisited", true)
|
|
34221
34225
|
__TS__Decorate({Exported}, RoomHistory.prototype, "getRoomHistory", true)
|
|
34222
34226
|
__TS__Decorate({Exported}, RoomHistory.prototype, "getPreviousRoomDescription", true)
|
|
34223
34227
|
__TS__Decorate({Exported}, RoomHistory.prototype, "getLatestRoomDescription", true)
|
|
@@ -2,6 +2,13 @@ import { RoomDescription } from "../../../interfaces/RoomDescription";
|
|
|
2
2
|
import { Feature } from "../../private/Feature";
|
|
3
3
|
export declare class RoomHistory extends Feature {
|
|
4
4
|
private postNewRoomEarly;
|
|
5
|
+
/**
|
|
6
|
+
* Helper function to get the total number of rooms that the player has visited thus far on the
|
|
7
|
+
* run.
|
|
8
|
+
*
|
|
9
|
+
* In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_HISTORY`.
|
|
10
|
+
*/
|
|
11
|
+
getNumRoomsVisited(): ReadonlyArray<Readonly<RoomDescription>>;
|
|
5
12
|
/**
|
|
6
13
|
* Helper function to get information about all of the rooms that a player has visited thus far on
|
|
7
14
|
* this run.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomHistory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RoomHistory.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,WAAY,SAAQ,OAAO;IAkBtC,OAAO,CAAC,gBAAgB,CAgCtB;IAEF;;;;;OAKG;IAEI,cAAc,IAAI,aAAa,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IAIjE;;;;;;;OAOG;IAEI,0BAA0B,IAAI,QAAQ,CAAC,eAAe,CAAC;IAiB9D;;;;;;;;;;OAUG;IAEI,wBAAwB,IAAI,QAAQ,CAAC,eAAe,CAAC,GAAG,SAAS;IAIxE;;;;;;;;;;OAUG;IAEI,aAAa,IAAI,OAAO;CAwBhC"}
|
|
1
|
+
{"version":3,"file":"RoomHistory.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/RoomHistory.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,WAAY,SAAQ,OAAO;IAkBtC,OAAO,CAAC,gBAAgB,CAgCtB;IAEF;;;;;OAKG;IAEI,kBAAkB,IAAI,aAAa,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IAIrE;;;;;OAKG;IAEI,cAAc,IAAI,aAAa,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IAIjE;;;;;;;OAOG;IAEI,0BAA0B,IAAI,QAAQ,CAAC,eAAe,CAAC;IAiB9D;;;;;;;;;;OAUG;IAEI,wBAAwB,IAAI,QAAQ,CAAC,eAAe,CAAC,GAAG,SAAS;IAIxE;;;;;;;;;;OAUG;IAEI,aAAa,IAAI,OAAO;CAwBhC"}
|
|
@@ -65,6 +65,9 @@ function RoomHistory.prototype.____constructor(self)
|
|
|
65
65
|
end
|
|
66
66
|
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_EARLY, self.postNewRoomEarly}}
|
|
67
67
|
end
|
|
68
|
+
function RoomHistory.prototype.getNumRoomsVisited(self)
|
|
69
|
+
return self.v.run.roomHistory
|
|
70
|
+
end
|
|
68
71
|
function RoomHistory.prototype.getRoomHistory(self)
|
|
69
72
|
return self.v.run.roomHistory
|
|
70
73
|
end
|
|
@@ -96,6 +99,7 @@ function RoomHistory.prototype.isLeavingRoom(self)
|
|
|
96
99
|
end
|
|
97
100
|
return startSeedString ~= latestRoomDescription.startSeedString or stage ~= latestRoomDescription.stage or stageType ~= latestRoomDescription.stageType or roomListIndex ~= latestRoomDescription.roomListIndex or roomVisitedCount ~= latestRoomDescription.roomVisitedCount
|
|
98
101
|
end
|
|
102
|
+
__TS__Decorate({Exported}, RoomHistory.prototype, "getNumRoomsVisited", true)
|
|
99
103
|
__TS__Decorate({Exported}, RoomHistory.prototype, "getRoomHistory", true)
|
|
100
104
|
__TS__Decorate({Exported}, RoomHistory.prototype, "getPreviousRoomDescription", true)
|
|
101
105
|
__TS__Decorate({Exported}, RoomHistory.prototype, "getLatestRoomDescription", true)
|
package/package.json
CHANGED
|
@@ -67,6 +67,17 @@ export class RoomHistory extends Feature {
|
|
|
67
67
|
this.v.run.roomHistory.push(roomDescription);
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Helper function to get the total number of rooms that the player has visited thus far on the
|
|
72
|
+
* run.
|
|
73
|
+
*
|
|
74
|
+
* In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_HISTORY`.
|
|
75
|
+
*/
|
|
76
|
+
@Exported
|
|
77
|
+
public getNumRoomsVisited(): ReadonlyArray<Readonly<RoomDescription>> {
|
|
78
|
+
return this.v.run.roomHistory;
|
|
79
|
+
}
|
|
80
|
+
|
|
70
81
|
/**
|
|
71
82
|
* Helper function to get information about all of the rooms that a player has visited thus far on
|
|
72
83
|
* this run.
|