diff options
author | Elias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com> | 2020-11-04 16:44:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 16:44:42 +0100 |
commit | 5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (patch) | |
tree | c980d614fec4a5495798be3e79e033229062c3cd /src/script/lua_api/l_object.h | |
parent | 28f6a79706b088c37268a59d90878220dc4ef9c7 (diff) | |
parent | 3af10766fd2b58b068e970266724d7eb10e9316b (diff) | |
download | dragonfireclient-5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc.tar.xz |
Merge branch 'master' into master
Diffstat (limited to 'src/script/lua_api/l_object.h')
-rw-r--r-- | src/script/lua_api/l_object.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/script/lua_api/l_object.h b/src/script/lua_api/l_object.h index a75c59fd9..a7b52bdb3 100644 --- a/src/script/lua_api/l_object.h +++ b/src/script/lua_api/l_object.h @@ -31,7 +31,8 @@ class RemotePlayer; ObjectRef */ -class ObjectRef : public ModApiBase { +class ObjectRef : public ModApiBase +{ public: ObjectRef(ServerActiveObject *object); @@ -47,16 +48,16 @@ public: static ObjectRef *checkobject(lua_State *L, int narg); - static ServerActiveObject* getobject(ObjectRef *ref); + static ServerActiveObject *getobject(ObjectRef *ref); + private: ServerActiveObject *m_object = nullptr; static const char className[]; static luaL_Reg methods[]; + static LuaEntitySAO *getluaobject(ObjectRef *ref); - static LuaEntitySAO* getluaobject(ObjectRef *ref); - - static PlayerSAO* getplayersao(ObjectRef *ref); + static PlayerSAO *getplayersao(ObjectRef *ref); static RemotePlayer *getplayer(ObjectRef *ref); @@ -331,7 +332,7 @@ private: static int l_get_sky(lua_State *L); // get_sky_color(self) - static int l_get_sky_color(lua_State* L); + static int l_get_sky_color(lua_State *L); // set_sun(self, {visible, texture=, tonemap=, sunrise=, rotation=, scale=}) static int l_set_sun(lua_State *L); |