mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
Convert AetheryteEntry to readonly struct
This commit is contained in:
parent
dd70c5b8ee
commit
520e3ea028
1 changed files with 13 additions and 23 deletions
|
|
@ -63,47 +63,37 @@ public interface IAetheryteEntry
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class representing an aetheryte entry available to the game.
|
/// This struct represents an aetheryte entry available to the game.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal sealed class AetheryteEntry : IAetheryteEntry
|
/// <param name="data">Data read from the Aetheryte List.</param>
|
||||||
|
internal readonly struct AetheryteEntry(TeleportInfo data) : IAetheryteEntry
|
||||||
{
|
{
|
||||||
private readonly TeleportInfo data;
|
/// <inheritdoc />
|
||||||
|
public uint AetheryteId => data.AetheryteId;
|
||||||
/// <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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public uint AetheryteId => this.data.AetheryteId;
|
public uint TerritoryId => data.TerritoryId;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public uint TerritoryId => this.data.TerritoryId;
|
public byte SubIndex => data.SubIndex;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public byte SubIndex => this.data.SubIndex;
|
public byte Ward => data.Ward;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public byte Ward => this.data.Ward;
|
public byte Plot => data.Plot;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public byte Plot => this.data.Plot;
|
public uint GilCost => data.GilCost;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public uint GilCost => this.data.GilCost;
|
public bool IsFavourite => data.IsFavourite;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool IsFavourite => this.data.IsFavourite;
|
public bool IsSharedHouse => data.IsSharedHouse;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool IsSharedHouse => this.data.IsSharedHouse;
|
public bool IsApartment => data.IsApartment;
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public bool IsApartment => this.data.IsApartment;
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public RowRef<Lumina.Excel.Sheets.Aetheryte> AetheryteData => LuminaUtils.CreateRef<Lumina.Excel.Sheets.Aetheryte>(this.AetheryteId);
|
public RowRef<Lumina.Excel.Sheets.Aetheryte> AetheryteData => LuminaUtils.CreateRef<Lumina.Excel.Sheets.Aetheryte>(this.AetheryteId);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue