summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ContentBundle.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-02-23 23:13:27 +0100
committerAki <please@ignore.pl>2022-02-23 23:13:27 +0100
commit8b778dda61c45f5d7a4dc416478c42ff4aa1de7f (patch)
tree004ea4bbe7dde92d4632b908de8450cb767549d3 /Stars45/ContentBundle.h
parent0052edae47d1e6ae613497c524719eff5838f52a (diff)
downloadstarshatter-8b778dda61c45f5d7a4dc416478c42ff4aa1de7f.zip
starshatter-8b778dda61c45f5d7a4dc416478c42ff4aa1de7f.tar.gz
starshatter-8b778dda61c45f5d7a4dc416478c42ff4aa1de7f.tar.bz2
Moved content management out to ContentBundle
Diffstat (limited to 'Stars45/ContentBundle.h')
-rw-r--r--Stars45/ContentBundle.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Stars45/ContentBundle.h b/Stars45/ContentBundle.h
index 346b509..7c23c66 100644
--- a/Stars45/ContentBundle.h
+++ b/Stars45/ContentBundle.h
@@ -26,10 +26,18 @@ class ContentBundle
public:
static const char* TYPENAME() { return "ContentBundle"; }
+ static ContentBundle* GetInstance();
+
+ ContentBundle();
ContentBundle(const char* bundle, Locale* locale);
virtual ~ContentBundle();
- int operator == (const ContentBundle& that) const { return this == &that; }
+ bool Init();
+ void UseLocale(Locale* locale);
+ void Load(const char* bundle, Locale* locale);
+
+ int operator == (const ContentBundle& that) = delete;
+ ContentBundle(const ContentBundle& that) = delete;
const Text& GetName() const { return name; }
Text GetText(const char* key) const;