forked from TrinityCore/WowPacketParser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add hardcoded hotfix parsing, to make whole hotfix update pr…
…ocess easier and faster - TODO: find way to remove old data without deleting valid data
- Loading branch information
Showing
328 changed files
with
26,963 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
|
||
namespace WowPacketParser.SQL | ||
{ | ||
/// <summary> | ||
/// Marks if class belongs to hotfix table | ||
/// Only usuable with structs or classes | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true)] | ||
public sealed class HotfixAttribute : Attribute { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
WowPacketParser/Store/Objects/Hotfixes/AchievementCategoryHotfix.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.SQL; | ||
|
||
namespace WowPacketParser.Store.Objects | ||
{ | ||
[Hotfix] | ||
[DBTableName("achievement_category")] | ||
public sealed record AchievementCategoryHotfix1000: IDataModel | ||
{ | ||
[DBFieldName("Name")] | ||
public string Name; | ||
|
||
[DBFieldName("ID", true)] | ||
public uint? ID; | ||
|
||
[DBFieldName("Parent")] | ||
public short? Parent; | ||
|
||
[DBFieldName("UiOrder")] | ||
public sbyte? UiOrder; | ||
|
||
[DBFieldName("VerifiedBuild")] | ||
public int? VerifiedBuild = ClientVersion.BuildInt; | ||
} | ||
|
||
[Hotfix] | ||
[DBTableName("achievement_category_locale")] | ||
public sealed record AchievementCategoryLocaleHotfix1000: IDataModel | ||
{ | ||
[DBFieldName("ID", true)] | ||
public uint? ID; | ||
|
||
[DBFieldName("locale", true)] | ||
public string Locale = ClientLocale.PacketLocaleString; | ||
|
||
[DBFieldName("Name_lang")] | ||
public string NameLang; | ||
|
||
[DBFieldName("VerifiedBuild")] | ||
public int? VerifiedBuild = ClientVersion.BuildInt; | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
WowPacketParser/Store/Objects/Hotfixes/AchievementHotfix.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.SQL; | ||
|
||
namespace WowPacketParser.Store.Objects | ||
{ | ||
[Hotfix] | ||
[DBTableName("achievement")] | ||
public sealed record AchievementHotfix1000: IDataModel | ||
{ | ||
[DBFieldName("Description")] | ||
public string Description; | ||
|
||
[DBFieldName("Title")] | ||
public string Title; | ||
|
||
[DBFieldName("Reward")] | ||
public string Reward; | ||
|
||
[DBFieldName("ID", true)] | ||
public uint? ID; | ||
|
||
[DBFieldName("InstanceID")] | ||
public short? InstanceID; | ||
|
||
[DBFieldName("Faction")] | ||
public sbyte? Faction; | ||
|
||
[DBFieldName("Supercedes")] | ||
public short? Supercedes; | ||
|
||
[DBFieldName("Category")] | ||
public short? Category; | ||
|
||
[DBFieldName("MinimumCriteria")] | ||
public sbyte? MinimumCriteria; | ||
|
||
[DBFieldName("Points")] | ||
public sbyte? Points; | ||
|
||
[DBFieldName("Flags")] | ||
public int? Flags; | ||
|
||
[DBFieldName("UiOrder")] | ||
public short? UiOrder; | ||
|
||
[DBFieldName("IconFileID")] | ||
public int? IconFileID; | ||
|
||
[DBFieldName("RewardItemID")] | ||
public int? RewardItemID; | ||
|
||
[DBFieldName("CriteriaTree")] | ||
public uint? CriteriaTree; | ||
|
||
[DBFieldName("SharesCriteria")] | ||
public short? SharesCriteria; | ||
|
||
[DBFieldName("CovenantID")] | ||
public int? CovenantID; | ||
|
||
[DBFieldName("VerifiedBuild")] | ||
public int? VerifiedBuild = ClientVersion.BuildInt; | ||
} | ||
|
||
[Hotfix] | ||
[DBTableName("achievement_locale")] | ||
public sealed record AchievementLocaleHotfix1000: IDataModel | ||
{ | ||
[DBFieldName("ID", true)] | ||
public uint? ID; | ||
|
||
[DBFieldName("locale", true)] | ||
public string Locale = ClientLocale.PacketLocaleString; | ||
|
||
[DBFieldName("Description_lang")] | ||
public string DescriptionLang; | ||
|
||
[DBFieldName("Title_lang")] | ||
public string TitleLang; | ||
|
||
[DBFieldName("Reward_lang")] | ||
public string RewardLang; | ||
|
||
[DBFieldName("VerifiedBuild")] | ||
public int? VerifiedBuild = ClientVersion.BuildInt; | ||
} | ||
} |
111 changes: 111 additions & 0 deletions
111
WowPacketParser/Store/Objects/Hotfixes/AdventureJournalHotfix.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.SQL; | ||
|
||
namespace WowPacketParser.Store.Objects | ||
{ | ||
[Hotfix] | ||
[DBTableName("adventure_journal")] | ||
public sealed record AdventureJournalHotfix1000: IDataModel | ||
{ | ||
[DBFieldName("ID", true)] | ||
public uint? ID; | ||
|
||
[DBFieldName("Name")] | ||
public string Name; | ||
|
||
[DBFieldName("Description")] | ||
public string Description; | ||
|
||
[DBFieldName("ButtonText")] | ||
public string ButtonText; | ||
|
||
[DBFieldName("RewardDescription")] | ||
public string RewardDescription; | ||
|
||
[DBFieldName("ContinueDescription")] | ||
public string ContinueDescription; | ||
|
||
[DBFieldName("Type")] | ||
public byte? Type; | ||
|
||
[DBFieldName("PlayerConditionID")] | ||
public uint? PlayerConditionID; | ||
|
||
[DBFieldName("Flags")] | ||
public int? Flags; | ||
|
||
[DBFieldName("ButtonActionType")] | ||
public byte? ButtonActionType; | ||
|
||
[DBFieldName("TextureFileDataID")] | ||
public int? TextureFileDataID; | ||
|
||
[DBFieldName("LfgDungeonID")] | ||
public ushort? LfgDungeonID; | ||
|
||
[DBFieldName("QuestID")] | ||
public int? QuestID; | ||
|
||
[DBFieldName("BattleMasterListID")] | ||
public ushort? BattleMasterListID; | ||
|
||
[DBFieldName("PriorityMin")] | ||
public byte? PriorityMin; | ||
|
||
[DBFieldName("PriorityMax")] | ||
public byte? PriorityMax; | ||
|
||
[DBFieldName("ItemID")] | ||
public int? ItemID; | ||
|
||
[DBFieldName("ItemQuantity")] | ||
public uint? ItemQuantity; | ||
|
||
[DBFieldName("CurrencyType")] | ||
public ushort? CurrencyType; | ||
|
||
[DBFieldName("CurrencyQuantity")] | ||
public uint? CurrencyQuantity; | ||
|
||
[DBFieldName("UIMapID")] | ||
public ushort? UIMapID; | ||
|
||
[DBFieldName("BonusPlayerConditionID", 2)] | ||
public uint?[] BonusPlayerConditionID; | ||
|
||
[DBFieldName("BonusValue", 2)] | ||
public byte?[] BonusValue; | ||
|
||
[DBFieldName("VerifiedBuild")] | ||
public int? VerifiedBuild = ClientVersion.BuildInt; | ||
} | ||
|
||
[Hotfix] | ||
[DBTableName("adventure_journal_locale")] | ||
public sealed record AdventureJournalLocaleHotfix1000: IDataModel | ||
{ | ||
[DBFieldName("ID", true)] | ||
public uint? ID; | ||
|
||
[DBFieldName("locale", true)] | ||
public string Locale = ClientLocale.PacketLocaleString; | ||
|
||
[DBFieldName("Name_lang")] | ||
public string NameLang; | ||
|
||
[DBFieldName("Description_lang")] | ||
public string DescriptionLang; | ||
|
||
[DBFieldName("ButtonText_lang")] | ||
public string ButtonTextLang; | ||
|
||
[DBFieldName("RewardDescription_lang")] | ||
public string RewardDescriptionLang; | ||
|
||
[DBFieldName("ContinueDescription_lang")] | ||
public string ContinueDescriptionLang; | ||
|
||
[DBFieldName("VerifiedBuild")] | ||
public int? VerifiedBuild = ClientVersion.BuildInt; | ||
} | ||
} |
Oops, something went wrong.