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:
hondacrx
2021-04-30 10:26:36 -04:00
parent 81e96ddaaa
commit 88d833945b
4 changed files with 83 additions and 0 deletions
+4
View File
@@ -202,6 +202,8 @@ namespace Game.DataStorage
ItemSpecOverrideStorage = ReadDB2<ItemSpecOverrideRecord>("ItemSpecOverride.db2", HotfixStatements.SEL_ITEM_SPEC_OVERRIDE);
ItemXBonusTreeStorage = ReadDB2<ItemXBonusTreeRecord>("ItemXBonusTree.db2", HotfixStatements.SEL_ITEM_X_BONUS_TREE);
//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);
LightStorage = ReadDB2<LightRecord>("Light.db2", HotfixStatements.SEL_LIGHT);
LiquidTypeStorage = ReadDB2<LiquidTypeRecord>("LiquidType.db2", HotfixStatements.SEL_LIQUID_TYPE);
@@ -563,6 +565,8 @@ namespace Game.DataStorage
public static DB6Storage<ItemSpecOverrideRecord> ItemSpecOverrideStorage;
public static DB6Storage<ItemXBonusTreeRecord> ItemXBonusTreeStorage;
//public static DB6Storage<KeyChainRecord> KeyChainStorage;
public static DB6Storage<LanguageWordsRecord> LanguageWordsStorage;
public static DB6Storage<LanguagesRecord> LanguagesStorage;
public static DB6Storage<LFGDungeonsRecord> LFGDungeonsStorage;
public static DB6Storage<LightRecord> LightStorage;
public static DB6Storage<LiquidTypeRecord> LiquidTypeStorage;
@@ -20,6 +20,19 @@ using Framework.GameMath;
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 uint Id;