Exemple #1
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;
 }
Exemple #2
0
 public Character(IInventoryService inventory, IExchangeProvider exchangeProvider, IItemProvider 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,
                  IMinilandProvider 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         = exchangeProvider;
     ItemProvider             = itemProvider;
     GroupRequestCharacterIds = new ConcurrentDictionary <long, long>();
     Group                     = new Group(GroupType.Group);
     Requests                  = new Subject <RequestData>();
     _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;
 }