From 8b778dda61c45f5d7a4dc416478c42ff4aa1de7f Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 23 Feb 2022 23:13:27 +0100 Subject: Moved content management out to ContentBundle --- Stars45/ContentBundle.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Stars45/ContentBundle.h') 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; -- cgit v1.1