CONTENT CONTRACT · VERSION 1
Interior
The room inside a building: its size and the prefabs of its shell, placed around the room origin.
Signature
{ combat: (boolean)?, depth_mm: PositiveDistance, doors: ({RoomDoor})?, exit: PrefabId, floor: PrefabId, fog: (Fog)?, light: (LightProfileId)?, music: (AudioCueId)?, respawn: (boolean)?, rooms: ({InteriorRoom})?, walls: RoomWalls, width_mm: PositiveDistance }Fields
| Name | Type | Meaning |
|---|---|---|
combat | boolean | Blows, shots, spells and tool actions work in this room (a dungeon). Absent: false (a home). |
depth_mm | PositiveDistance | Room depth (z); the exit stands at its front. Range: 1…2147483647; Unit: mm |
doors | {RoomDoor} | Further doors of this room (the entrance room), each into another room of the building. Absent: none. Items: 1…8 |
exit | PrefabId | Exit prefab at the front wall; its door point is where one leaves. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: prefab |
floor | PrefabId | Floor prefab at the room origin. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: prefab |
fog | Fog | Fog over what nobody has explored yet in this room, in room coordinates (origin at the room centre). Absent: no fog. |
light | LightProfileId | Its steady light, apart from the time of day, season and weather; absent: the room follows the day outside. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: light_profile |
music | AudioCueId | Looped music cue that plays while a local player is in this room, in place of the world's music (season, time of day, corruption); fights and bosses still play over it. Absent: the world's music. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: audio_cue |
respawn | boolean | Who goes down in this room and is not helped up gets up at its exit instead of at home. Absent: false. |
rooms | {InteriorRoom} | Further rooms of the building beyond this entrance room: each a map of its own, reached through doors; rooms are only ever added, an existing room keeps its size and pieces. Absent: none. Items: 1…15 |
walls | RoomWalls | Wall prefabs: west, east, back and front, each at the middle of its side. |
width_mm | PositiveDistance | Room width (x). Range: 1…2147483647; Unit: mm |