Skip to main content

Two

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

Overview

This file is a static room layout definition used by DST's world generation system. It specifies the tilemap and object placement for a specific variant (named "two") of the Pit Hallway Armoury room type. It is loaded as raw JSON-like table data by the map generator and does not function as an entity component — it contains no Class constructor, components, or event logic.

Usage example

This file is not directly instantiated as a component or entity. Instead, it is referenced internally by the world generation system via room templates:

-- Not applicable for modder use; used internally by DST's map generator
-- Example of internal usage pattern (pseudo-code):
local room = require("map.static_layouts.rooms.pit_hallway_armoury.two")
generator:AddRoomLayout(room)

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled map format version.
luaversionstring"5.1"Lua engine version targeted.
orientationstring"orthogonal"Map tile orientation type.
widthnumber32Room width in tiles.
heightnumber32Room height in tiles.
tilewidthnumber16Width of a single tile in pixels.
tileheightnumber16Height of a single tile in pixels.
tilesets[1].namestring"tiles"Name of the tileset used.
tilesets[1].firstgidnumber1First global tile ID in the set.
layers[1].namestring"BG_TILES"Name of the background tile layer.
layers[1].datatable1024-entry arrayTile IDs for the layer (row-major, row by row).
layers[2].namestring"FG_OBJECTS"Name of the foreground object layer.
layers[2].objects[1].typestring"knight_nightmare_spawner"Type of object placed (used to spawn entities).
layers[2].objects[1].xnumber224X-position in pixels (relative to room origin).
layers[2].objects[1].ynumber224Y-position in pixels (relative to room origin).

Main functions

Not applicable — this file returns static layout data only.

Events & listeners

Not applicable — no event handling logic is present.