2015-07-01 23:17:14 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
#include "IMessageManager.h"
|
2016-02-19 13:05:04 -05:00
|
|
|
#include <unordered_map>
|
2016-06-19 16:54:34 -04:00
|
|
|
#include "../Utilities/SimpleLock.h"
|
2015-07-01 23:17:14 -04:00
|
|
|
|
|
|
|
class MessageManager
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static IMessageManager* _messageManager;
|
2016-02-19 13:05:04 -05:00
|
|
|
static std::unordered_map<string, string> _enResources;
|
|
|
|
static std::unordered_map<string, string> _frResources;
|
|
|
|
static std::unordered_map<string, string> _jaResources;
|
2016-07-20 14:35:20 +03:00
|
|
|
static std::unordered_map<string, string> _ruResources;
|
2016-07-23 16:07:51 -04:00
|
|
|
static std::unordered_map<string, string> _esResources;
|
2016-09-02 20:10:24 -04:00
|
|
|
static std::unordered_map<string, string> _ukResources;
|
2016-12-20 23:04:20 -05:00
|
|
|
static std::unordered_map<string, string> _ptResources;
|
2017-08-13 23:11:33 +02:00
|
|
|
static std::unordered_map<string, string> _caResources;
|
2016-07-23 16:07:51 -04:00
|
|
|
|
2016-06-19 16:54:34 -04:00
|
|
|
static SimpleLock _logLock;
|
|
|
|
static std::list<string> _log;
|
2018-07-02 14:49:19 -04:00
|
|
|
|
2015-07-01 23:17:14 -04:00
|
|
|
public:
|
2016-02-19 13:05:04 -05:00
|
|
|
static string Localize(string key);
|
|
|
|
|
2015-07-01 23:17:14 -04:00
|
|
|
static void RegisterMessageManager(IMessageManager* messageManager);
|
2016-06-05 19:20:47 -04:00
|
|
|
static void DisplayMessage(string title, string message, string param1 = "", string param2 = "");
|
2015-07-01 23:17:14 -04:00
|
|
|
|
2016-06-19 16:54:34 -04:00
|
|
|
static void Log(string message = "");
|
|
|
|
static string GetLog();
|
2017-08-13 23:11:33 +02:00
|
|
|
};
|