Return IReadOnlyList instead of ReadOnlySpan

This commit is contained in:
Haselnussbomber 2025-10-06 02:08:18 +02:00
parent bcf651b5c1
commit 2cf869872d
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1
2 changed files with 7 additions and 3 deletions

View file

@ -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
{ {

View file

@ -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.