-
Notifications
You must be signed in to change notification settings - Fork 16
/
ShopDialogFactory.cs
69 lines (65 loc) · 2.97 KB
/
ShopDialogFactory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using AutomaticTypeMapper;
using EndlessClient.Dialogs.Services;
using EndlessClient.GameExecution;
using EndlessClient.HUD.Inventory;
using EOLib.Domain.Character;
using EOLib.Domain.Interact.Shop;
using EOLib.Graphics;
using EOLib.IO.Repositories;
using EOLib.Localization;
namespace EndlessClient.Dialogs.Factories
{
[AutoMappedType]
public class ShopDialogFactory : IShopDialogFactory
{
private readonly INativeGraphicsManager _nativeGraphicsManager;
private readonly IEOMessageBoxFactory _messageBoxFactory;
private readonly IItemTransferDialogFactory _itemTransferDialogFactory;
private readonly IEODialogButtonService _dialogButtonService;
private readonly IEODialogIconService _dialogIconService;
private readonly ILocalizedStringFinder _localizedStringFinder;
private readonly IShopDataProvider _shopDataProvider;
private readonly ICharacterInventoryProvider _characterInventoryProvider;
private readonly IEIFFileProvider _eifFileProvider;
private readonly IInventorySpaceValidator _inventorySpaceValidator;
public ShopDialogFactory(INativeGraphicsManager nativeGraphicsManager,
IEOMessageBoxFactory messageBoxFactory,
IItemTransferDialogFactory itemTransferDialogFactory,
IEODialogButtonService dialogButtonService,
IEODialogIconService dialogIconService,
ILocalizedStringFinder localizedStringFinder,
IShopDataProvider shopDataProvider,
ICharacterInventoryProvider characterInventoryProvider,
IEIFFileProvider eifFileProvider,
IInventorySpaceValidator inventorySpaceValidator)
{
_nativeGraphicsManager = nativeGraphicsManager;
_messageBoxFactory = messageBoxFactory;
_itemTransferDialogFactory = itemTransferDialogFactory;
_dialogButtonService = dialogButtonService;
_dialogIconService = dialogIconService;
_localizedStringFinder = localizedStringFinder;
_shopDataProvider = shopDataProvider;
_characterInventoryProvider = characterInventoryProvider;
_eifFileProvider = eifFileProvider;
_inventorySpaceValidator = inventorySpaceValidator;
}
public ShopDialog Create()
{
return new ShopDialog(_nativeGraphicsManager,
_messageBoxFactory,
_itemTransferDialogFactory,
_dialogButtonService,
_dialogIconService,
_localizedStringFinder,
_shopDataProvider,
_characterInventoryProvider,
_eifFileProvider,
_inventorySpaceValidator);
}
}
public interface IShopDialogFactory
{
ShopDialog Create();
}
}