refactoring
This commit is contained in:
parent
696fd07e86
commit
50d32abd49
20 changed files with 334 additions and 225 deletions
20
src/Poe2Trade.Inventory/IInventoryManager.cs
Normal file
20
src/Poe2Trade.Inventory/IInventoryManager.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using Poe2Trade.Core;
|
||||
|
||||
namespace Poe2Trade.Inventory;
|
||||
|
||||
public interface IInventoryManager
|
||||
{
|
||||
InventoryTracker Tracker { get; }
|
||||
bool IsAtOwnHideout { get; }
|
||||
string SellerAccount { get; }
|
||||
void SetLocation(bool atHome, string? seller = null);
|
||||
Task ScanInventory(PostAction defaultAction = PostAction.Stash);
|
||||
Task ClearToStash();
|
||||
Task<bool> EnsureAtOwnHideout();
|
||||
Task ProcessInventory();
|
||||
Task<bool> WaitForAreaTransition(int timeoutMs, Func<Task>? triggerAction = null);
|
||||
Task<(int X, int Y)?> FindAndClickNameplate(string name, int maxRetries = 3, int retryDelayMs = 1000);
|
||||
Task DepositItemsToStash(List<PlacedItem> items);
|
||||
Task<bool> SalvageItems(List<PlacedItem> items);
|
||||
(bool[,] Grid, List<PlacedItem> Items, int Free) GetInventoryState();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue