summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_object.h
diff options
context:
space:
mode:
authorraymoo <uguu@installgentoo.com>2016-06-17 12:57:27 -0700
committerparamat <mat.gregory@virginmedia.com>2016-06-24 02:13:09 +0100
commitfa0bbbf96df17f0d7911274ea85e5c049c20d07b (patch)
tree90ffa15ba7e7b13ffa079d09d69bc97dfc2b2020 /src/script/lua_api/l_object.h
parent04fb10914c0d03ee77dafe610f336f23c58949ab (diff)
downloadminetest-fa0bbbf96df17f0d7911274ea85e5c049c20d07b.tar.gz
minetest-fa0bbbf96df17f0d7911274ea85e5c049c20d07b.tar.bz2
minetest-fa0bbbf96df17f0d7911274ea85e5c049c20d07b.zip
Player: New get_look, set_look API
Deprecate get_look / set_look pitch / yaw
Diffstat (limited to 'src/script/lua_api/l_object.h')
-rw-r--r--src/script/lua_api/l_object.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/script/lua_api/l_object.h b/src/script/lua_api/l_object.h
index a4457cc05..a37d29535 100644
--- a/src/script/lua_api/l_object.h
+++ b/src/script/lua_api/l_object.h
@@ -189,15 +189,31 @@ private:
// get_look_dir(self)
static int l_get_look_dir(lua_State *L);
+ // DEPRECATED
// get_look_pitch(self)
static int l_get_look_pitch(lua_State *L);
+ // DEPRECATED
// get_look_yaw(self)
static int l_get_look_yaw(lua_State *L);
+ // get_look_pitch2(self)
+ static int l_get_look_vertical(lua_State *L);
+
+ // get_look_yaw2(self)
+ static int l_get_look_horizontal(lua_State *L);
+
+ // set_look_vertical(self, radians)
+ static int l_set_look_vertical(lua_State *L);
+
+ // set_look_horizontal(self, radians)
+ static int l_set_look_horizontal(lua_State *L);
+
+ // DEPRECATED
// set_look_pitch(self, radians)
static int l_set_look_pitch(lua_State *L);
+ // DEPRECATED
// set_look_yaw(self, radians)
static int l_set_look_yaw(lua_State *L);