aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_env.h
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-09-08 10:54:36 +0200
committerSfan5 <sfan5@live.de>2013-09-08 11:09:50 +0200
commit6291fd1cbb9c2808e336532c833e26330ff2642b (patch)
treea1cf96776a56f2154daaacee6533b2a436b7ff4c /src/script/lua_api/l_env.h
parent4a2203413fbd4e4ff7e801172416ae8012e861d4 (diff)
downloadhax-minetest-server-6291fd1cbb9c2808e336532c833e26330ff2642b.tar.gz
hax-minetest-server-6291fd1cbb9c2808e336532c833e26330ff2642b.zip
Add minetest.get_gametime() API function, that returns the number of seconds since the world was created.
Diffstat (limited to '')
-rw-r--r--src/script/lua_api/l_env.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_env.h b/src/script/lua_api/l_env.h
index adb80a8a8..814d12165 100644
--- a/src/script/lua_api/l_env.h
+++ b/src/script/lua_api/l_env.h
@@ -104,6 +104,9 @@ private:
// minetest.get_timeofday() -> 0...1
static int l_get_timeofday(lua_State *L);
+ // minetest.get_gametime()
+ static int l_get_gametime(lua_State *L);
+
// minetest.find_node_near(pos, radius, nodenames) -> pos or nil
// nodenames: eg. {"ignore", "group:tree"} or "default:dirt"
static int l_find_node_near(lua_State *L);