mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
100 lines
2.6 KiB
C#
100 lines
2.6 KiB
C#
using Dalamud.Data;
|
|
|
|
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
|
|
|
using Lumina.Excel;
|
|
|
|
namespace Dalamud.Game.ClientState.Aetherytes;
|
|
|
|
/// <summary>
|
|
/// Interface representing an aetheryte entry available to the game.
|
|
/// </summary>
|
|
public interface IAetheryteEntry
|
|
{
|
|
/// <summary>
|
|
/// Gets the Aetheryte ID.
|
|
/// </summary>
|
|
uint AetheryteId { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the Territory ID.
|
|
/// </summary>
|
|
uint TerritoryId { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the SubIndex used when there can be multiple Aetherytes with the same ID (Private/Shared Estates etc.).
|
|
/// </summary>
|
|
byte SubIndex { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the Ward. Zero if not a Shared Estate.
|
|
/// </summary>
|
|
byte Ward { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the Plot. Zero if not a Shared Estate.
|
|
/// </summary>
|
|
byte Plot { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the Cost in Gil to Teleport to this location.
|
|
/// </summary>
|
|
uint GilCost { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether the LocalPlayer has set this Aetheryte as Favorite or not.
|
|
/// </summary>
|
|
bool IsFavourite { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether this Aetheryte is a Shared Estate or not.
|
|
/// </summary>
|
|
bool IsSharedHouse { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether this Aetheryte is an Apartment or not.
|
|
/// </summary>
|
|
bool IsApartment { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the Aetheryte data related to this aetheryte.
|
|
/// </summary>
|
|
RowRef<Lumina.Excel.Sheets.Aetheryte> AetheryteData { get; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// This struct represents an aetheryte entry available to the game.
|
|
/// </summary>
|
|
/// <param name="data">Data read from the Aetheryte List.</param>
|
|
internal readonly struct AetheryteEntry(TeleportInfo data) : IAetheryteEntry
|
|
{
|
|
/// <inheritdoc />
|
|
public uint AetheryteId => data.AetheryteId;
|
|
|
|
/// <inheritdoc />
|
|
public uint TerritoryId => data.TerritoryId;
|
|
|
|
/// <inheritdoc />
|
|
public byte SubIndex => data.SubIndex;
|
|
|
|
/// <inheritdoc />
|
|
public byte Ward => data.Ward;
|
|
|
|
/// <inheritdoc />
|
|
public byte Plot => data.Plot;
|
|
|
|
/// <inheritdoc />
|
|
public uint GilCost => data.GilCost;
|
|
|
|
/// <inheritdoc />
|
|
public bool IsFavourite => data.IsFavourite;
|
|
|
|
/// <inheritdoc />
|
|
public bool IsSharedHouse => data.IsSharedHouse;
|
|
|
|
/// <inheritdoc />
|
|
public bool IsApartment => data.IsApartment;
|
|
|
|
/// <inheritdoc />
|
|
public RowRef<Lumina.Excel.Sheets.Aetheryte> AetheryteData => LuminaUtils.CreateRef<Lumina.Excel.Sheets.Aetheryte>(this.AetheryteId);
|
|
}
|