MapGen: minor changes

This commit is contained in:
Van
2026-01-22 14:26:18 +03:00
parent ef6c0d9fe6
commit ba97a8f36f

View File

@@ -272,7 +272,6 @@ end
---@param color ColorString Noise color. Must be unique. ---@param color ColorString Noise color. Must be unique.
---@param noiseParams NoiseParams Fractal noise parameters. ---@param noiseParams NoiseParams Fractal noise parameters.
function MapGen:registerLayerNoiseColor(layerName, category, color, noiseParams) function MapGen:registerLayerNoiseColor(layerName, category, color, noiseParams)
---@type MapGen.Layer
local layer = self:getLayerByName(layerName) local layer = self:getLayerByName(layerName)
layer:addNoiseParamsColor(category, color, noiseParams) layer:addNoiseParamsColor(category, color, noiseParams)
@@ -309,7 +308,6 @@ end
---@param category MapGen.Layer.Category Category indicating what will be generated by peak. ---@param category MapGen.Layer.Category Category indicating what will be generated by peak.
---@param def MapGen.PeakDef Peak description table, see details `MapGen.PeakDef`. ---@param def MapGen.PeakDef Peak description table, see details `MapGen.PeakDef`.
function MapGen:registerPeak(layerName, category, def) function MapGen:registerPeak(layerName, category, def)
---@type MapGen.Layer
local layer = self:getLayerByName(layerName) local layer = self:getLayerByName(layerName)
assert(self:getPeakByPos(layer, category, def.pos) == nil, assert(self:getPeakByPos(layer, category, def.pos) == nil,
@@ -391,7 +389,6 @@ end
---@param pos Position The position of the peak to which the group should be added. ---@param pos Position The position of the peak to which the group should be added.
---@param groups table<string, number> Groups to be added. ---@param groups table<string, number> Groups to be added.
function MapGen:addGroupsToPeakByPos(layerName, category, pos, groups) function MapGen:addGroupsToPeakByPos(layerName, category, pos, groups)
---@type MapGen.Layer
local layer = self:getLayerByName(layerName) local layer = self:getLayerByName(layerName)
local peak = self:getPeakByPos(layer, category, pos) local peak = self:getPeakByPos(layer, category, pos)