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

summaryrefslogtreecommitdiff
path: root/source/game/StarUniverseClient.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-20 17:53:57 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-20 17:53:57 +1000
commitd0307e7aa77ddc8d15b6d1e036e563f3c9150287 (patch)
tree32e81377a48fd6821bedfc1d41bfab82e7951275 /source/game/StarUniverseClient.cpp
parent5f86e0f027fe55004f835774db6b1d9b8d91ddd1 (diff)
Add celestial callbacks to UniverseClient scripts
Diffstat (limited to 'source/game/StarUniverseClient.cpp')
-rw-r--r--source/game/StarUniverseClient.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/game/StarUniverseClient.cpp b/source/game/StarUniverseClient.cpp
index bc1b0b9..35a74b0 100644
--- a/source/game/StarUniverseClient.cpp
+++ b/source/game/StarUniverseClient.cpp
@@ -22,6 +22,7 @@
#include "StarQuestManager.hpp"
#include "StarPlayerUniverseMap.hpp"
#include "StarWorldTemplate.hpp"
+#include "StarCelestialLuaBindings.hpp"
namespace Star {
@@ -449,6 +450,8 @@ void UniverseClient::setLuaCallbacks(String const& groupName, LuaCallbacks const
}
void UniverseClient::startLua() {
+ setLuaCallbacks("celestial", LuaBindings::makeCelestialCallbacks(this));
+
auto assets = Root::singleton().assets();
for (auto& p : assets->json("/client.config:universeScriptContexts").toObject()) {
auto scriptComponent = make_shared<ScriptComponent>();