ide-helper: add @return notation for minetest.get_objects_in_area.

This commit is contained in:
alek13
2025-03-10 10:33:08 +03:00
parent db5e414d98
commit 5914da3334

View File

@@ -952,13 +952,16 @@ function minetest.get_player_by_name(name) end
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4914-L4916)
--- @param pos Position
--- @param radius number
--- @return ObjectRef[]
--- @return ObjectRef[]|Entity[]|Player[]
function minetest.get_objects_inside_radius(pos, radius) end
--- Returns a list of
--- ObjectRefs.
--- * `pos1` and `pos2` are the min and max positions of the area to search.
---
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4917-L4919)
--- @param pos1 Position
--- @param pos2 Position
--- @return ObjectRef[]|Entity[]|Player[]
function minetest.get_objects_in_area(pos1, pos2) end
--- * `val` is between `0` and `1`; `0` for midnight, `0.5` for midday
---