mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-23 00:07:53 +01:00
Remove some static dependencies.
This commit is contained in:
parent
4294b18bcb
commit
c527d19117
5 changed files with 30 additions and 35 deletions
|
|
@ -29,16 +29,17 @@ public class ItemSwapTab : IDisposable, ITab
|
|||
private readonly ItemService _itemService;
|
||||
private readonly CollectionManager _collectionManager;
|
||||
private readonly ModManager _modManager;
|
||||
private readonly Configuration _config;
|
||||
private readonly Configuration _config;
|
||||
|
||||
public ItemSwapTab(CommunicatorService communicator, ItemService itemService, CollectionManager collectionManager,
|
||||
ModManager modManager, Configuration config)
|
||||
ModManager modManager, Configuration config, IdentifierService identifier)
|
||||
{
|
||||
_communicator = communicator;
|
||||
_itemService = itemService;
|
||||
_collectionManager = collectionManager;
|
||||
_modManager = modManager;
|
||||
_config = config;
|
||||
_swapData = new ItemSwapContainer(identifier.AwaitedService);
|
||||
|
||||
_selectors = new Dictionary<SwapType, (ItemSelector Source, ItemSelector Target, string TextFrom, string TextTo)>
|
||||
{
|
||||
|
|
@ -149,7 +150,7 @@ public class ItemSwapTab : IDisposable, ITab
|
|||
private ItemSelector? _weaponSource;
|
||||
private ItemSelector? _weaponTarget;
|
||||
private readonly WeaponSelector _slotSelector = new();
|
||||
private readonly ItemSwapContainer _swapData = new();
|
||||
private readonly ItemSwapContainer _swapData;
|
||||
|
||||
private Mod? _mod;
|
||||
private ModSettings? _modSettings;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue