Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/scripting/StarWorldLuaBindings.hpp
diff options
context:
space:
mode:
authorErodeesFleurs <3353309908@qq.com>2024-04-02 09:34:06 +0800
committerErodeesFleurs <3353309908@qq.com>2024-04-02 09:34:06 +0800
commitbe571b5cd04f3986dc5725b4b04b4f94bd67a16c (patch)
tree5f0c8e4a3ed78a3fd753f512993afbb7dd60282d /source/game/scripting/StarWorldLuaBindings.hpp
parent14506b1014aa2e5cbc041ff7b6907c5f499a0e10 (diff)
add world.sendPacket and fixed deadlock
Diffstat (limited to 'source/game/scripting/StarWorldLuaBindings.hpp')
-rw-r--r--source/game/scripting/StarWorldLuaBindings.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/game/scripting/StarWorldLuaBindings.hpp b/source/game/scripting/StarWorldLuaBindings.hpp
index 010affd..114536d 100644
--- a/source/game/scripting/StarWorldLuaBindings.hpp
+++ b/source/game/scripting/StarWorldLuaBindings.hpp
@@ -88,6 +88,7 @@ namespace LuaBindings {
List<EntityId> players(World* world);
LuaString fidelity(World* world, LuaEngine& engine);
Maybe<LuaValue> callScriptContext(World* world, String const& contextName, String const& function, LuaVariadic<LuaValue> const& args);
+ void sendPacket(WorldServer* world, ConnectionId clientId, String const& packetType, Json const& packetData);
}
namespace WorldDebugCallbacks {