isaacscript-common 7.5.0 → 7.5.1
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/DefaultMap.d.ts +3 -2
- package/dist/classes/DefaultMap.d.ts.map +1 -1
- package/dist/classes/DefaultMap.lua +2 -1
- package/dist/features/customStage/customStageUtils.d.ts +2 -1
- package/dist/features/customStage/customStageUtils.d.ts.map +1 -1
- package/dist/features/customStage/customStageUtils.lua +40 -1
- package/dist/features/customStage/exports.d.ts +1 -25
- package/dist/features/customStage/exports.d.ts.map +1 -1
- package/dist/features/customStage/exports.lua +28 -29
- package/dist/features/customStage/v.d.ts +0 -2
- package/dist/features/customStage/v.d.ts.map +1 -1
- package/dist/features/customStage/v.lua +0 -2
- package/dist/features/customStage/versusScreen.d.ts.map +1 -1
- package/dist/features/customStage/versusScreen.lua +74 -60
- package/dist/functions/doors.d.ts +6 -5
- package/dist/functions/doors.d.ts.map +1 -1
- package/dist/functions/doors.lua +25 -12
- package/dist/functions/enums.d.ts +3 -3
- package/dist/functions/enums.lua +3 -3
- package/dist/functions/players.d.ts.map +1 -1
- package/dist/functions/players.lua +3 -2
- package/dist/index.d.ts +105 -102
- package/dist/index.d.ts.map +1 -1
- package/dist/interfaces/{CustomStageLua.d.ts → CustomStageTSConfig.d.ts} +86 -60
- package/dist/interfaces/CustomStageTSConfig.d.ts.map +1 -0
- package/dist/interfaces/{CustomStageLua.lua → CustomStageTSConfig.lua} +0 -0
- package/dist/interfaces/JSONRoomsFile.d.ts +6 -5
- package/dist/interfaces/JSONRoomsFile.d.ts.map +1 -1
- package/dist/interfaces/private/CustomStage.d.ts +1 -1
- package/dist/interfaces/private/CustomStage.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/classes/DefaultMap.ts +3 -2
- package/src/features/customStage/customStageUtils.ts +52 -1
- package/src/features/customStage/exports.ts +33 -45
- package/src/features/customStage/init.ts +1 -1
- package/src/features/customStage/v.ts +0 -6
- package/src/features/customStage/versusScreen.ts +70 -55
- package/src/functions/doors.ts +37 -21
- package/src/functions/enums.ts +3 -3
- package/src/functions/players.ts +7 -3
- package/src/index.ts +1 -1
- package/src/interfaces/{CustomStageLua.ts → CustomStageTSConfig.ts} +107 -41
- package/src/interfaces/JSONRoomsFile.ts +6 -5
- package/src/interfaces/private/CustomStage.ts +4 -1
- package/dist/interfaces/CustomStageLua.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The standard library has the feature to deploy a new room on-the-fly with the `deployJSONRoom`
|
|
3
3
|
* helper function. It requires a `JSONRoomsFile` as an argument, which is simply an XML file
|
|
4
|
-
* converted to JSON. (You create XML room files using the Basement Renovator program.)
|
|
4
|
+
* converted to JSON. (You can create XML room files using the Basement Renovator program.)
|
|
5
5
|
*
|
|
6
6
|
* You can convert your XML files using the following command:
|
|
7
7
|
*
|
|
@@ -17,11 +17,12 @@ export interface JSONRoomsFile {
|
|
|
17
17
|
rooms: JSONRooms;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/** Part of `JSONRoomsFile`. */
|
|
20
21
|
export interface JSONRooms {
|
|
21
22
|
room: JSONRoom[];
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
/** Part of `
|
|
25
|
+
/** Part of `JSONRoomsFile`. */
|
|
25
26
|
export interface JSONRoom {
|
|
26
27
|
$: {
|
|
27
28
|
/** Needs to be converted to an `int`. */
|
|
@@ -55,7 +56,7 @@ export interface JSONRoom {
|
|
|
55
56
|
spawn: JSONSpawn[];
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
/** Part of `
|
|
59
|
+
/** Part of `JSONRoomsFile`. */
|
|
59
60
|
export interface JSONDoor {
|
|
60
61
|
$: {
|
|
61
62
|
/** Equal to "True" or "False". Needs to be converted to an `boolean`. */
|
|
@@ -69,7 +70,7 @@ export interface JSONDoor {
|
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
/** Part of `
|
|
73
|
+
/** Part of `JSONRoomsFile`. */
|
|
73
74
|
export interface JSONSpawn {
|
|
74
75
|
$: {
|
|
75
76
|
/** Needs to be converted to an `int`. */
|
|
@@ -82,7 +83,7 @@ export interface JSONSpawn {
|
|
|
82
83
|
entity: JSONEntity[];
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
/** Part of `
|
|
86
|
+
/** Part of `JSONRoomsFile`. */
|
|
86
87
|
export interface JSONEntity {
|
|
87
88
|
$: {
|
|
88
89
|
/** Needs to be converted to an `int`. */
|
|
@@ -3,7 +3,10 @@ import {
|
|
|
3
3
|
RoomShape,
|
|
4
4
|
RoomType,
|
|
5
5
|
} from "isaac-typescript-definitions";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
CustomStageLua,
|
|
8
|
+
CustomStageRoomMetadata,
|
|
9
|
+
} from "../CustomStageTSConfig";
|
|
7
10
|
|
|
8
11
|
export interface CustomStage extends CustomStageLua {
|
|
9
12
|
/** A map that makes it easier to select certain room type/shape/door combinations. */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomStageLua.d.ts","sourceRoot":"","sources":["../../src/interfaces/CustomStageLua.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,oBAAY,mBAAmB,GAAG,QAAQ,CAAC;IACzC,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;OAUG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,QAAQ,CAAC;QAC1B;;;;;;;;WAQG;QACH,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;QAE3B;;;;;;;;WAQ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