forked from aly/qstbak
29 lines
693 B
C#
29 lines
693 B
C#
using System.Runtime.CompilerServices;
|
|
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
|
|
|
namespace Questionable.Model;
|
|
|
|
public sealed record UnlockLinkReward : ItemReward
|
|
{
|
|
public uint UnlockLinkId { get; init; }
|
|
|
|
public override EItemRewardType Type => EItemRewardType.UnlockLink;
|
|
|
|
public UnlockLinkReward(ItemRewardDetails Item, uint UnlockLinkId)
|
|
{
|
|
this.UnlockLinkId = UnlockLinkId;
|
|
base._002Ector(Item);
|
|
}
|
|
|
|
public unsafe override bool IsUnlocked()
|
|
{
|
|
return UIState.Instance()->IsUnlockLinkUnlocked(UnlockLinkId);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public void Deconstruct(out ItemRewardDetails Item, out uint UnlockLinkId)
|
|
{
|
|
Item = base.Item;
|
|
UnlockLinkId = this.UnlockLinkId;
|
|
}
|
|
}
|