]> git.lizzy.rs Git - dragonfireclient.git/commit
Implement mod communication channels (#6351)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Mon, 25 Sep 2017 22:11:20 +0000 (00:11 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Sep 2017 22:11:20 +0000 (00:11 +0200)
commit6f1c90720402415b62fb4d5e809ec7dbc1cd7f96
tree6f94c2bbc2d343be50945a0074bc16da282a4bc1
parent6df312a608912b3cb21d04532151e29e8b0c7301
Implement mod communication channels (#6351)

Implement network communication for channels

* Implement ModChannel manager server side to route incoming messages from clients to other clients
* Add signal handler switch on client & ModChannelMgr on client to handle channels
* Add Lua API bindings + client packet sending + unittests
* Implement server message sending
* Add callback from received message handler to Lua API using registration method
37 files changed:
builtin/client/register.lua
builtin/game/register.lua
builtin/settingtypes.txt
clientmods/preview/init.lua
doc/client_lua_api.md
doc/lua_api.txt
doc/mod_channels.png [new file with mode: 0644]
games/minimal/mods/experimental/init.lua
games/minimal/mods/experimental/modchannels.lua [new file with mode: 0644]
minetest.conf.example
src/CMakeLists.txt
src/client.cpp
src/client.h
src/defaultsettings.cpp
src/gamedef.h
src/modchannels.cpp [new file with mode: 0644]
src/modchannels.h [new file with mode: 0644]
src/network/clientopcodes.cpp
src/network/clientpackethandler.cpp
src/network/networkprotocol.h
src/network/serveropcodes.cpp
src/network/serverpackethandler.cpp
src/script/cpp_api/CMakeLists.txt
src/script/cpp_api/s_modchannels.cpp [new file with mode: 0644]
src/script/cpp_api/s_modchannels.h [new file with mode: 0644]
src/script/lua_api/CMakeLists.txt
src/script/lua_api/l_modchannels.cpp [new file with mode: 0644]
src/script/lua_api/l_modchannels.h [new file with mode: 0644]
src/script/scripting_client.cpp
src/script/scripting_client.h
src/script/scripting_server.cpp
src/script/scripting_server.h
src/server.cpp
src/server.h
src/unittest/CMakeLists.txt
src/unittest/test.cpp
src/unittest/test_modchannels.cpp [new file with mode: 0644]