Skip to main content

One

Based on game build 714014 | Last updated: 2026-03-03

Overview​

one.lua is a static room layout definition used by the DST world generation system to place an atrium hallway in the game world. It specifies tile layer data (BG_TILES) and an object group (FG_OBJECTS) containing placement positions for interactive and decorative entities like lights, furniture, fences, and loot chests. This file does not implement a functional ECS component; it serves as declarative data consumed by map generation systems to instantiate prefabs during world construction.

Usage example​

This file is not instantiated directly by modders. Instead, it is referenced by the world generation task system and used to build room instances during level layout. A typical usage pattern inside the game engine might be:

-- Internally used by the map generator — NOT for direct modder use
local room_data = require("map/static_layouts/rooms/atrium_hallway/one")
WorldBuilder:AddStaticRoom(room_data, position)

Modders should modify or extend room layouts only through worldgen overrides or custom scenarios, not by altering core source files.

Dependencies & tags​

Components used: None identified
Tags: None identified

Properties​

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map file format version.
luaversionstring"5.1"Lua version used for embedded scripts (none present).
orientationstring"orthogonal"Map orientation type.
width / heightnumber32Map dimensions in tiles.
tilewidth / tileheightnumber16Tile size in pixels.
tilesetstable(see source)Array of tileset definitions.
layerstable(see source)Array of tile layers and object groups.

Main functions​

Not applicable — This file returns a plain data table with no executable functions.

Events & listeners​

Not applicable — No event handling is present in this file.