scriptapi: Sort out ServerEnvironment / Environment distinction properly
authorsfan5 <sfan5@live.de>
Fri, 10 Apr 2020 20:06:24 +0000 (22:06 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Sat, 11 Apr 2020 11:12:51 +0000 (13:12 +0200)
commit054c5dfaa35dd79560a465ccc0ef214cb5f34c88
tree7f9e2feefbee0708f3dc7371d3615767deba0048
parentf105bc8dc2444d98a9cd74a2caa0013ce2e07008
scriptapi: Sort out ServerEnvironment / Environment distinction properly

The API implementation is shared between CSM and SSM.
Functions should retrieve a plain env when they do not
need any server-specific functions.
src/environment.cpp
src/environment.h
src/script/lua_api/l_env.cpp
src/script/lua_api/l_internal.h
src/script/lua_api/l_object.cpp
src/serverenvironment.cpp
src/serverenvironment.h