-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass re-implementation of skillmaster dialog (initial state)
- Loading branch information
1 parent
fbcdbc2
commit e29ec80
Showing
9 changed files
with
495 additions
and
783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
EndlessClient/Dialogs/Factories/SkillmasterDialogFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
using AutomaticTypeMapper; | ||
using EndlessClient.Dialogs.Services; | ||
using EOLib.Domain.Character; | ||
using EOLib.Domain.Interact.Skill; | ||
using EOLib.Graphics; | ||
using EOLib.Localization; | ||
|
||
namespace EndlessClient.Dialogs.Factories | ||
{ | ||
[AutoMappedType] | ||
public class SkillmasterDialogFactory : ISkillmasterDialogFactory | ||
{ | ||
private readonly INativeGraphicsManager _nativeGraphicsManager; | ||
private readonly IEODialogButtonService _dialogButtonService; | ||
private readonly IEODialogIconService _dialogIconService; | ||
private readonly ILocalizedStringFinder _localizedStringFinder; | ||
private readonly IEOMessageBoxFactory _messageBoxFactory; | ||
private readonly ISkillDataProvider _skillDataProvider; | ||
private readonly ICharacterInventoryProvider _characterInventoryProvider; | ||
|
||
public SkillmasterDialogFactory(INativeGraphicsManager nativeGraphicsManager, | ||
IEODialogButtonService dialogButtonService, | ||
IEODialogIconService dialogIconService, | ||
ILocalizedStringFinder localizedStringFinder, | ||
IEOMessageBoxFactory messageBoxFactory, | ||
ISkillDataProvider skillDataProvider, | ||
ICharacterInventoryProvider characterInventoryProvider) | ||
{ | ||
_nativeGraphicsManager = nativeGraphicsManager; | ||
_dialogButtonService = dialogButtonService; | ||
_dialogIconService = dialogIconService; | ||
_localizedStringFinder = localizedStringFinder; | ||
_messageBoxFactory = messageBoxFactory; | ||
_skillDataProvider = skillDataProvider; | ||
_characterInventoryProvider = characterInventoryProvider; | ||
} | ||
|
||
public SkillmasterDialog Create() | ||
{ | ||
return new SkillmasterDialog(_nativeGraphicsManager, | ||
_dialogButtonService, | ||
_dialogIconService, | ||
_localizedStringFinder, | ||
_messageBoxFactory, | ||
_skillDataProvider, | ||
_characterInventoryProvider); | ||
} | ||
} | ||
|
||
public interface ISkillmasterDialogFactory | ||
{ | ||
SkillmasterDialog Create(); | ||
} | ||
} |
Oops, something went wrong.