MapGen: annotations fix
This commit is contained in:
@@ -73,9 +73,9 @@ local Layer = {
|
|||||||
---@field triangulationLandscapeFile string
|
---@field triangulationLandscapeFile string
|
||||||
---@field triangulationTempFile string
|
---@field triangulationTempFile string
|
||||||
---@field triangulationHumidityFile string
|
---@field triangulationHumidityFile string
|
||||||
---@field landscapeMapScale number
|
---@field landscapeMapScale integer
|
||||||
---@field tempMapScale number
|
---@field tempMapScale integer
|
||||||
---@field humidityMapScale number
|
---@field humidityMapScale integer
|
||||||
|
|
||||||
---@param self MapGen.Layer
|
---@param self MapGen.Layer
|
||||||
---@param value number
|
---@param value number
|
||||||
@@ -91,7 +91,7 @@ end
|
|||||||
---**Note:** If the colors of the new peak and the existing one at the same coordinates
|
---**Note:** If the colors of the new peak and the existing one at the same coordinates
|
||||||
---are different, an error will be called.
|
---are different, an error will be called.
|
||||||
---@param def MapGen.PeakDef
|
---@param def MapGen.PeakDef
|
||||||
---@param scale number
|
---@param scale integer
|
||||||
---@return MapGen.Peak
|
---@return MapGen.Peak
|
||||||
function Layer:registerPeak(def, scale)
|
function Layer:registerPeak(def, scale)
|
||||||
assert(def.pos ~= nil)
|
assert(def.pos ~= nil)
|
||||||
@@ -130,7 +130,7 @@ end
|
|||||||
|
|
||||||
---@param fileName string
|
---@param fileName string
|
||||||
---@param category MapGen.Layer.Category
|
---@param category MapGen.Layer.Category
|
||||||
---@param scale number
|
---@param scale integer
|
||||||
function Layer:getTriaglesFromFile(fileName, category, scale)
|
function Layer:getTriaglesFromFile(fileName, category, scale)
|
||||||
local file = io.open(core.get_modpath(core.get_current_modname())..'/maps/'..fileName, 'r')
|
local file = io.open(core.get_modpath(core.get_current_modname())..'/maps/'..fileName, 'r')
|
||||||
assert(file ~= nil)
|
assert(file ~= nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user