Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc51324
commit ca9599e
Showing
10 changed files
with
283 additions
and
272 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using AutomaticTypeMapper; | ||
using EndlessClient.Content; | ||
using EndlessClient.Dialogs.Services; | ||
using EOLib.Domain.Interact.Quest; | ||
using EOLib.Domain.NPC; | ||
using EOLib.Graphics; | ||
using EOLib.IO.Repositories; | ||
|
||
namespace EndlessClient.Dialogs.Factories | ||
{ | ||
[AutoMappedType] | ||
public class QuestDialogFactory : IQuestDialogFactory | ||
{ | ||
private readonly INativeGraphicsManager _nativeGraphicsManager; | ||
private readonly IQuestActions _questActions; | ||
private readonly IEODialogButtonService _dialogButtonService; | ||
private readonly IQuestDataProvider _questDataProvider; | ||
private readonly IENFFileProvider _enfFileProvider; | ||
private readonly IContentProvider _contentProvider; | ||
|
||
public QuestDialogFactory(INativeGraphicsManager nativeGraphicsManager, | ||
IQuestActions questActions, | ||
IEODialogButtonService dialogButtonService, | ||
IQuestDataProvider questDataProvider, | ||
IENFFileProvider enfFileProvider, | ||
IContentProvider contentProvider) | ||
{ | ||
_nativeGraphicsManager = nativeGraphicsManager; | ||
_questActions = questActions; | ||
_dialogButtonService = dialogButtonService; | ||
_questDataProvider = questDataProvider; | ||
_enfFileProvider = enfFileProvider; | ||
_contentProvider = contentProvider; | ||
} | ||
|
||
public QuestDialog Create(INPC npc) | ||
{ | ||
return new QuestDialog(_nativeGraphicsManager, | ||
_questActions, | ||
_dialogButtonService, | ||
_questDataProvider, | ||
_enfFileProvider, | ||
_contentProvider, | ||
npc); | ||
} | ||
} | ||
|
||
public interface IQuestDialogFactory | ||
{ | ||
QuestDialog Create(INPC npc); | ||
} | ||
} |
Oops, something went wrong.