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

summaryrefslogtreecommitdiff
path: root/source/base/StarRootBase.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 03:46:21 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 03:46:21 +1100
commit560ae08424956bb495bc2453973467d138029c7c (patch)
treef506d79185388e7217af75a43074884f17349cb2 /source/base/StarRootBase.hpp
parentff6e349aef9c5504896d1249b2d4a3b862c37d09 (diff)
Add support for directly setting image assets and processing Image userdata
Diffstat (limited to 'source/base/StarRootBase.hpp')
-rw-r--r--source/base/StarRootBase.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/base/StarRootBase.hpp b/source/base/StarRootBase.hpp
new file mode 100644
index 0000000..48a6a5e
--- /dev/null
+++ b/source/base/StarRootBase.hpp
@@ -0,0 +1,24 @@
+#pragma once
+
+#include "StarAssets.hpp"
+
+namespace Star {
+
+STAR_CLASS(Configuration);
+
+STAR_EXCEPTION(RootException, StarException);
+
+class RootBase {
+public:
+ static RootBase* singletonPtr();
+ static RootBase& singleton();
+
+ virtual AssetsConstPtr assets() = 0;
+ virtual ConfigurationPtr configuration() = 0;
+protected:
+ RootBase();
+
+ static atomic<RootBase*> s_singleton;
+};
+
+} \ No newline at end of file