Skip to main content

Pondsinkhole

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

Overview

pondsinkhole.lua is a static map layout file that specifies the tile-based and object-based geometry for a pond sinkhole room. It is not an ECS component but a structured data definition used by the world generation system to instantiate rooms. The file conforms to Tiled Map Editor's JSON format (adapted for DST's Lua runtime), containing tile layer data and object groups that indicate regions for lighting and pond boundaries.

Usage example

This file is loaded and consumed by the world generation system during room placement; modders do not typically instantiate it directly. For reference, a typical room loader script might process it as follows:

local layout = require("map/static_layouts/pondsinkhole")
local width = layout.width -- 32
local height = layout.height -- 32
local tiledata = layout.layers[1].data -- tile layer BG_TILES

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
versionstring"1.1"Tiled format version used.
luaversionstring"5.1"Lua version targeted.
orientationstring"orthogonal"Tilemap orientation type.
widthnumber32Width of the map in tiles.
heightnumber32Height of the map in tiles.
tilewidthnumber16Width of each tile in pixels.
tileheightnumber16Height of each tile in pixels.
tilesetstableSee sourceArray of tileset definitions.
layerstableSee sourceArray of layer definitions (tile layers and object groups).

Main functions

Not applicable — this is a static data file returning a table.

Events & listeners

Not applicable — this file does not participate in the event system.