Expose getPointedThing to Lua
authorDániel Juhász <juhdanad@gmail.com>
Sat, 23 Jul 2016 19:11:20 +0000 (21:11 +0200)
committerparamat <mat.gregory@virginmedia.com>
Fri, 7 Jul 2017 21:28:23 +0000 (22:28 +0100)
commit3caad3f3c9e319ca67d63231e8c64b2ace855fff
treef3cb283b7aa28958e2deec7c70dad3a85e1236d4
parenta80ecbee1e838491343af760539a37fac4232048
Expose getPointedThing to Lua

This commit introduces Raycast, a Lua user object, which can be
used to perform a raycast on the map. The ray is continuable, so one can
also get hidden nodes (for example to see trough glass).
25 files changed:
doc/lua_api.txt
src/CMakeLists.txt
src/activeobject.h
src/clientenvironment.cpp
src/clientenvironment.h
src/clientobject.h
src/content_cao.cpp
src/content_cao.h
src/content_sao.cpp
src/content_sao.h
src/environment.cpp
src/environment.h
src/game.cpp
src/raycast.cpp
src/raycast.h
src/script/cpp_api/s_item.h
src/script/lua_api/l_env.cpp
src/script/lua_api/l_env.h
src/script/scripting_server.cpp
src/serverenvironment.cpp
src/serverenvironment.h
src/util/pointedthing.cpp
src/util/pointedthing.h
src/voxelalgorithms.cpp
src/voxelalgorithms.h