1
0
Fork 0
forked from aly/qstbak
qstbak/Questionable/Questionable.Data/DutyInfo.cs
2026-01-19 08:31:23 +10:00

22 lines
666 B
C#

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;
}
}
}