JSONRoomsFile
Interfaces
Section titled “Interfaces”JSONRoomsFile
Section titled “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:
npx convert-xml-to-json foo.xml foo.jsonNote 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.
Properties
Section titled “Properties”
readonlyrooms:JSONRooms
Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:17
JSONRooms
Section titled “JSONRooms”Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:21
Part of JSONRoomsFile.
Properties
Section titled “Properties”
readonlyroom: readonlyJSONRoom[]
Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:22
JSONRoom
Section titled “JSONRoom”Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:26
Part of JSONRoomsFile.
Properties
Section titled “Properties”$
readonly$:object
Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:27
difficulty
Section titled “difficulty”
readonlydifficulty:string
Needs to be converted to an int.
height
Section titled “height”
readonlyheight:string
Needs to be converted to an int.
readonlyname:string
readonlyshape:string
Needs to be converted to an int.
subtype
Section titled “subtype”
readonlysubtype:string
Needs to be converted to an int.
readonlytype:string
Needs to be converted to an int.
variant
Section titled “variant”
readonlyvariant:string
Needs to be converted to an int.
weight
Section titled “weight”
readonlyweight:string
Needs to be converted to a float.
readonlywidth:string
Needs to be converted to an int.
readonlydoor: readonlyJSONDoor[]
Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:55
readonlyspawn: readonlyJSONSpawn[]
Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:56
JSONDoor
Section titled “JSONDoor”Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:60
Part of JSONRoomsFile.
Properties
Section titled “Properties”
readonly$:object
Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:61
exists
Section titled “exists”
readonlyexists:string
Equal to “True” or “False”. Needs to be converted to an boolean.
readonlyx:string
Needs to be converted to an int.
readonlyy:string
Needs to be converted to an int.
JSONSpawn
Section titled “JSONSpawn”Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:74
Part of JSONRoomsFile.
Properties
Section titled “Properties”
readonly$:object
Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:75
readonlyx:string
Needs to be converted to an int.
readonlyy:string
Needs to be converted to an int.
entity
Section titled “entity”
readonlyentity: readonlyJSONEntity[]
Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:83
JSONEntity
Section titled “JSONEntity”Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:87
Part of JSONRoomsFile.
Properties
Section titled “Properties”
readonly$:object
Defined in: packages/isaacscript-common/src/interfaces/JSONRoomsFile.ts:88
readonlytype:string
Needs to be converted to an int.
variant
Section titled “variant”
readonlyvariant:string
Needs to be converted to an int.
subtype
Section titled “subtype”
readonlysubtype:string
Needs to be converted to an int.
weight
Section titled “weight”
readonlyweight:string
Needs to be converted to a float.
