29 lines
637 B
C#
29 lines
637 B
C#
using System.Runtime.CompilerServices;
|
|
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
|
|
|
namespace Questionable.Model;
|
|
|
|
public sealed record MountReward : ItemReward
|
|
{
|
|
public uint MountId { get; init; }
|
|
|
|
public override EItemRewardType Type => EItemRewardType.Mount;
|
|
|
|
public MountReward(ItemRewardDetails Item, uint MountId)
|
|
{
|
|
this.MountId = MountId;
|
|
base._002Ector(Item);
|
|
}
|
|
|
|
public unsafe override bool IsUnlocked()
|
|
{
|
|
return PlayerState.Instance()->IsMountUnlocked(MountId);
|
|
}
|
|
|
|
[CompilerGenerated]
|
|
public void Deconstruct(out ItemRewardDetails Item, out uint MountId)
|
|
{
|
|
Item = base.Item;
|
|
MountId = this.MountId;
|
|
}
|
|
}
|