CONTENT CONTRACT · VERSION 1
InteriorRoom
A further room of a building: a map of its own, with its shell and its doors; what it does not set it takes from the building's interior.
Signature
{ combat: (boolean)?, depth_mm: PositiveDistance, doors: {RoomDoor}, floor: PrefabId, id: Name, light: (LightProfileId)?, music: (AudioCueId)?, respawn: (boolean)?, walls: RoomWalls, width_mm: PositiveDistance }Fields
| Name | Type | Meaning |
|---|---|---|
combat | boolean | Blows, shots, spells and tool actions work in this room. Absent: as the interior. |
depth_mm | PositiveDistance | Room depth (z). Range: 1…2147483647; Unit: mm |
doors | {RoomDoor} | Its doors, each into another room of the building. Items: 1…8 |
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 |
id | Name | Room identifier, unique within the building; `entrance` names the interior itself. A shipped id never goes without a migration. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
light | LightProfileId | Steady light of this room. Absent: as the interior. 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 of this room. Absent: as the interior. 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 here gets up at its door towards the entrance. Absent: as the interior. |
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 |