diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-20 17:53:57 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-20 17:53:57 +1000 |
commit | d0307e7aa77ddc8d15b6d1e036e563f3c9150287 (patch) | |
tree | 32e81377a48fd6821bedfc1d41bfab82e7951275 /source/game/StarUniverseClient.cpp | |
parent | 5f86e0f027fe55004f835774db6b1d9b8d91ddd1 (diff) |
Add celestial callbacks to UniverseClient scripts
Diffstat (limited to 'source/game/StarUniverseClient.cpp')
-rw-r--r-- | source/game/StarUniverseClient.cpp | 3 |
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>(); |