mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +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/>
|
/// <inheritdoc/>
|
||||||
public event IGameInventory.InventoryChangedDelegate<InventoryItemMergedArgs>? ItemMergedExplicit;
|
public event IGameInventory.InventoryChangedDelegate<InventoryItemMergedArgs>? ItemMergedExplicit;
|
||||||
|
|
||||||
|
/// <inheritdoc/>
|
||||||
|
public ReadOnlySpan<GameInventoryItem> GetInventoryItems(GameInventoryType type) => GameInventoryItem.GetReadOnlySpanOfInventory(type);
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
void IInternalDisposableService.DisposeService()
|
void IInternalDisposableService.DisposeService()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -103,4 +103,11 @@ public interface IGameInventory
|
||||||
|
|
||||||
/// <inheritdoc cref="ItemMerged"/>
|
/// <inheritdoc cref="ItemMerged"/>
|
||||||
public event InventoryChangedDelegate<InventoryItemMergedArgs> ItemMergedExplicit;
|
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