mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
Update AetheryteEntry.cs
This commit is contained in:
parent
9155f68753
commit
6158b488a9
1 changed files with 39 additions and 2 deletions
|
|
@ -3,33 +3,70 @@ using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
||||||
|
|
||||||
namespace Dalamud.Game.ClientState.Aetherytes
|
namespace Dalamud.Game.ClientState.Aetherytes
|
||||||
{
|
{
|
||||||
public class AetheryteEntry
|
/// <summary>
|
||||||
|
/// This class represents an entry in the Aetheryte list.
|
||||||
|
/// </summary>
|
||||||
|
public sealed class AetheryteEntry
|
||||||
{
|
{
|
||||||
private readonly TeleportInfo data;
|
private readonly TeleportInfo data;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="AetheryteEntry"/> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="data">Data read from the Aetheryte List.</param>
|
||||||
internal AetheryteEntry(TeleportInfo data)
|
internal AetheryteEntry(TeleportInfo data)
|
||||||
{
|
{
|
||||||
this.data = data;
|
this.data = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///Gets the Aetheryte ID.
|
||||||
|
/// </summary>
|
||||||
public uint AetheryteId => this.data.AetheryteId;
|
public uint AetheryteId => this.data.AetheryteId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///Gets the Territory ID.
|
||||||
|
/// </summary>
|
||||||
public uint TerritoryId => this.data.TerritoryId;
|
public uint TerritoryId => this.data.TerritoryId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///Gets the SubIndex used when there can be multiple Aetherytes with the same ID (Private/Shared Estates etc.).
|
||||||
|
/// </summary>
|
||||||
public byte SubIndex => this.data.SubIndex;
|
public byte SubIndex => this.data.SubIndex;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///Gets the Ward. Zero if not a Shared Estate.
|
||||||
|
/// </summary>
|
||||||
public byte Ward => this.data.Ward;
|
public byte Ward => this.data.Ward;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///Gets the Plot. Zero if not a Shared Estate.
|
||||||
|
/// </summary>
|
||||||
public byte Plot => this.data.Plot;
|
public byte Plot => this.data.Plot;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///Gets the Cost in Gil to Teleport to this location.
|
||||||
|
/// </summary>
|
||||||
public uint GilCost => this.data.GilCost;
|
public uint GilCost => this.data.GilCost;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///Gets if the LocalPlayer has set this Aetheryte as Favorite.
|
||||||
|
/// </summary>
|
||||||
public bool IsFavourite => this.data.IsFavourite != 0;
|
public bool IsFavourite => this.data.IsFavourite != 0;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///Gets if this Aetheryte is a Shared Estate.
|
||||||
|
/// </summary>
|
||||||
public bool IsSharedHouse => this.data.IsSharedHouse;
|
public bool IsSharedHouse => this.data.IsSharedHouse;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///Gets if this Aetheryte is an Appartment.
|
||||||
|
/// </summary>
|
||||||
public bool IsAppartment => this.data.IsAppartment;
|
public bool IsAppartment => this.data.IsAppartment;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the Aetheryte data related to this aetheryte.
|
||||||
|
/// </summary>
|
||||||
public ExcelResolver<Lumina.Excel.GeneratedSheets.Aetheryte> AetheryteData => new(this.AetheryteId);
|
public ExcelResolver<Lumina.Excel.GeneratedSheets.Aetheryte> AetheryteData => new(this.AetheryteId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue