mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
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
This commit is contained in:
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include "cpp_api/s_entity.h"
|
||||
#include "cpp_api/s_env.h"
|
||||
#include "cpp_api/s_inventory.h"
|
||||
#include "cpp_api/s_modchannels.h"
|
||||
#include "cpp_api/s_node.h"
|
||||
#include "cpp_api/s_player.h"
|
||||
#include "cpp_api/s_server.h"
|
||||
@@ -36,6 +37,7 @@ class ServerScripting:
|
||||
public ScriptApiDetached,
|
||||
public ScriptApiEntity,
|
||||
public ScriptApiEnv,
|
||||
public ScriptApiModChannels,
|
||||
public ScriptApiNode,
|
||||
public ScriptApiPlayer,
|
||||
public ScriptApiServer,
|
||||
|
Reference in New Issue
Block a user