Skip to content

Class "RoomConfigRoom"⚓︎

Info

You can get this class by using the following functions:

Example Code
1
2
3
4
local game = Game()
local level = game:GetLevel()
local roomDescriptor = level:GetCurrentRoomDesc()
local roomConfigRoom = roomDescriptor.Data

Variables⚓︎

Difficulty⚓︎

const Difficulty Difficulty⚓︎


Doors⚓︎

const int Doors⚓︎

Returns a bit mask of the positions of valid door positions in this room. It is a combination of bit flags of the DoorSlotFlag enum, which is defined as follows:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
enum DoorSlotFlag {
  LEFT0 = 1 << DoorSlot.LEFT0,
  UP0 = 1 << DoorSlot.UP0,
  RIGHT0 = 1 << DoorSlot.RIGHT0,
  DOWN0 = 1 << DoorSlot.DOWN0,
  LEFT1 = 1 << DoorSlot.LEFT1,
  UP1 = 1 << DoorSlot.UP1,
  RIGHT1 = 1 << DoorSlot.RIGHT1,
  DOWN1 = 1 << DoorSlot.DOWN1,
}

Height⚓︎

const int Height⚓︎


Initial·Weight⚓︎

const float InitialWeight⚓︎


Mode⚓︎

const userdata Mode⚓︎

Bug

This variable is broken and returns userdata.


Name⚓︎

const string Name⚓︎


Original·Variant⚓︎

int OriginalVariant⚓︎


Shape⚓︎

const RoomShape Shape⚓︎


Spawn·Count⚓︎

const int SpawnCount⚓︎


Spawns⚓︎

const RoomConfigSpawns Spawns⚓︎


Stage·ID⚓︎

const int StageID⚓︎

The ID of the stage the room was designed for.

Stage IDs (corresponds to IDs in stages.xml)
DLC ID Stage Comment
0 Special Rooms
1 Basement
2 Cellar
3 Burning Basement
4 Caves
5 Catacombs
6 Flooded Caves
7 Depths
8 Necropolis
9 Dank Depths
10 Womb
11 Utero
12 Scarred Womb
13 Blue Womb
14 Sheol
15 Cathedral
16 Dark Room
17 Chest
18 Greed Special Rooms
19 Greed Basement
20 Greed Caves
21 Greed Depths
22 Greed Womb
23 Greed Sheol
24 The Shop
25 Ultra Greed
26 The Void
27 Downpour
28 Dross
29 Mines
30 Ashpit
31 Mausoleum
32 Gehenna
33 Corpse
35 Home The Stage ID of 34 does not exist.
36 Backwards These rooms are used during the Ascent.

Subtype⚓︎

const int Subtype⚓︎


Type⚓︎

const RoomType Type⚓︎


Variant⚓︎

const int Variant⚓︎


Weight⚓︎

const float Weight⚓︎


Width⚓︎

const int Width⚓︎



Last update: November 4, 2022