mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Return IReadOnlyList instead of ReadOnlySpan
This commit is contained in:
parent
bcf651b5c1
commit
2cf869872d
2 changed files with 7 additions and 3 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using Dalamud.Data;
|
using Dalamud.Data;
|
||||||
using Dalamud.IoC;
|
using Dalamud.IoC;
|
||||||
using Dalamud.IoC.Internal;
|
using Dalamud.IoC.Internal;
|
||||||
|
|
@ -118,7 +120,7 @@ internal unsafe class PlayerState : IServiceType, IPlayerState
|
||||||
public RowRef<Aetheryte> HomeAetheryte => this.IsLoaded ? LuminaUtils.CreateRef<Aetheryte>(CSPlayerState.Instance()->HomeAetheryteId) : default;
|
public RowRef<Aetheryte> HomeAetheryte => this.IsLoaded ? LuminaUtils.CreateRef<Aetheryte>(CSPlayerState.Instance()->HomeAetheryteId) : default;
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public ReadOnlySpan<RowRef<Aetheryte>> FavoriteAetherytes
|
public IReadOnlyList<RowRef<Aetheryte>> FavoriteAetherytes
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using Dalamud.Game.PlayerState;
|
using Dalamud.Game.PlayerState;
|
||||||
|
|
||||||
using Lumina.Excel;
|
using Lumina.Excel;
|
||||||
|
|
@ -147,9 +149,9 @@ public interface IPlayerState
|
||||||
RowRef<Aetheryte> HomeAetheryte { get; }
|
RowRef<Aetheryte> HomeAetheryte { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a span of Aetheryte rows for the local player's favourite aetherytes.
|
/// Gets an array of Aetheryte rows for the local player's favourite aetherytes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
ReadOnlySpan<RowRef<Aetheryte>> FavoriteAetherytes { get; }
|
IReadOnlyList<RowRef<Aetheryte>> FavoriteAetherytes { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the Aetheryte row for the local player's free aetheryte.
|
/// Gets the Aetheryte row for the local player's free aetheryte.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue