Skip to main content

Four

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

Overview

This file defines a static layout for a room variant named four within the hallway_residential_two category, used in map generation for the Caves biome. It is a Tiled Map Format (TMX)–style data structure encoded in Lua, containing configuration for tile layers and object groups. It does not implement logic beyond descriptive room data and is consumed by the world generation system to place architectural features in procedurally generated caves.

This component has no ECS-style behavior: it is a data file only, returned directly as a Lua table by the map loader. It is not a component class and does not define methods, properties, or event handlers.

Usage example

Static layouts like this one are not instantiated directly by modders. Instead, they are referenced indirectly through tasksets or room definitions in map generation. For example, a map task might include this layout in its list of allowed room variants:

-- Conceptual usage (this file itself is *not* added as a component)
room_def = {
name = "hallway_residential_two_four",
layout = require("map/static_layouts/rooms/hallway_residential_two/four"),
...
}

Modders should modify the level or room definitions in map/tasksets/ or map/rooms/ to use custom static layouts.

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"TMX format version
luaversionstring"5.1"Lua version compatibility indicator
orientationstring"orthogonal"Map rendering orientation
widthnumber32Map width in tiles
heightnumber32Map height in tiles
tilewidthnumber16Width of each tile in pixels
tileheightnumber16Height of each tile in pixels
propertiestable{}Custom room properties (empty in this case)
tilesetstable(see structure)Tileset definitions for decoding tile IDs
layerstable(see structure)Array of layers: tile layers and object groups

Main functions

Not applicable — this is a pure data file with no executable functions.

Events & listeners

Not applicable — this file defines no event logic or listeners.