1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 17:15:21 +02:00

Add Lua API function to resolve node/collision/selection boxes (#13964)

This commit is contained in:
grorp
2024-02-06 20:45:16 +01:00
committed by GitHub
parent 4859cf44ce
commit f2b99332d9
13 changed files with 159 additions and 28 deletions

View File

@@ -120,6 +120,12 @@ private:
// pos = {x=num, y=num, z=num}
static int l_add_node_level(lua_State *L);
// get_node_boxes(box_type, pos, [node]) -> table
// box_type = string
// pos = {x=num, y=num, z=num}
// node = {name=string, param1=num, param2=num} or nil
static int l_get_node_boxes(lua_State *L);
// find_nodes_with_meta(pos1, pos2)
static int l_find_nodes_with_meta(lua_State *L);