aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_settings.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-08-12 23:07:27 +0200
committersapier <Sapier at GMX dot net>2014-08-19 22:22:57 +0200
commitc24e0753fc240636b2f9b1889554649e67c9046c (patch)
tree1de1583525dbce908a470941745e3a6b0c23b3c2 /src/script/lua_api/l_settings.h
parent4caa00cc99af133e5724cd8ab04f5cb8db81a666 (diff)
downloadminetest-c24e0753fc240636b2f9b1889554649e67c9046c.tar.gz
minetest-c24e0753fc240636b2f9b1889554649e67c9046c.tar.bz2
minetest-c24e0753fc240636b2f9b1889554649e67c9046c.zip
Mod profiling support
Config settings: profiling = true/false (gather statistics) detailed_profiling = true/false (break mod times to callbacks) Chat commands: save_mod_profile saves current statistics in debug.txt and shows on console (on default loglevel)
Diffstat (limited to 'src/script/lua_api/l_settings.h')
0 files changed, 0 insertions, 0 deletions
ndation; either version 2.1 of the License, or (at your option) any later version. 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 ModApiServer : public ModApiBase { private: // request_shutdown([message], [reconnect]) static int l_request_shutdown(lua_State *L); // get_server_status() static int l_get_server_status(lua_State *L); // get_server_uptime() static int l_get_server_uptime(lua_State *L); // get_server_max_lag() static int l_get_server_max_lag(lua_State *L); // get_worldpath() static int l_get_worldpath(lua_State *L); // is_singleplayer() static int l_is_singleplayer(lua_State *L); // get_current_modname() static int l_get_current_modname(lua_State *L); // get_modpath(modname) static int l_get_modpath(lua_State *L); // get_modnames() // the returned list is sorted alphabetically for you static int l_get_modnames(lua_State *L); // print(text) static int l_print(lua_State *L); // chat_send_all(text) static int l_chat_send_all(lua_State *L); // chat_send_player(name, text) static int l_chat_send_player(lua_State *L); // show_formspec(playername,formname,formspec) static int l_show_formspec(lua_State *L); // sound_play(spec, parameters) static int l_sound_play(lua_State *L); // sound_stop(handle) static int l_sound_stop(lua_State *L); // sound_fade(handle, step, gain) static int l_sound_fade(lua_State *L); // dynamic_add_media(filepath) static int l_dynamic_add_media(lua_State *L); // get_player_privs(name, text) static int l_get_player_privs(lua_State *L); // get_player_ip() static int l_get_player_ip(lua_State *L); // get_player_information(name) static int l_get_player_information(lua_State *L); // get_ban_list() static int l_get_ban_list(lua_State *L); // get_ban_description() static int l_get_ban_description(lua_State *L); // ban_player() static int l_ban_player(lua_State *L); // unban_player_or_ip() static int l_unban_player_or_ip(lua_State *L); // disconnect_player(name, [reason]) -> success static int l_disconnect_player(lua_State *L); // remove_player(name) static int l_remove_player(lua_State *L); // notify_authentication_modified(name) static int l_notify_authentication_modified(lua_State *L); public: static void Initialize(lua_State *L, int top); };