forked from aly/qstbak
muffin v7.4.10
This commit is contained in:
parent
2df81c5d15
commit
b8dd142c23
47 changed files with 3604 additions and 1058 deletions
22
Questionable/Questionable.Data/DutyInfo.cs
Normal file
22
Questionable/Questionable.Data/DutyInfo.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System.Collections.Immutable;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
||||
using Questionable.Model.Questing;
|
||||
|
||||
namespace Questionable.Data;
|
||||
|
||||
public sealed record DutyInfo(uint ContentFinderConditionId, uint ContentId, string Name, uint ContentTypeId, string ContentTypeName, ushort Level, ushort ItemLevel, ImmutableList<QuestId> UnlockQuests, bool IsHighEndDuty, EDutyCategory DutyCategory)
|
||||
{
|
||||
public bool IsUnlocked => UIState.IsInstanceContentUnlocked(ContentId);
|
||||
|
||||
public bool? IsCompleted
|
||||
{
|
||||
get
|
||||
{
|
||||
if (DutyCategory != EDutyCategory.DeepDungeon)
|
||||
{
|
||||
return UIState.IsInstanceContentCompleted((ushort)ContentId);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue