i6engine
1.0
|
handles the current language of the Game a change of the language notifies all registered callbacks More...
#include <D:/Projekte/i6engine/libs/i6engine-modules/include/i6engine/api/manager/LanguageManager.h>
Public Member Functions | |
LanguageManager () | |
void | addCallback (const std::function< void(const std::string &)> &callback) |
adds a callback to be called on language change More... | |
void | setLanguage (const std::string &language) |
changes language More... | |
void | updateSubscribers () |
updates all subscribers might be necessary if your system depends on setting the value through language manager but is initialized afterwards as most things will be More... | |
handles the current language of the Game a change of the language notifies all registered callbacks
Definition at line 41 of file LanguageManager.h.
i6e::api::LanguageManager::LanguageManager | ( | ) |
|
inline |
adds a callback to be called on language change
Definition at line 48 of file LanguageManager.h.
void i6e::api::LanguageManager::setLanguage | ( | const std::string & | language | ) |
changes language
void i6e::api::LanguageManager::updateSubscribers | ( | ) |
updates all subscribers might be necessary if your system depends on setting the value through language manager but is initialized afterwards as most things will be