Position edits (#7)

* Moving annotations for vector classes and positions: `core_namespace.lua` -> `classes/vector.lua`. Rethinking position annotations

* Replacing float positions with integer positions where required (voxel manipulator, node coordinates, etc.). Adding missing annotations to the position parameters of core methods

* Fix position annotations in noises classes

* remove alias `MapPosition2d`

* Review fixes
This commit is contained in:
Van
2026-02-13 12:09:24 +03:00
committed by GitHub
parent e5a12d31ba
commit 5d3804168b
12 changed files with 160 additions and 94 deletions

View File

@@ -109,13 +109,13 @@ local BiomeDefinition = {
--- Biome is limited to a cuboid defined by these positions.
--- Any x, y or z field left undefined defaults to -31000 in 'min_pos' or
--- 31000 in 'max_pos'.
--- @type Position|{x:integer?,y:integer?,z:integer?}|nil
--- @type MapPosition|{x:integer?,y:integer?,z:integer?}|nil
max_pos = { x = 31000, y = 128, z = 31000 },
--- xyz limits for biome, an alternative to using 'y_min' and 'y_max'.
--- Biome is limited to a cuboid defined by these positions.
--- Any x, y or z field left undefined defaults to -31000 in 'min_pos' or
--- 31000 in 'max_pos'.
--- @type Position|{x:integer?,y:integer?,z:integer?}|nil
--- @type MapPosition|{x:integer?,y:integer?,z:integer?}|nil
min_pos = { x = -31000, y = 9, z = -31000 },
--- Vertical distance in nodes above 'y_max' over which the biome will