diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-17 22:20:39 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-17 22:20:39 +1000 |
commit | 34bb0b54222c1c0f3450c56e76f89f192d77374b (patch) | |
tree | 09e119625d066d16e3a81a8f6c0c424c4159f058 /source/game/StarUniverseClient.hpp | |
parent | 848b11399f2e34d7f1e0523e214287bfdcc5816c (diff) |
Initial voice HUD indicator setup
Diffstat (limited to 'source/game/StarUniverseClient.hpp')
-rw-r--r-- | source/game/StarUniverseClient.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/game/StarUniverseClient.hpp b/source/game/StarUniverseClient.hpp index b26f2df..daad481 100644 --- a/source/game/StarUniverseClient.hpp +++ b/source/game/StarUniverseClient.hpp @@ -10,6 +10,7 @@ #include "StarAiTypes.hpp" #include "StarSky.hpp" #include "StarUniverseConnection.hpp" +#include "StarLuaComponents.hpp" namespace Star { @@ -29,8 +30,8 @@ STAR_CLASS(CelestialDatabase); STAR_CLASS(JsonRpcInterface); STAR_CLASS(TeamClient); STAR_CLASS(QuestManager); - STAR_CLASS(UniverseClient); +STAR_CLASS(LuaRoot); class UniverseClient { public: @@ -86,6 +87,8 @@ public: uint16_t maxPlayers(); void setLuaCallbacks(String const& groupName, LuaCallbacks const& callbacks); + void startLua(); + void stopLua(); ClockConstPtr universeClock() const; CelestialLogConstPtr celestialLog() const; @@ -141,6 +144,12 @@ private: List<ChatReceivedMessage> m_pendingMessages; Maybe<String> m_disconnectReason; + + LuaRootPtr m_luaRoot; + + typedef LuaUpdatableComponent<LuaBaseComponent> ScriptComponent; + typedef shared_ptr<ScriptComponent> ScriptComponentPtr; + StringMap<ScriptComponentPtr> m_scriptContexts; }; } |