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

@@ -29,7 +29,7 @@ local LBMDefinition = {
--- Function triggered for each qualifying node.
--- `dtime` is the in-game time (in seconds) elapsed since the mapblock
--- was last active (available since 5.7.0).
--- @type fun(pos:Position, node:NodeTable, dtime:number)?
--- @type fun(pos:MapPosition, node:NodeTable, dtime:number)?
action = function(pos, node, dtime) end,
--- Function triggered with a list of all applicable node positions at once.
@@ -37,6 +37,6 @@ local LBMDefinition = {
--- - Available since `core.features.bulk_lbms` (5.10.0)
--- - `dtime` is the in-game time (in seconds) elapsed since the mapblock
--- was last active (available since 5.7.0).
--- @type fun(pos_list:Position[], dtime:number)?
--- @type fun(pos_list:MapPosition[], dtime:number)?
bulk_action = function(pos_list, dtime) end,
}