Beispiel #1
0
 public PclPacketHandler(IMailHttpClient mailHttpClient, IItemGenerationService itemProvider,
                         IDao <IItemInstanceDto?, Guid> itemInstanceDao)
 {
     _mailHttpClient  = mailHttpClient;
     _itemProvider    = itemProvider;
     _itemInstanceDao = itemInstanceDao;
 }
Beispiel #2
0
 public ExchangeService(IItemGenerationService itemBuilderService, IOptions <WorldConfiguration> worldConfiguration, ILogger logger, ExchangeRequestHolder requestHolder)
 {
     _itemBuilderService = itemBuilderService;
     _worldConfiguration = worldConfiguration;
     _logger             = logger;
     _requestHolder      = requestHolder;
 }
 public CBuyPacketHandler(IBazaarHttpClient bazaarHttpClient, IItemGenerationService itemProvider, ILogger logger,
                          IDao <IItemInstanceDto?, Guid> itemInstanceDao)
 {
     _bazaarHttpClient = bazaarHttpClient;
     _itemProvider     = itemProvider;
     _logger           = logger;
     _itemInstanceDao  = itemInstanceDao;
 }
Beispiel #4
0
 public CreateItemPackettHandler(ILogger logger, List <ItemDto> items, IOptions <WorldConfiguration> worldConfiguration,
                                 IItemGenerationService itemProvider)
 {
     _logger             = logger;
     _items              = items;
     _itemProvider       = itemProvider;
     _worldConfiguration = worldConfiguration;
 }
Beispiel #5
0
 public CScalcPacketHandler(IOptions <WorldConfiguration> worldConfiguration, IBazaarHttpClient bazaarHttpClient,
                            IItemGenerationService itemProvider, ILogger logger, IDao <IItemInstanceDto?, Guid> itemInstanceDao)
 {
     _worldConfiguration = worldConfiguration;
     _bazaarHttpClient   = bazaarHttpClient;
     _itemProvider       = itemProvider;
     _logger             = logger;
     _itemInstanceDao    = itemInstanceDao;
 }
Beispiel #6
0
 public WarehouseHttpClient(IHttpClientFactory httpClientFactory, Channel channel,
                            IChannelHttpClient channelHttpClient, IItemGenerationService itemProvider,
                            IDao <IItemInstanceDto?, Guid> itemInstanceDao)
     : base(httpClientFactory, channel, channelHttpClient)
 {
     ApiUrl            = "api/warehouse";
     RequireConnection = true;
     _itemProvider     = itemProvider;
     _itemInstanceDao  = itemInstanceDao;
 }
Beispiel #7
0
 public CharNewPacketHandler(IDao <CharacterDto, long> characterDao, IDao <MinilandDto, Guid> minilandDao, IItemGenerationService itemBuilderService,
                             IDao <QuicklistEntryDto, Guid> quicklistEntryDao, IDao <IItemInstanceDto?, Guid> itemInstanceDao, IDao <InventoryItemInstanceDto, Guid> inventoryItemInstanceDao, IHpService hpService, IMpService mpService, IOptions <WorldConfiguration> worldConfiguration)
 {
     _characterDao             = characterDao;
     _minilandDao              = minilandDao;
     _itemBuilderService       = itemBuilderService;
     _quicklistEntryDao        = quicklistEntryDao;
     _inventoryItemInstanceDao = inventoryItemInstanceDao;
     _itemInstanceDao          = itemInstanceDao;
     _hpService          = hpService;
     _mpService          = mpService;
     _worldConfiguration = worldConfiguration.Value;
 }
