the whole game

This commit is contained in:
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

31
src/locale/I18n.h Executable file
View File

@@ -0,0 +1,31 @@
#ifndef NET_MINECRAFT_LOCALE__I18n_H__
#define NET_MINECRAFT_LOCALE__I18n_H__
//package net.minecraft.locale;
#include <map>
#include <string>
class AppPlatform;
class ItemInstance;
class I18n
{
typedef std::map<std::string, std::string> Map;
public:
static void loadLanguage(AppPlatform* platform, const std::string& languageCode);
static bool get(const std::string& id, std::string& out);
static std::string get(const std::string& id);
//static std::string get(const std::string& id, Object... args) {
// return lang.getElement(id, args);
//}
static std::string getDescriptionString( const ItemInstance& item );
private:
static void fillTranslations(AppPlatform* platform, const std::string& filename, bool overwrite);
static Map _strings;
};
#endif /*NET_MINECRAFT_LOCALE__I18n_H__*/