BMC Engine v1.0.0
An open-source game engine powered by C and C++
Loading...
Searching...
No Matches
main Class Reference

#include <main-class.h>

Static Public Member Functions

static std::string translate (std::string key)
 

Static Public Attributes

static std::string locale = "en-US"
 
static Translatortranslator = new Translator(locale)
 

Detailed Description

Stores global data for the main class.

Member Function Documentation

◆ translate()

static std::string main::translate ( std::string key)
inlinestatic

Global translate function, for the program's translator.

Parameters
keyThe key to translate.

Member Data Documentation

◆ locale

std::string main::locale = "en-US"
inlinestatic

The program's locale for the translator.

◆ translator

Translator* main::translator = new Translator(locale)
inlinestatic

The program's translator.


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