Beispiel #8
0
 public MailService(IDao <MailDto, long> mailDao, IDao <IItemInstanceDto?, Guid> itemInstanceDao,
                    IConnectedAccountHttpClient connectedAccountHttpClient,
                    List <ItemDto> items, IItemGenerationService itemProvider, IIncommingMailHttpClient incommingMailHttpClient,
                    ParcelHolder parcelHolder,
                    IDao <CharacterDto, long> characterDto)
 {
     _mailDao                    = mailDao;
     _itemInstanceDao            = itemInstanceDao;
     _connectedAccountHttpClient = connectedAccountHttpClient;
     _items                   = items;
     _itemProvider            = itemProvider;
     _incommingMailHttpClient = incommingMailHttpClient;
     _parcelHolder            = parcelHolder;
     _characterDto            = characterDto;
 }
 public SelectPacketHandler(IDao <CharacterDto, long> characterDao, ILogger logger,
                            IItemGenerationService itemProvider,
                            IMapInstanceAccessorService mapInstanceAccessorService, IDao <IItemInstanceDto?, Guid> itemInstanceDao,
                            IDao <InventoryItemInstanceDto, Guid> inventoryItemInstanceDao, IDao <StaticBonusDto, long> staticBonusDao,
                            IDao <QuicklistEntryDto, Guid> quickListEntriesDao, IDao <TitleDto, Guid> titleDao, IDao <CharacterQuestDto, Guid> characterQuestDao,
                            IDao <ScriptDto, Guid> scriptDao, List <QuestDto> quests, List <QuestObjectiveDto> questObjectives)
 {
     _characterDao = characterDao;
     _logger       = logger;
     _mapInstanceAccessorService = mapInstanceAccessorService;
     _itemProvider             = itemProvider;
     _itemInstanceDao          = itemInstanceDao;
     _inventoryItemInstanceDao = inventoryItemInstanceDao;
     _staticBonusDao           = staticBonusDao;
     _quickListEntriesDao      = quickListEntriesDao;
     _titleDao          = titleDao;
     _characterQuestDao = characterQuestDao;
     _scriptDao         = scriptDao;
     _quests            = quests;
     _questObjectives   = questObjectives;
 }
Beispiel #10
0
 public Character(IInventoryService inventory, IExchangeService exchangeService, IItemGenerationService itemProvider,
                  IDao <CharacterDto, long> characterDao, IDao <IItemInstanceDto?, Guid> itemInstanceDao,
                  IDao <InventoryItemInstanceDto, Guid> inventoryItemInstanceDao, IDao <AccountDto, long> accountDao,
                  ILogger logger, IDao <StaticBonusDto, long> staticBonusDao,
                  IDao <QuicklistEntryDto, Guid> quicklistEntriesDao, IDao <MinilandDto, Guid> minilandDao,
                  IMinilandService minilandProvider, IDao <TitleDto, Guid> titleDao, IDao <CharacterQuestDto, Guid> characterQuestDao,
                  IHpService hpService, IMpService mpService, IExperienceService experienceService, IJobExperienceService jobExperienceService, IHeroExperienceService heroExperienceService, ISpeedService speedService,
                  IReputationService reputationService, IDignityService dignityService, IOptions <WorldConfiguration> worldConfiguration)
 {
     InventoryService         = inventory;
     ExchangeProvider         = exchangeService;
     ItemProvider             = itemProvider;
     GroupRequestCharacterIds = new ConcurrentDictionary <long, long>();
     Group                     = new Group(GroupType.Group);
     _characterDao             = characterDao;
     _itemInstanceDao          = itemInstanceDao;
     _accountDao               = accountDao;
     _logger                   = logger;
     _inventoryItemInstanceDao = inventoryItemInstanceDao;
     _staticBonusDao           = staticBonusDao;
     _titleDao                 = titleDao;
     QuicklistEntries          = new List <QuicklistEntryDto>();
     _quicklistEntriesDao      = quicklistEntriesDao;
     _characterQuestsDao       = characterQuestDao;
     _minilandDao              = minilandDao;
     _minilandProvider         = minilandProvider;
     _hpService                = hpService;
     _mpService                = mpService;
     _experienceService        = experienceService;
     _jobExperienceService     = jobExperienceService;
     _heroExperienceService    = heroExperienceService;
     _speedService             = speedService;
     _reputationService        = reputationService;
     _dignityService           = dignityService;
     _worldConfiguration       = worldConfiguration;
 }
Beispiel #11
0
 public MgPacketHandler(IMinilandService minilandProvider, IItemGenerationService itemProvider)
 {
     _minilandProvider = minilandProvider;
     _itemProvider     = itemProvider;
 }