Core/AdventureMap: Handle CMSG_ADVENTURE_MAP_START_QUEST

Port From (https://github.com/TrinityCore/TrinityCore/commit/08e017b3512ce8189adc6762e3670c20c900f54e)
This commit is contained in:
hondacrx
2021-03-17 13:38:49 -04:00
parent cf1f8e7385
commit 70cc1d7d50
9 changed files with 180 additions and 41 deletions
+2
View File
@@ -52,6 +52,7 @@ namespace Game.DataStorage
AchievementStorage = ReadDB2<AchievementRecord>("Achievement.db2", HotfixStatements.SEL_ACHIEVEMENT, HotfixStatements.SEL_ACHIEVEMENT_LOCALE);
AdventureJournalStorage = ReadDB2<AdventureJournalRecord>("AdventureJournal.db2", HotfixStatements.SEL_ADVENTURE_JOURNAL, HotfixStatements.SEL_ADVENTURE_JOURNAL_LOCALE);
AdventureMapPOIStorage = ReadDB2<AdventureMapPOIRecord>("AdventureMapPOI.db2", HotfixStatements.SEL_ADVENTURE_MAP_POI, HotfixStatements.SEL_ADVENTURE_MAP_POI_LOCALE);
AnimationDataStorage = ReadDB2<AnimationDataRecord>("AnimationData.db2", HotfixStatements.SEL_ANIMATION_DATA);
AnimKitStorage = ReadDB2<AnimKitRecord>("AnimKit.db2", HotfixStatements.SEL_ANIM_KIT);
AreaGroupMemberStorage = ReadDB2<AreaGroupMemberRecord>("AreaGroupMember.db2", HotfixStatements.SEL_AREA_GROUP_MEMBER);
@@ -412,6 +413,7 @@ namespace Game.DataStorage
#region Main Collections
public static DB6Storage<AchievementRecord> AchievementStorage;
public static DB6Storage<AdventureJournalRecord> AdventureJournalStorage;
public static DB6Storage<AdventureMapPOIRecord> AdventureMapPOIStorage;
public static DB6Storage<AnimationDataRecord> AnimationDataStorage;
public static DB6Storage<AnimKitRecord> AnimKitStorage;
public static DB6Storage<AreaGroupMemberRecord> AreaGroupMemberStorage;
+21 -4
View File
@@ -46,10 +46,10 @@ namespace Game.DataStorage
{
public uint Id;
public LocalizedString Name;
public LocalizedString Description;
public LocalizedString ButtonText;
public LocalizedString RewardDescription;
public LocalizedString ContinueDescription;
public string Description;
public string ButtonText;
public string RewardDescription;
public string ContinueDescription;
public byte Type;
public uint PlayerConditionID;
public byte Flags;
@@ -69,6 +69,23 @@ namespace Game.DataStorage
public byte[] BonusValue = new byte[2];
}
public sealed class AdventureMapPOIRecord
{
public uint Id;
public LocalizedString Title;
public string Description;
public Vector2 WorldPosition;
public sbyte Type;
public uint PlayerConditionID;
public uint QuestID;
public uint LfgDungeonID;
public int RewardItemID;
public uint UiTextureAtlasMemberID;
public uint UiTextureKitID;
public int MapID;
public uint AreaTableID;
}
public sealed class AnimationDataRecord
{
public uint Id;