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

summaryrefslogtreecommitdiff
path: root/source/game/scripting/StarWorldLuaBindings.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-04-02 13:11:42 +1100
committerGitHub <noreply@github.com>2024-04-02 13:11:42 +1100
commit40698751e79d119e1ae37ea605b320961d6b597a (patch)
tree9f1322f2f1f0588fe28dba62a0a4488855bfb0bd /source/game/scripting/StarWorldLuaBindings.hpp
parent14506b1014aa2e5cbc041ff7b6907c5f499a0e10 (diff)
parentcf93c2e9d40a87408e02a0c78ee4d38159e9e133 (diff)
Merge pull request #55 from ErodeesFleurs/sp
fixed the deadlock problem of universe.sendPacket and added world.sendPacket function
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 {