i6engine  1.0
i6e::api::LanguageManager Class Reference

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...
 

Detailed Description

handles the current language of the Game a change of the language notifies all registered callbacks

Definition at line 41 of file LanguageManager.h.

Constructor & Destructor Documentation

i6e::api::LanguageManager::LanguageManager ( )

Member Function Documentation

void i6e::api::LanguageManager::addCallback ( const std::function< void(const std::string &)> &  callback)
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


The documentation for this class was generated from the following file: