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

summaryrefslogtreecommitdiff
path: root/source/base/StarAssets.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/base/StarAssets.hpp')
-rw-r--r--source/base/StarAssets.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/base/StarAssets.hpp b/source/base/StarAssets.hpp
index f945cf8..8cfbc52 100644
--- a/source/base/StarAssets.hpp
+++ b/source/base/StarAssets.hpp
@@ -7,6 +7,7 @@
#include "StarThread.hpp"
#include "StarAssetSource.hpp"
#include "StarAssetPath.hpp"
+#include "StarRefPtr.hpp"
namespace Star {
@@ -16,6 +17,8 @@ STAR_CLASS(Image);
STAR_STRUCT(FramesSpecification);
STAR_CLASS(Assets);
+STAR_CLASS(LuaContext);
+
STAR_EXCEPTION(AssetException, StarException);
// The contents of an assets .frames file, which can be associated with one or
@@ -313,6 +316,11 @@ private:
mutable StringMap<String> m_bestFramesFiles;
mutable StringMap<FramesSpecificationConstPtr> m_framesSpecifications;
+ // Lua
+ RefPtr<RefCounter> m_luaEngine; // dumb but to avoid including Lua.hpp in here...
+ mutable StringMap<LuaContextPtr> m_patchContexts;
+ mutable Mutex m_luaMutex;
+
// Paths of all used asset sources, in load order.
StringList m_assetSources;