Skip to content

Commit

Permalink
Added TWW hotfix parsing (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
meji46 authored Oct 10, 2024
1 parent fd120ac commit 775a4fe
Show file tree
Hide file tree
Showing 351 changed files with 31,191 additions and 2,439 deletions.
2 changes: 2 additions & 0 deletions WowPacketParser/Enums/DB2Hash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public enum DB2Hash : uint
BattlePetState = 0x8F447330,
BattlePetVisual = 0xC3ADEB43,
BattlemasterList = 0x558D704E,
BattlemasterListXMap = 0xDB250876,
BeamEffect = 0x017FAEA0,
BeckonTrigger = 0xE5A45F1D,
BoneWindModifierModel = 0x15D0EFA4,
Expand Down Expand Up @@ -995,6 +996,7 @@ public enum DB2Hash : uint
TraitNodeXTraitCond = 0x8CCCDE25,
TraitNodeXTraitCost = 0x25FCD896,
TraitNodeXTraitNodeEntry = 0xA4379E4E,
TraitSubTree = 0x4171C94A,
TraitSystem = 0x53E0E2E4,
TraitTree = 0x964B11D9,
TraitTreeLoadout = 0x1068236A,
Expand Down
1 change: 1 addition & 0 deletions WowPacketParser/Hotfix/IHotfixSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ public void SerializeStore(HotfixStore<T> store, StringBuilder hotfixBuilder, St
case "toy":
case "trait_currency_source":
case "trait_definition":
case "trait_sub_tree":
case "transmog_set_group":
case "transmog_set":
case "ui_map":
Expand Down
8,063 changes: 5,630 additions & 2,433 deletions WowPacketParser/SQL/Builders/HotfixBuilder.cs

Large diffs are not rendered by default.

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 AchievementCategoryHotfix1100: IDataModel
{
[DBFieldName("Name")]
public string Name;

[DBFieldName("ID", true)]
public uint? ID;

[DBFieldName("Parent")]
public short? Parent;

[DBFieldName("UiOrder")]
public byte? UiOrder;

[DBFieldName("VerifiedBuild")]
public int? VerifiedBuild = ClientVersion.BuildInt;
}

[Hotfix]
[DBTableName("achievement_category_locale")]
public sealed record AchievementCategoryLocaleHotfix1100: 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;
}
}
93 changes: 93 additions & 0 deletions WowPacketParser/Store/Objects/Hotfixes/11_X_X/AchievementHotfix.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
using WowPacketParser.Misc;
using WowPacketParser.SQL;

namespace WowPacketParser.Store.Objects
{
[Hotfix]
[DBTableName("achievement")]
public sealed record AchievementHotfix1100 : 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 int? Supercedes;

[DBFieldName("Category")]
public short? Category;

[DBFieldName("MinimumCriteria")]
public sbyte? MinimumCriteria;

[DBFieldName("Points")]
public sbyte? Points;

[DBFieldName("Flags")]
public int? Flags;

[DBFieldName("UiOrder")]
public ushort? 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("HiddenBeforeDisplaySeason")]
public int? HiddenBeforeDisplaySeason;

[DBFieldName("LegacyAfterTimeEvent")]
public int? LegacyAfterTimeEvent;

[DBFieldName("VerifiedBuild")]
public int? VerifiedBuild = ClientVersion.BuildInt;
}

[Hotfix]
[DBTableName("achievement_locale")]
public sealed record AchievementLocaleHotfix1100 : 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;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
using WowPacketParser.Misc;
using WowPacketParser.SQL;

namespace WowPacketParser.Store.Objects
{
[Hotfix]
[DBTableName("adventure_journal")]
public sealed record AdventureJournalHotfix1100 : 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("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 AdventureJournalLocaleHotfix1100 : 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;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
using WowPacketParser.Misc;
using WowPacketParser.SQL;

namespace WowPacketParser.Store.Objects
{
[Hotfix]
[DBTableName("adventure_map_poi")]
public sealed record AdventureMapPoiHotfix1100: IDataModel
{
[DBFieldName("ID", true)]
public uint? ID;

[DBFieldName("Title")]
public string Title;

[DBFieldName("Description")]
public string Description;

[DBFieldName("WorldPositionX")]
public float? WorldPositionX;

[DBFieldName("WorldPositionY")]
public float? WorldPositionY;

[DBFieldName("Type")]
public sbyte? Type;

[DBFieldName("PlayerConditionID")]
public uint? PlayerConditionID;

[DBFieldName("QuestID")]
public uint? QuestID;

[DBFieldName("LfgDungeonID")]
public uint? LfgDungeonID;

[DBFieldName("RewardItemID")]
public int? RewardItemID;

[DBFieldName("UiTextureAtlasMemberID")]
public uint? UiTextureAtlasMemberID;

[DBFieldName("UiTextureKitID")]
public uint? UiTextureKitID;

[DBFieldName("MapID")]
public int? MapID;

[DBFieldName("AreaTableID")]
public uint? AreaTableID;

[DBFieldName("VerifiedBuild")]
public int? VerifiedBuild = ClientVersion.BuildInt;
}

[Hotfix]
[DBTableName("adventure_map_poi_locale")]
public sealed record AdventureMapPoiLocaleHotfix1100: IDataModel
{
[DBFieldName("ID", true)]
public uint? ID;

[DBFieldName("locale", true)]
public string Locale = ClientLocale.PacketLocaleString;

[DBFieldName("Title_lang")]
public string TitleLang;

[DBFieldName("Description_lang")]
public string DescriptionLang;

[DBFieldName("VerifiedBuild")]
public int? VerifiedBuild = ClientVersion.BuildInt;
}
}
25 changes: 25 additions & 0 deletions WowPacketParser/Store/Objects/Hotfixes/11_X_X/AnimKitHotfix.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using WowPacketParser.Misc;
using WowPacketParser.SQL;

namespace WowPacketParser.Store.Objects
{
[Hotfix]
[DBTableName("anim_kit")]
public sealed record AnimKitHotfix1100: IDataModel
{
[DBFieldName("ID", true)]
public uint? ID;

[DBFieldName("OneShotDuration")]
public uint? OneShotDuration;

[DBFieldName("OneShotStopAnimKitID")]
public ushort? OneShotStopAnimKitID;

[DBFieldName("LowDefAnimKitID")]
public ushort? LowDefAnimKitID;

[DBFieldName("VerifiedBuild")]
public int? VerifiedBuild = ClientVersion.BuildInt;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using WowPacketParser.Misc;
using WowPacketParser.SQL;

namespace WowPacketParser.Store.Objects
{
[Hotfix]
[DBTableName("animation_data")]
public sealed record AnimationDataHotfix1100: IDataModel
{
[DBFieldName("ID", true)]
public uint? ID;

[DBFieldName("Fallback")]
public ushort? Fallback;

[DBFieldName("BehaviorTier")]
public byte? BehaviorTier;

[DBFieldName("BehaviorID")]
public short? BehaviorID;

[DBFieldName("Flags", 2)]
public int?[] Flags;

[DBFieldName("VerifiedBuild")]
public int? VerifiedBuild = ClientVersion.BuildInt;
}
}
Loading

0 comments on commit 775a4fe

Please sign in to comment.