Веб-сайт самохостера 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:39:34 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-04-02 13:39:34 +1100
commit662f12da9624435b1850b424817879f12b7a30b2 (patch)
treed43af674451d2247b91b2e3b9fa3f3e4b4181423 /source/game/scripting/StarWorldLuaBindings.hpp
parent40698751e79d119e1ae37ea605b320961d6b597a (diff)
improvements to universe.sendPacket and world.sendPacket
adds necessary clientsMutex lock, and returns false if sending failed
Diffstat (limited to 'source/game/scripting/StarWorldLuaBindings.hpp')
-rw-r--r--source/game/scripting/StarWorldLuaBindings.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/scripting/StarWorldLuaBindings.hpp b/source/game/scripting/StarWorldLuaBindings.hpp
index 114536d..e3329bf 100644
--- a/source/game/scripting/StarWorldLuaBindings.hpp
+++ b/source/game/scripting/StarWorldLuaBindings.hpp
@@ -88,7 +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);
+ bool sendPacket(WorldServer* world, ConnectionId clientId, String const& packetType, Json const& packetData);
}
namespace WorldDebugCallbacks {