Skip to main content

Two

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

Overview

two.lua is a static room layout definition for the room_residential_two room type in DST's world generation system. It specifies the tile-based background layer (BG_TILES) and a foreground object layer (FG_OBJECTS) containing static scene objects like debris or furniture. This file conforms to the Tiled Map Editor JSON schema (serialized as Lua), and is consumed by the map generation logic to populate in-game rooms procedurally.

This file contains no runtime components or logic; it is a declarative data structure used during world generation to instantiate map entities.

Usage example

Static layouts like this one are not instantiated directly by modders. Instead, they are referenced internally by the world generation system. An example of how such data is consumed is not applicable for modding purposes.

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled version used for the map format.
luaversionstring"5.1"Target Lua version for serialization compatibility.
orientationstring"orthogonal"Map projection orientation.
widthnumber32Width of the map in tiles.
heightnumber32Height of the map in tiles.
tilewidthnumber16Pixel width of each tile.
tileheightnumber16Pixel height of each tile.
propertiestable{}Map-wide custom properties (currently empty).
tilesetsarray of tablesTileset definitions including path and image info.
layersarray of tablesList of layers: tilelayer (BG_TILES) and objectgroup (FG_OBJECTS).

Main functions

None identified. This is a pure data structure with no executable functions.

Events & listeners

None identified. This file does not define or interact with any event listeners.