Skip to main content

Waterlogged3

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

Overview​

waterlogged3.lua is a static map layout definition file used in DST's world generation system. It specifies the visual and structural layout of a region using Tiled JSON-like format, including tile layer data (for background terrain), and an object group defining locations and areas for in-game elements like water trees and tree clusters. This file is consumed by the map generation system to place level geometry and spatial triggers during world initialization.

Usage example​

-- Not a typical use case for this file — it is loaded by the map system internally.
-- Example of how the generated layout might be referenced in worldgen logic:
local layout = require("map/static_layouts/waterlogged3")
-- The `layout` table contains map metadata, layers, and objects for spawning.

Dependencies & tags​

Components used: None identified
Tags: None identified

Properties​

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled format version used.
luaversionstring"5.1"Target Lua version.
orientationstring"orthogonal"Map rendering orientation.
widthnumber20Map width in tiles.
heightnumber20Map height in tiles.
tilewidthnumber64Width of each tile in pixels.
tileheightnumber64Height of each tile in pixels.
propertiestable{}Map-level custom properties (empty here).
tilesetsarray—Tileset definitions used in the map.
layersarray—Layer definitions: tile layers and object groups.

Main functions​

This file is a static data definition and contains no runtime functions or methods.

Events & listeners​

None identified