Core/DataStores: Load LanguageWords.db2 and Languages.db2 for future use
Port From (https://github.com/TrinityCore/TrinityCore/commit/cd8edc68951dbd771d437a3824c6d06706242323)
This commit is contained in:
@@ -668,6 +668,13 @@ namespace Framework.Database
|
|||||||
PrepareStatement(HotfixStatements.SEL_KEYCHAIN, "SELECT ID, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, Key15, " +
|
PrepareStatement(HotfixStatements.SEL_KEYCHAIN, "SELECT ID, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, Key15, " +
|
||||||
"Key16, Key17, Key18, Key19, Key20, Key21, Key22, Key23, Key24, Key25, Key26, Key27, Key28, Key29, Key30, Key31, Key32 FROM keychain");
|
"Key16, Key17, Key18, Key19, Key20, Key21, Key22, Key23, Key24, Key25, Key26, Key27, Key28, Key29, Key30, Key31, Key32 FROM keychain");
|
||||||
|
|
||||||
|
// LanguageWords.db2
|
||||||
|
PrepareStatement(HotfixStatements.SEL_LANGUAGE_WORDS, "SELECT ID, Word, LanguageID FROM language_words");
|
||||||
|
|
||||||
|
// Languages.db2
|
||||||
|
PrepareStatement(HotfixStatements.SEL_LANGUAGES, "SELECT Name, ID FROM languages");
|
||||||
|
PrepareStatement(HotfixStatements.SEL_LANGUAGES_LOCALE, "SELECT ID, Name_lang FROM languages_locale WHERE locale = ?");
|
||||||
|
|
||||||
// LfgDungeons.db2
|
// LfgDungeons.db2
|
||||||
PrepareStatement(HotfixStatements.SEL_LFG_DUNGEONS, "SELECT ID, Name, Description, TypeID, Subtype, Faction, IconTextureFileID, RewardsBgTextureFileID, " +
|
PrepareStatement(HotfixStatements.SEL_LFG_DUNGEONS, "SELECT ID, Name, Description, TypeID, Subtype, Faction, IconTextureFileID, RewardsBgTextureFileID, " +
|
||||||
"PopupBgTextureFileID, ExpansionLevel, MapID, DifficultyID, MinGear, GroupID, OrderIndex, RequiredPlayerConditionId, RandomID, ScenarioID, " +
|
"PopupBgTextureFileID, ExpansionLevel, MapID, DifficultyID, MinGear, GroupID, OrderIndex, RequiredPlayerConditionId, RandomID, ScenarioID, " +
|
||||||
@@ -1503,6 +1510,11 @@ namespace Framework.Database
|
|||||||
|
|
||||||
SEL_KEYCHAIN,
|
SEL_KEYCHAIN,
|
||||||
|
|
||||||
|
SEL_LANGUAGE_WORDS,
|
||||||
|
|
||||||
|
SEL_LANGUAGES,
|
||||||
|
SEL_LANGUAGES_LOCALE,
|
||||||
|
|
||||||
SEL_LFG_DUNGEONS,
|
SEL_LFG_DUNGEONS,
|
||||||
SEL_LFG_DUNGEONS_LOCALE,
|
SEL_LFG_DUNGEONS_LOCALE,
|
||||||
|
|
||||||
|
|||||||
@@ -202,6 +202,8 @@ namespace Game.DataStorage
|
|||||||
ItemSpecOverrideStorage = ReadDB2<ItemSpecOverrideRecord>("ItemSpecOverride.db2", HotfixStatements.SEL_ITEM_SPEC_OVERRIDE);
|
ItemSpecOverrideStorage = ReadDB2<ItemSpecOverrideRecord>("ItemSpecOverride.db2", HotfixStatements.SEL_ITEM_SPEC_OVERRIDE);
|
||||||
ItemXBonusTreeStorage = ReadDB2<ItemXBonusTreeRecord>("ItemXBonusTree.db2", HotfixStatements.SEL_ITEM_X_BONUS_TREE);
|
ItemXBonusTreeStorage = ReadDB2<ItemXBonusTreeRecord>("ItemXBonusTree.db2", HotfixStatements.SEL_ITEM_X_BONUS_TREE);
|
||||||
//KeyChainStorage = ReadDB2<KeyChainRecord>("KeyChain.db2", HotfixStatements.SEL_KEYCHAIN);
|
//KeyChainStorage = ReadDB2<KeyChainRecord>("KeyChain.db2", HotfixStatements.SEL_KEYCHAIN);
|
||||||
|
LanguageWordsStorage = ReadDB2<LanguageWordsRecord>("LanguageWords.db2", HotfixStatements.SEL_LANGUAGE_WORDS);
|
||||||
|
LanguagesStorage = ReadDB2<LanguagesRecord>("Languages.db2", HotfixStatements.SEL_LANGUAGES, HotfixStatements.SEL_LANGUAGES_LOCALE);
|
||||||
LFGDungeonsStorage = ReadDB2<LFGDungeonsRecord>("LFGDungeons.db2", HotfixStatements.SEL_LFG_DUNGEONS, HotfixStatements.SEL_LFG_DUNGEONS_LOCALE);
|
LFGDungeonsStorage = ReadDB2<LFGDungeonsRecord>("LFGDungeons.db2", HotfixStatements.SEL_LFG_DUNGEONS, HotfixStatements.SEL_LFG_DUNGEONS_LOCALE);
|
||||||
LightStorage = ReadDB2<LightRecord>("Light.db2", HotfixStatements.SEL_LIGHT);
|
LightStorage = ReadDB2<LightRecord>("Light.db2", HotfixStatements.SEL_LIGHT);
|
||||||
LiquidTypeStorage = ReadDB2<LiquidTypeRecord>("LiquidType.db2", HotfixStatements.SEL_LIQUID_TYPE);
|
LiquidTypeStorage = ReadDB2<LiquidTypeRecord>("LiquidType.db2", HotfixStatements.SEL_LIQUID_TYPE);
|
||||||
@@ -563,6 +565,8 @@ namespace Game.DataStorage
|
|||||||
public static DB6Storage<ItemSpecOverrideRecord> ItemSpecOverrideStorage;
|
public static DB6Storage<ItemSpecOverrideRecord> ItemSpecOverrideStorage;
|
||||||
public static DB6Storage<ItemXBonusTreeRecord> ItemXBonusTreeStorage;
|
public static DB6Storage<ItemXBonusTreeRecord> ItemXBonusTreeStorage;
|
||||||
//public static DB6Storage<KeyChainRecord> KeyChainStorage;
|
//public static DB6Storage<KeyChainRecord> KeyChainStorage;
|
||||||
|
public static DB6Storage<LanguageWordsRecord> LanguageWordsStorage;
|
||||||
|
public static DB6Storage<LanguagesRecord> LanguagesStorage;
|
||||||
public static DB6Storage<LFGDungeonsRecord> LFGDungeonsStorage;
|
public static DB6Storage<LFGDungeonsRecord> LFGDungeonsStorage;
|
||||||
public static DB6Storage<LightRecord> LightStorage;
|
public static DB6Storage<LightRecord> LightStorage;
|
||||||
public static DB6Storage<LiquidTypeRecord> LiquidTypeStorage;
|
public static DB6Storage<LiquidTypeRecord> LiquidTypeStorage;
|
||||||
|
|||||||
@@ -20,6 +20,19 @@ using Framework.GameMath;
|
|||||||
|
|
||||||
namespace Game.DataStorage
|
namespace Game.DataStorage
|
||||||
{
|
{
|
||||||
|
public sealed class LanguageWordsRecord
|
||||||
|
{
|
||||||
|
public uint Id;
|
||||||
|
public string Word;
|
||||||
|
public uint LanguageID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public sealed class LanguagesRecord
|
||||||
|
{
|
||||||
|
public LocalizedString Name;
|
||||||
|
public uint Id;
|
||||||
|
}
|
||||||
|
|
||||||
public sealed class LFGDungeonsRecord
|
public sealed class LFGDungeonsRecord
|
||||||
{
|
{
|
||||||
public uint Id;
|
public uint Id;
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
--
|
||||||
|
-- Table structure for table `language_words`
|
||||||
|
--
|
||||||
|
DROP TABLE IF EXISTS `language_words`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!50503 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `language_words` (
|
||||||
|
`ID` int(10) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`Word` text,
|
||||||
|
`LanguageID` int(10) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`VerifiedBuild` int(11) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`ID`,`VerifiedBuild`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `languages`
|
||||||
|
--
|
||||||
|
DROP TABLE IF EXISTS `languages`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!50503 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `languages` (
|
||||||
|
`Name` text,
|
||||||
|
`ID` int(10) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`VerifiedBuild` int(11) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`ID`,`VerifiedBuild`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `languages_locale`
|
||||||
|
--
|
||||||
|
DROP TABLE IF EXISTS `languages_locale`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!50503 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `languages_locale` (
|
||||||
|
`ID` int(10) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`locale` varchar(4) NOT NULL,
|
||||||
|
`Name_lang` text,
|
||||||
|
`VerifiedBuild` int(11) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`ID`,`locale`,`VerifiedBuild`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
|
||||||
|
/*!50500 PARTITION BY LIST COLUMNS(locale)
|
||||||
|
(PARTITION deDE VALUES IN ('deDE') ENGINE = InnoDB,
|
||||||
|
PARTITION esES VALUES IN ('esES') ENGINE = InnoDB,
|
||||||
|
PARTITION esMX VALUES IN ('esMX') ENGINE = InnoDB,
|
||||||
|
PARTITION frFR VALUES IN ('frFR') ENGINE = InnoDB,
|
||||||
|
PARTITION itIT VALUES IN ('itIT') ENGINE = InnoDB,
|
||||||
|
PARTITION koKR VALUES IN ('koKR') ENGINE = InnoDB,
|
||||||
|
PARTITION ptBR VALUES IN ('ptBR') ENGINE = InnoDB,
|
||||||
|
PARTITION ruRU VALUES IN ('ruRU') ENGINE = InnoDB,
|
||||||
|
PARTITION zhCN VALUES IN ('zhCN') ENGINE = InnoDB,
|
||||||
|
PARTITION zhTW VALUES IN ('zhTW') ENGINE = InnoDB) */;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
Reference in New Issue
Block a user