Skip to content

JSONRoomsFile

Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:16

The standard library has the feature to deploy a new room on-the-fly with the deployJSONRoom helper function. It requires a JSONRoomsFile as an argument, which is simply an XML file converted to JSON. (You can create XML room files using the Basement Renovator program.)

You can convert your XML files using the following command:

Terminal window
npx convert-xml-to-json foo.xml foo.json

Note that the custom stages feature of the standard library uses real XML/STB files, not JSON rooms, so you would only need to do this if you are using the deployJSONRoom command specifically.

readonly rooms: JSONRooms

Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:17


Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:21

Part of JSONRoomsFile.

readonly room: readonly JSONRoom[]

Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:22


Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:26

Part of JSONRoomsFile.

$

readonly $: object

Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:27

readonly difficulty: string

Needs to be converted to an int.

readonly height: string

Needs to be converted to an int.

readonly name: string

readonly shape: string

Needs to be converted to an int.

readonly subtype: string

Needs to be converted to an int.

readonly type: string

Needs to be converted to an int.

readonly variant: string

Needs to be converted to an int.

readonly weight: string

Needs to be converted to a float.

readonly width: string

Needs to be converted to an int.

readonly door: readonly JSONDoor[]

Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:55

readonly spawn: readonly JSONSpawn[]

Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:56


Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:60

Part of JSONRoomsFile.

readonly $: object

Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:61

readonly exists: string

Equal to “True” or “False”. Needs to be converted to an boolean.

readonly x: string

Needs to be converted to an int.

readonly y: string

Needs to be converted to an int.


Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:74

Part of JSONRoomsFile.

readonly $: object

Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:75

readonly x: string

Needs to be converted to an int.

readonly y: string

Needs to be converted to an int.

readonly entity: readonly JSONEntity[]

Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:83


Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:87

Part of JSONRoomsFile.

readonly $: object

Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:88

readonly type: string

Needs to be converted to an int.

readonly variant: string

Needs to be converted to an int.

readonly subtype: string

Needs to be converted to an int.

readonly weight: string

Needs to be converted to a float.