mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
Interface support for plugin DI (#1235)
* feat: interface support for plugin DI * attribute to indicate resolvability should be on the service instead of the interface
This commit is contained in:
parent
7eb05ddae2
commit
284001ce6b
4 changed files with 69 additions and 11 deletions
23
Dalamud/Plugin/Services/IAetheryteList.cs
Normal file
23
Dalamud/Plugin/Services/IAetheryteList.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
using Dalamud.Game.ClientState.Aetherytes;
|
||||
|
||||
namespace Dalamud.Plugin.Services;
|
||||
|
||||
/// <summary>
|
||||
/// This collection represents the list of available Aetherytes in the Teleport window.
|
||||
/// </summary>
|
||||
public interface IAetheryteList : IReadOnlyCollection<AetheryteEntry>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the amount of Aetherytes the local player has unlocked.
|
||||
/// </summary>
|
||||
public int Length { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a Aetheryte Entry at the specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Index.</param>
|
||||
/// <returns>A <see cref="AetheryteEntry"/> at the specified index.</returns>
|
||||
public AetheryteEntry? this[int index] { get; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue