minetest/src/script
Loïc Blot 454dbf83a9
Server class code cleanups (#9769)
* Server::overrideDayNightRatio doesn't require to return bool
There is no sense to sending null player, the caller should send a valid object

* Server::init: make private & cleanup
This function is always called before start() and loads some variables which can be loaded in constructor directly.
Make it private and call it directly in start

* Split Server inventory responsibility to a dedicated object

This splits permit to found various historical issues:
* duplicate lookups on player connection
* sending inventory to non related player when a player connects
* non friendly lookups on detached inventories ownership

This reduce the detached inventory complexity and also increased the
lookup performance in a quite interesting way for servers with thousands
of inventories.
2020-05-07 22:38:41 +02:00
..
common Expose collided objects in moveresult 2020-05-06 14:03:52 +02:00
cpp_api Expose collision information to LuaEntity on_step 2020-04-27 20:45:46 +02:00
lua_api Server class code cleanups (#9769) 2020-05-07 22:38:41 +02:00
CMakeLists.txt Rename Scripting API files for consistency 2017-04-25 13:41:36 -04:00
scripting_client.cpp A few initialization cleanups 2020-04-11 13:12:51 +02:00
scripting_client.h A few initialization cleanups 2020-04-11 13:12:51 +02:00
scripting_mainmenu.cpp Add online content repository 2018-04-19 20:14:53 +01:00
scripting_mainmenu.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
scripting_server.cpp Refactor Script API's log_deprecated 2020-02-23 22:24:12 +01:00
scripting_server.h Refactor Script API's log_deprecated 2020-02-23 22:24:12 +01:00