mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-16 05:34:16 +01:00
chore: convert Dalamud to file-scoped namespaces
This commit is contained in:
parent
b093323acc
commit
987ff8dc8f
368 changed files with 55081 additions and 55450 deletions
|
|
@ -1,72 +1,71 @@
|
|||
using Dalamud.Game.ClientState.Resolvers;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
||||
|
||||
namespace Dalamud.Game.ClientState.Aetherytes
|
||||
namespace Dalamud.Game.ClientState.Aetherytes;
|
||||
|
||||
/// <summary>
|
||||
/// This class represents an entry in the Aetheryte list.
|
||||
/// </summary>
|
||||
public sealed class AetheryteEntry
|
||||
{
|
||||
private readonly TeleportInfo data;
|
||||
|
||||
/// <summary>
|
||||
/// This class represents an entry in the Aetheryte list.
|
||||
/// Initializes a new instance of the <see cref="AetheryteEntry"/> class.
|
||||
/// </summary>
|
||||
public sealed class AetheryteEntry
|
||||
/// <param name="data">Data read from the Aetheryte List.</param>
|
||||
internal AetheryteEntry(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)
|
||||
{
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Aetheryte ID.
|
||||
/// </summary>
|
||||
public uint AetheryteId => this.data.AetheryteId;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Territory ID.
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Ward. Zero if not a Shared Estate.
|
||||
/// </summary>
|
||||
public byte Ward => this.data.Ward;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Plot. Zero if not a Shared Estate.
|
||||
/// </summary>
|
||||
public byte Plot => this.data.Plot;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Cost in Gil to Teleport to this location.
|
||||
/// </summary>
|
||||
public uint GilCost => this.data.GilCost;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the LocalPlayer has set this Aetheryte as Favorite or not.
|
||||
/// </summary>
|
||||
public bool IsFavourite => this.data.IsFavourite != 0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this Aetheryte is a Shared Estate or not.
|
||||
/// </summary>
|
||||
public bool IsSharedHouse => this.data.IsSharedHouse;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this Aetheryte is an Appartment or not.
|
||||
/// </summary>
|
||||
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);
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Aetheryte ID.
|
||||
/// </summary>
|
||||
public uint AetheryteId => this.data.AetheryteId;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Territory ID.
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Ward. Zero if not a Shared Estate.
|
||||
/// </summary>
|
||||
public byte Ward => this.data.Ward;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Plot. Zero if not a Shared Estate.
|
||||
/// </summary>
|
||||
public byte Plot => this.data.Plot;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Cost in Gil to Teleport to this location.
|
||||
/// </summary>
|
||||
public uint GilCost => this.data.GilCost;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the LocalPlayer has set this Aetheryte as Favorite or not.
|
||||
/// </summary>
|
||||
public bool IsFavourite => this.data.IsFavourite != 0;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this Aetheryte is a Shared Estate or not.
|
||||
/// </summary>
|
||||
public bool IsSharedHouse => this.data.IsSharedHouse;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether this Aetheryte is an Appartment or not.
|
||||
/// </summary>
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue