mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +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.IoC;
|
||||
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;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public ReadOnlySpan<RowRef<Aetheryte>> FavoriteAetherytes
|
||||
public IReadOnlyList<RowRef<Aetheryte>> FavoriteAetherytes
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
using Dalamud.Game.PlayerState;
|
||||
|
||||
using Lumina.Excel;
|
||||
|
|
@ -147,9 +149,9 @@ public interface IPlayerState
|
|||
RowRef<Aetheryte> HomeAetheryte { get; }
|
||||
|
||||
/// <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>
|
||||
ReadOnlySpan<RowRef<Aetheryte>> FavoriteAetherytes { get; }
|
||||
IReadOnlyList<RowRef<Aetheryte>> FavoriteAetherytes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Aetheryte row for the local player's free aetheryte.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue