diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-10-17 19:02:24 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-10-17 19:02:24 +1100 |
commit | 0a5e92ef389a67956b1075cf7e4f0c3b2461c190 (patch) | |
tree | af463a81a8c67650a33d150bd50b87f01e0f2d2f /source/game/StarWorldClient.hpp | |
parent | 9ba9eb2ac33a53a8fd50ce14d40be00d42a9f7af (diff) |
unify UniverseClient & WorldClient LuaRoots & let universeClient scripts intercept packets
can be used for intercepting chat packets, for example!
Diffstat (limited to 'source/game/StarWorldClient.hpp')
-rw-r--r-- | source/game/StarWorldClient.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/game/StarWorldClient.hpp b/source/game/StarWorldClient.hpp index 2957661..502a928 100644 --- a/source/game/StarWorldClient.hpp +++ b/source/game/StarWorldClient.hpp @@ -38,7 +38,7 @@ STAR_EXCEPTION(WorldClientException, StarException); class WorldClient : public World { public: - WorldClient(PlayerPtr mainPlayer); + WorldClient(PlayerPtr mainPlayer, LuaRootPtr luaRoot); ~WorldClient(); ConnectionId connection() const override; @@ -134,9 +134,6 @@ public: void handleIncomingPackets(List<PacketPtr> const& packets); List<PacketPtr> getOutgoingPackets(); - - // Sets default callbacks in the LuaRoot. - void setLuaCallbacks(String const& groupName, LuaCallbacks const& callbacks); // Set the rendering window for this client. void setClientWindow(RectI window); |