Torque2D Reference
|
Class for working with language files. More...
#include <lang.h>
Public Member Functions | |
LangFile (const UTF8 *langName=NULL) | |
virtual | ~LangFile () |
bool | load (const UTF8 *filename) |
bool | save (const UTF8 *filename) |
bool | load (Stream *s) |
bool | save (Stream *s) |
const UTF8 * | getString (U32 id) |
U32 | addString (const UTF8 *str) |
void | setString (U32 id, const UTF8 *str) |
void | setLangName (const UTF8 *newName) |
const UTF8 * | getLangName (void) |
const UTF8 * | getLangFile (void) |
void | setLangFile (const UTF8 *langFile) |
bool | activateLanguage (void) |
void | deactivateLanguage (void) |
bool | isLoaded (void) |
S32 | getNumStrings (void) |
Protected Member Functions | |
void | freeTable () |
Protected Attributes | |
Vector< UTF8 * > | mStringTable |
UTF8 * | mLangName |
UTF8 * | mLangFile |
Class for working with language files.
LangFile | ( | const UTF8 * | langName = NULL | ) |
|
virtual |
bool activateLanguage | ( | void | ) |
U32 addString | ( | const UTF8 * | str | ) |
void deactivateLanguage | ( | void | ) |
|
protected |
|
inline |
|
inline |
|
inline |
const UTF8 * getString | ( | U32 | id | ) |
|
inline |
bool load | ( | const UTF8 * | filename | ) |
bool load | ( | Stream * | s | ) |
bool save | ( | const UTF8 * | filename | ) |
bool save | ( | Stream * | s | ) |
void setLangFile | ( | const UTF8 * | langFile | ) |
void setLangName | ( | const UTF8 * | newName | ) |
void setString | ( | U32 | id, |
const UTF8 * | str | ||
) |
|
protected |
|
protected |
|
protected |