summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_object.cpp
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-01-22 21:13:06 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2019-01-22 22:13:06 +0100
commitbc1e54764b736310ca3797dc3e06fe8326949367 (patch)
tree5a45a9fccfee16faffb4b50231db539701002f38 /src/script/lua_api/l_object.cpp
parent33afe1fb56273251400fed1eb13b2b407a3d0420 (diff)
downloadminetest-bc1e54764b736310ca3797dc3e06fe8326949367.tar.gz
minetest-bc1e54764b736310ca3797dc3e06fe8326949367.tar.bz2
minetest-bc1e54764b736310ca3797dc3e06fe8326949367.zip
Fix warnings about dungeongen.cpp memcpy() and unused variable in MapBlock::deSerializeNetworkSpecific() (#8122)
* Fix warning about dungeongen.cpp memcpy() * Fix unused variable in MapBlock::deSerializeNetworkSpecific() * Fix unused variable a simpler way
Diffstat (limited to 'src/script/lua_api/l_object.cpp')
0 files changed, 0 insertions, 0 deletions
n> This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 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 "lua_api/l_base.h" class AsyncEngine; class ModApiUtil : public ModApiBase { private: /* NOTE: The functions in this module are available in the in-game API as well as in the mainmenu API. All functions that don't require either a Server or GUIEngine instance should be in here. */ // log([level,] text) // Writes a line to the logger. // The one-argument version logs to LL_NONE. // The two-argument version accepts a log level. static int l_log(lua_State *L); // get us precision time static int l_get_us_time(lua_State *L); // parse_json(str[, nullvalue]) static int l_parse_json(lua_State *L); // write_json(data[, styled]) static int l_write_json(lua_State *L); // get_dig_params(groups, tool_capabilities[, time_from_last_punch]) static int l_get_dig_params(lua_State *L); // get_hit_params(groups, tool_capabilities[, time_from_last_punch]) static int l_get_hit_params(lua_State *L); // check_password_entry(name, entry, password) static int l_check_password_entry(lua_State *L); // get_password_hash(name, raw_password) static int l_get_password_hash(lua_State *L); // is_yes(arg) static int l_is_yes(lua_State *L); // is_nan(arg) static int l_is_nan(lua_State *L); // get_builtin_path() static int l_get_builtin_path(lua_State *L); // compress(data, method, ...) static int l_compress(lua_State *L); // decompress(data, method, ...) static int l_decompress(lua_State *L); // mkdir(path) static int l_mkdir(lua_State *L); // get_dir_list(path, is_dir) static int l_get_dir_list(lua_State *L); // safe_file_write(path, content) static int l_safe_file_write(lua_State *L); // request_insecure_environment() static int l_request_insecure_environment(lua_State *L); // encode_base64(string) static int l_encode_base64(lua_State *L); // decode_base64(string) static int l_decode_base64(lua_State *L); // get_version() static int l_get_version(lua_State *L); // sha1(string, raw) static int l_sha1(lua_State *L); public: static void Initialize(lua_State *L, int top); static void InitializeAsync(lua_State *L, int top); static void InitializeClient(lua_State *L, int top); static void InitializeAsync(AsyncEngine &engine); };