2013-03-23 19:12:49 +01:00
|
|
|
/* This program is free software. It comes without any warranty, to
|
|
|
|
* the extent permitted by applicable law. You can redistribute it
|
|
|
|
* and/or modify it under the terms of the Do What The Fuck You Want
|
|
|
|
* To Public License, Version 2, as published by Sam Hocevar. See
|
2013-03-24 22:56:57 +01:00
|
|
|
* http://www.wtfpl.net/ for more details. */
|
2013-03-23 19:12:49 +01:00
|
|
|
|
|
|
|
#ifndef GLOBALCONSTANTS_H_INCLUDED
|
|
|
|
#define GLOBALCONSTANTS_H_INCLUDED
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace GlobalConstants
|
|
|
|
{
|
|
|
|
// Language constants
|
|
|
|
const unsigned int LANGUAGE_EN = 1;
|
|
|
|
const unsigned int LANGUAGE_DE = 2;
|
|
|
|
const unsigned int LANGUAGE_FR = 4;
|
|
|
|
const unsigned int LANGUAGE_PL = 8;
|
|
|
|
const unsigned int LANGUAGE_RU = 16;
|
|
|
|
const unsigned int LANGUAGE_CN = 32;
|
|
|
|
const unsigned int LANGUAGE_CZ = 64;
|
|
|
|
const unsigned int LANGUAGE_ES = 128;
|
|
|
|
const unsigned int LANGUAGE_HU = 256;
|
|
|
|
const unsigned int LANGUAGE_IT = 512;
|
|
|
|
const unsigned int LANGUAGE_JP = 1024;
|
|
|
|
const unsigned int LANGUAGE_TR = 2048;
|
2013-08-02 15:03:06 +02:00
|
|
|
const unsigned int LANGUAGE_PT = 4096;
|
|
|
|
const unsigned int LANGUAGE_KO = 8192;
|
2014-02-06 08:57:37 +01:00
|
|
|
const unsigned int LANGUAGE_NL = 16384;
|
|
|
|
const unsigned int LANGUAGE_SV = 32768;
|
|
|
|
const unsigned int LANGUAGE_NO = 65536;
|
|
|
|
const unsigned int LANGUAGE_DA = 131072;
|
|
|
|
const unsigned int LANGUAGE_FI = 262144;
|
2013-03-23 19:12:49 +01:00
|
|
|
|
|
|
|
struct languageStruct {const unsigned int languageId; const std::string languageCode; const std::string languageString;};
|
|
|
|
const std::vector<languageStruct> LANGUAGES =
|
|
|
|
{
|
|
|
|
{ LANGUAGE_EN, "en", "English" },
|
|
|
|
{ LANGUAGE_DE, "de", "German" },
|
|
|
|
{ LANGUAGE_FR, "fr", "French" },
|
|
|
|
{ LANGUAGE_PL, "pl", "Polish" },
|
|
|
|
{ LANGUAGE_RU, "ru", "Russian" },
|
|
|
|
{ LANGUAGE_CN, "cn", "Chinese" },
|
|
|
|
{ LANGUAGE_CZ, "cz", "Czech" },
|
|
|
|
{ LANGUAGE_ES, "es", "Spanish" },
|
|
|
|
{ LANGUAGE_HU, "hu", "Hungarian" },
|
|
|
|
{ LANGUAGE_IT, "it", "Italian" },
|
|
|
|
{ LANGUAGE_JP, "jp", "Japanese" },
|
2013-08-02 15:03:06 +02:00
|
|
|
{ LANGUAGE_TR, "tr", "Turkish" },
|
|
|
|
{ LANGUAGE_PT, "pt", "Portuguese"},
|
2014-02-06 08:57:37 +01:00
|
|
|
{ LANGUAGE_KO, "ko", "Korean" },
|
|
|
|
{ LANGUAGE_NL, "nl", "Dutch" },
|
|
|
|
{ LANGUAGE_SV, "sv", "Swedish" },
|
|
|
|
{ LANGUAGE_NO, "no", "Norwegian" },
|
|
|
|
{ LANGUAGE_DA, "da", "Danish" },
|
|
|
|
{ LANGUAGE_FI, "fi", "Finnish" }
|
2013-03-23 19:12:49 +01:00
|
|
|
};
|
|
|
|
|
2013-04-25 09:56:53 +02:00
|
|
|
// Platform constants
|
2013-04-25 09:48:10 +02:00
|
|
|
const unsigned int PLATFORM_WINDOWS = 1;
|
|
|
|
const unsigned int PLATFORM_MAC = 2;
|
2013-03-23 19:12:49 +01:00
|
|
|
|
2013-04-25 09:48:10 +02:00
|
|
|
struct platformStruct {const unsigned int platformId; const std::string platformCode; const std::string platformString;};
|
|
|
|
const std::vector<platformStruct> PLATFORMS =
|
2013-03-23 19:12:49 +01:00
|
|
|
{
|
2013-04-25 09:48:10 +02:00
|
|
|
{ PLATFORM_WINDOWS, "win", "Windows" },
|
|
|
|
{ PLATFORM_MAC, "mac", "Mac" }
|
2013-03-23 19:12:49 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GLOBALCONSTANTS_H_INCLUDED
|