aboutsummaryrefslogtreecommitdiff
path: root/src/unittest/test_player.cpp
diff options
context:
space:
mode:
authorReza Almanda <rezaalmanda27@gmail.com>2021-02-21 10:54:18 +0000
committersfan5 <sfan5@live.de>2021-02-23 18:27:54 +0100
commitd77a8a980f122f61a5b7ff2060160a741b18acf7 (patch)
tree11fc24aa55f4c956f8c588c49850333e6a0ef7fd /src/unittest/test_player.cpp
parent308a3fc8f4901c5ef4c5fa8421744cb6a2ba99d5 (diff)
downloadminetest-d77a8a980f122f61a5b7ff2060160a741b18acf7.tar.gz
minetest-d77a8a980f122f61a5b7ff2060160a741b18acf7.tar.bz2
minetest-d77a8a980f122f61a5b7ff2060160a741b18acf7.zip
Translated using Weblate (Indonesian)
Currently translated at 100.0% (1353 of 1353 strings)
Diffstat (limited to 'src/unittest/test_player.cpp')
0 files changed, 0 insertions, 0 deletions
pan> You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #pragma once #include "common/c_content.h" #include "lua_api/l_base.h" class Settings; class LuaSettings : public ModApiBase { private: static const char className[]; static const luaL_Reg methods[]; // garbage collector static int gc_object(lua_State *L); // get(self, key) -> value static int l_get(lua_State *L); // get_bool(self, key) -> boolean static int l_get_bool(lua_State *L); // get_np_group(self, key) -> noiseparam static int l_get_np_group(lua_State *L); // get_flags(self, key) -> key/value table static int l_get_flags(lua_State *L); // set(self, key, value) static int l_set(lua_State *L); // set_bool(self, key, value) static int l_set_bool(lua_State *L); // set_np_group(self, key, value) static int l_set_np_group(lua_State *L); // remove(self, key) -> success static int l_remove(lua_State *L); // get_names(self) -> {key1, ...} static int l_get_names(lua_State *L); // write(self) -> success static int l_write(lua_State *L); // to_table(self) -> {[key1]=value1,...} static int l_to_table(lua_State *L); Settings *m_settings = nullptr; std::string m_filename; bool m_is_own_settings = false; bool m_write_allowed = true; public: LuaSettings(Settings *settings, const std::string &filename); LuaSettings(const std::string &filename, bool write_allowed); ~LuaSettings(); static void create(lua_State *L, Settings *settings, const std::string &filename); // LuaSettings(filename) // Creates a LuaSettings and leaves it on top of the stack static int create_object(lua_State *L); static LuaSettings *checkobject(lua_State *L, int narg); static void Register(lua_State *L); };