Interior Module
A domain module providing standard layout stamps for interior 3D spaces. These functions generate enclosed geometry like rooms, corridors, and architectural elements. They are agnostic to content type, allowing flexible reuse.
Types
| Type | Description |
|
Side of a room for doorway/window placement. |
Functions and values
| Function or value |
Description
|
Full Usage:
corridorX length width height floor wall ceiling section
Parameters:
int
-
Length of the corridor (X axis).
width : int
-
Width of the corridor (Z axis).
height : int
-
Height of the corridor (Y axis).
floor : 'T
wall : 'T
ceiling : 'T
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Generates a horizontal corridor along the X axis (open at both X ends).
|
Full Usage:
corridorZ length width height floor wall ceiling section
Parameters:
int
width : int
height : int
floor : 'T
wall : 'T
ceiling : 'T
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Generates a corridor along the Z axis (open at both Z ends).
|
Full Usage:
doorway side doorWidth doorHeight section
Parameters:
DoorSide
-
Which wall to cut the doorway in.
doorWidth : int
-
Width of the door opening.
doorHeight : int
-
Height of the door opening.
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Clears a doorway opening in a wall. Position the section at the doorway location.
|
Full Usage:
openRoom width height depth floor wall section
Parameters:
int
height : int
depth : int
floor : 'T
wall : 'T
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Generates a room with floor and walls but no ceiling (open-top).
|
Full Usage:
pillar height baseTile middleTile topTile section
Parameters:
int
baseTile : 'T
middleTile : 'T
topTile : 'T
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Generates a vertical pillar/column with distinct base, middle, and top.
|
Full Usage:
room width height depth floor wall ceiling section
Parameters:
int
-
Width of the room (X axis).
height : int
-
Height of the room (Y axis).
depth : int
-
Depth of the room (Z axis).
floor : 'T
-
Content for the floor.
wall : 'T
-
Content for the walls.
ceiling : 'T
-
Content for the ceiling.
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Generates an enclosed room with floor, walls, and ceiling.
|
Full Usage:
scatterEdges count seed content section
Parameters:
int
seed : int
content : 'T
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Scatters content along all room edges/corners.
|
Full Usage:
scatterWall side count seed content section
Parameters:
DoorSide
count : int
seed : int
content : 'T
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Scatters content randomly on a specific wall/side of the current section.
|
Full Usage:
shaft width depth height wall section
Parameters:
int
depth : int
height : int
wall : 'T
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Generates a vertical shaft (elevator space, ladder well). Creates walls with hollow interior.
|
Full Usage:
stairs width rise run step section
Parameters:
int
-
Width of the stairs (X axis).
rise : int
-
Total height to climb (number of Y levels).
run : int
-
Total run/depth of stairs (Z axis).
step : 'T
-
Content for each step.
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Generates a staircase with individual steps.
|
Full Usage:
weather oldContent newContent probability seed section
Parameters:
'T
newContent : 'T
probability : float32
seed : int
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Non-destructively decorates existing surfaces by replacing a percentage of tiles.
|
Full Usage:
window side windowWidth windowHeight sillHeight section
Parameters:
DoorSide
-
Which wall to cut the window in.
windowWidth : int
-
Width of the window.
windowHeight : int
-
Height of the window.
sillHeight : int
-
Height from floor to bottom of window.
section : GridSection3D<'T>
Returns: GridSection3D<'T>
Modifiers: inline Type parameters: 'T |
Clears a window opening in a wall.
|
Mibo