mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Add IGameInventory.GetInventoryItems (#2008)
This commit is contained in:
parent
620a802755
commit
2a9ee760c6
2 changed files with 10 additions and 0 deletions
|
|
@ -403,6 +403,9 @@ internal class GameInventoryPluginScoped : IInternalDisposableService, IGameInve
|
|||
/// <inheritdoc/>
|
||||
public event IGameInventory.InventoryChangedDelegate<InventoryItemMergedArgs>? ItemMergedExplicit;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public ReadOnlySpan<GameInventoryItem> GetInventoryItems(GameInventoryType type) => GameInventoryItem.GetReadOnlySpanOfInventory(type);
|
||||
|
||||
/// <inheritdoc/>
|
||||
void IInternalDisposableService.DisposeService()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -103,4 +103,11 @@ public interface IGameInventory
|
|||
|
||||
/// <inheritdoc cref="ItemMerged"/>
|
||||
public event InventoryChangedDelegate<InventoryItemMergedArgs> ItemMergedExplicit;
|
||||
|
||||
/// <summary>
|
||||
/// Gets all item slots of the specified inventory type.
|
||||
/// </summary>
|
||||
/// <param name="type">The type of inventory to get the items for.</param>
|
||||
/// <returns>A read-only span of all items in the specified inventory type.</returns>
|
||||
public ReadOnlySpan<GameInventoryItem> GetInventoryItems(GameInventoryType type);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue