diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-04 19:27:16 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-04 19:27:16 +1000 |
commit | e3461e90531345650fe70ada38d875a68f87f416 (patch) | |
tree | 41b923b02ca8dbac1b075654052c972545aab16e /source/game/scripting/StarLuaRoot.hpp | |
parent | ab72b03ad8679437ebf01ead65d9f0d3195e6bae (diff) |
Start of Interface callbacks, starting with a bindCanvas function for the whole screen
Diffstat (limited to 'source/game/scripting/StarLuaRoot.hpp')
-rw-r--r-- | source/game/scripting/StarLuaRoot.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/game/scripting/StarLuaRoot.hpp b/source/game/scripting/StarLuaRoot.hpp index 7335952..a26cf04 100644 --- a/source/game/scripting/StarLuaRoot.hpp +++ b/source/game/scripting/StarLuaRoot.hpp @@ -21,6 +21,9 @@ public: bool scriptLoaded(String const& assetPath) const; void unloadScript(String const& assetPath); + void restart(); + void shutdown(); + // A script context can be created from the combination of several scripts, // the functions / data in each script will be loaded in order, so that later // specified scripts will overwrite previous ones. @@ -39,8 +42,9 @@ public: size_t scriptCacheMemoryUsage() const; void clearScriptCache() const; - LuaEngine& luaEngine() const; + void addCallbacks(String const& groupName, LuaCallbacks const& callbacks); + LuaEngine& luaEngine() const; private: class ScriptCache { public: @@ -57,7 +61,9 @@ private: }; LuaEnginePtr m_luaEngine; + StringMap<LuaCallbacks> m_luaCallbacks; shared_ptr<ScriptCache> m_scriptCache; + ListenerPtr m_rootReloadListener; String m_storageDirectory; |