-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added SQL output for conditional quest texts (#830)
- Loading branch information
Showing
5 changed files
with
177 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
using WowPacketParser.Enums; | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.SQL; | ||
|
||
namespace WowPacketParser.Store.Objects | ||
{ | ||
public record QuestTextConditional : IDataModel | ||
{ | ||
[DBFieldName("QuestId", true)] | ||
public int? QuestId; | ||
|
||
[DBFieldName("PlayerConditionId", true)] | ||
public int? PlayerConditionId; | ||
|
||
[DBFieldName("QuestgiverCreatureId", true)] | ||
public int? QuestgiverCreatureId; | ||
|
||
[DBFieldName("locale", true)] | ||
public string Locale = ClientLocale.PacketLocaleString; | ||
|
||
[DBFieldName("Text")] | ||
public string Text; | ||
|
||
[DBFieldName("OrderIndex")] | ||
public int? OrderIndex; | ||
|
||
[DBFieldName("VerifiedBuild")] | ||
public int? VerifiedBuild = ClientVersion.BuildInt; | ||
|
||
public QuestTextConditional(QuestTextConditional questTextConditional) | ||
{ | ||
QuestId = questTextConditional.QuestId; | ||
PlayerConditionId = questTextConditional.PlayerConditionId; | ||
QuestgiverCreatureId = questTextConditional.QuestgiverCreatureId; | ||
Locale = ClientLocale.PacketLocaleString; | ||
Text = questTextConditional.Text; | ||
OrderIndex = questTextConditional.OrderIndex; | ||
VerifiedBuild = ClientVersion.BuildInt; | ||
} | ||
} | ||
|
||
[DBTableName("quest_description_conditional", TargetedDatabaseFlag.SinceDragonflight)] | ||
public sealed record QuestDescriptionConditional : QuestTextConditional | ||
{ | ||
public QuestDescriptionConditional() { } | ||
public QuestDescriptionConditional(QuestTextConditional questTextConditional) : base(questTextConditional) { } | ||
} | ||
|
||
[DBTableName("quest_completion_log_conditional", TargetedDatabaseFlag.SinceDragonflight)] | ||
public sealed record QuestCompletionLogConditional : QuestTextConditional | ||
{ | ||
public QuestCompletionLogConditional() { } | ||
public QuestCompletionLogConditional(QuestTextConditional questTextConditional) : base(questTextConditional) { } | ||
} | ||
|
||
[DBTableName("quest_offer_reward_conditional", TargetedDatabaseFlag.SinceDragonflight)] | ||
public sealed record QuestOfferRewardConditional : QuestTextConditional | ||
{ | ||
public QuestOfferRewardConditional() { } | ||
public QuestOfferRewardConditional(QuestTextConditional questTextConditional) : base(questTextConditional) { } | ||
} | ||
|
||
[DBTableName("quest_request_items_conditional", TargetedDatabaseFlag.SinceDragonflight)] | ||
public sealed record QuestRequestItemsConditional : QuestTextConditional | ||
{ | ||
public QuestRequestItemsConditional() { } | ||
public QuestRequestItemsConditional(QuestTextConditional questTextConditional) : base(questTextConditional) { } | ||
} | ||
} |
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
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