Skip to main content

One

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

Overview

This file defines a static room layout for the game's world generation system. It is not an ECS component but a data structure conforming to the Tiled map format, used to represent the visual and spatial configuration of a hallway room in the game's procedurally generated environments. The layout consists of background tile data and an object group for placing interactive entities (e.g., lights) within the room.

Usage example

This file is loaded and processed by the world generation system (e.g., map/archive_worldgen.lua), which interprets the tile layer and object group to instantiate tiles and prefabs in the game world. Modders typically reference it indirectly when building custom static layouts, but do not directly instantiate it.

-- Not directly used by mod code; consumed by the worldgen system.
-- Example usage in worldgen context:
-- local hallway_layout = require("map/static_layouts/rooms/hallway/one")
-- -- The generator uses hallway_layout.layers to populate the map

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled version used to export this layout.
luaversionstring"5.1"Lua version target.
orientationstring"orthogonal"Map orientation type.
widthnumber32Map width in tiles.
heightnumber32Map height in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
propertiestable{}Map-level custom properties (unused here).
tilesetstableTileset definitions (reference to tile image).
layerstableArray of layers: tile layer (BG_TILES) and object group (FG_OBJECTS).

Main functions

Not applicable.

Events & listeners

Not applicable.