25 #ifndef __I6ENGINE_API_LANGUAGEMANAGER_H__
26 #define __I6ENGINE_API_LANGUAGEMANAGER_H__
48 void addCallback(
const std::function<
void(
const std::string &)> & callback) {
49 _callbacks.push_back(callback);
55 void setLanguage(
const std::string & language);
61 void updateSubscribers();
64 std::string _language;
65 std::vector<std::function<void(const std::string &)>> _callbacks;
void addCallback(const std::function< void(const std::string &)> &callback)
adds a callback to be called on language change
#define ISIXE_MODULES_API
handles the current language of the Game a change of the language notifies all registered callbacks ...