mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-24 03:19:44 +00:00
server compilable
This commit is contained in:
parent
cbd81b47ce
commit
a45c01d013
96 changed files with 3344 additions and 7975 deletions
|
|
@ -3,17 +3,17 @@
|
|||
|
||||
//package net.minecraft.locale;
|
||||
|
||||
#include "IPlatform.h"
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
class AppPlatform;
|
||||
class ItemInstance;
|
||||
|
||||
class I18n
|
||||
{
|
||||
class I18n {
|
||||
typedef std::map<std::string, std::string> Map;
|
||||
public:
|
||||
static void loadLanguage(AppPlatform* platform, const std::string& languageCode);
|
||||
static void loadLanguage(IPlatform& platform, const std::string& languageCode);
|
||||
|
||||
static bool get(const std::string& id, std::string& out);
|
||||
static std::string get(const std::string& id);
|
||||
|
|
@ -24,7 +24,7 @@ public:
|
|||
static std::string getDescriptionString( const ItemInstance& item );
|
||||
|
||||
private:
|
||||
static void fillTranslations(AppPlatform* platform, const std::string& filename, bool overwrite);
|
||||
static void fillTranslations(IPlatform& platform, const std::string& filename, bool overwrite);
|
||||
static Map _strings;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue