[CSM] Client side modding
authorLoic Blot <loic.blot@unix-experience.fr>
Sat, 21 Jan 2017 14:02:08 +0000 (15:02 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Mon, 13 Mar 2017 22:56:05 +0000 (23:56 +0100)
commit2efae3ffd720095222c800e016286a45c9fe1e5c
tree3a8b19daa071cf742fee52d70a0e0adf94d56c0c
parentc9492b4d37c11f35cfdc1558f771eef87fc5c972
[CSM] Client side modding

* rename GameScripting to ServerScripting
* Make getBuiltinLuaPath static serverside
* Add on_shutdown callback
* Add on_receiving_chat_message & on_sending_chat_message callbacks
* ScriptApiBase: use IGameDef instead of Server
  This permits to share common attribute between client & server
* Enable mod security in client side modding without conditions
39 files changed:
builtin/client/init.lua [new file with mode: 0644]
builtin/client/register.lua [new file with mode: 0644]
builtin/init.lua
src/client.cpp
src/client.h
src/content_abm.cpp
src/content_sao.cpp
src/emerge.cpp
src/environment.cpp
src/game.cpp
src/gamedef.h
src/guiFormSpecMenu.cpp
src/inventorymanager.cpp
src/network/clientpackethandler.cpp
src/network/serverpackethandler.cpp
src/script/CMakeLists.txt
src/script/clientscripting.cpp [new file with mode: 0644]
src/script/clientscripting.h [new file with mode: 0644]
src/script/cpp_api/CMakeLists.txt
src/script/cpp_api/s_base.cpp
src/script/cpp_api/s_base.h
src/script/cpp_api/s_client.cpp [new file with mode: 0644]
src/script/cpp_api/s_client.h [new file with mode: 0644]
src/script/cpp_api/s_security.cpp
src/script/lua_api/CMakeLists.txt
src/script/lua_api/l_client.cpp [new file with mode: 0644]
src/script/lua_api/l_client.h [new file with mode: 0644]
src/script/lua_api/l_env.cpp
src/script/lua_api/l_env.h
src/script/lua_api/l_object.cpp
src/script/scripting_game.cpp [deleted file]
src/script/scripting_game.h [deleted file]
src/script/serverscripting.cpp [new file with mode: 0644]
src/script/serverscripting.h [new file with mode: 0644]
src/server.cpp
src/server.h
src/serverenvironment.cpp
src/serverenvironment.h
src/unittest/test.cpp