diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-07 18:26:31 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-07 18:26:31 +1100 |
commit | 3b40e89b3297a97a833711dbb77734b0412ac1d9 (patch) | |
tree | d1ed453d1aa48868bc6e3de6233b7fce9b8801be /source/client | |
parent | 9502b05ea4587f2c060608718486d5c8d5bc3ac5 (diff) |
Add camera bindings
override missing, but it's a start
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/StarClientApplication.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index 5f0c22e..250445c 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -22,6 +22,7 @@ #include "StarInterfaceLuaBindings.hpp" #include "StarInputLuaBindings.hpp" #include "StarVoiceLuaBindings.hpp" +#include "StarCameraLuaBindings.hpp" #include "StarClipboardLuaBindings.hpp" #if defined STAR_SYSTEM_WINDOWS @@ -541,6 +542,7 @@ void ClientApplication::changeState(MainAppState newState) { m_universeClient->setLuaCallbacks("input", LuaBindings::makeInputCallbacks()); m_universeClient->setLuaCallbacks("voice", LuaBindings::makeVoiceCallbacks()); + m_universeClient->setLuaCallbacks("camera", LuaBindings::makeCameraCallbacks(&m_worldPainter->camera())); if (!m_root->configuration()->get("safeScripts").toBool()) m_universeClient->setLuaCallbacks("clipboard", LuaBindings::makeClipboardCallbacks(appController())); |