public WariersDatson(INWScript script, IDialogService dialog, IQuestService quest) : base(script, dialog) { _quest = quest; }
/// <summary> /// Конструктор /// </summary> /// <param name="questService"></param> public QuestsController(IQuestService questService, IMapper mapper, UserManager <User> userManager, IProviderService providerService) { _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _questService = questService ?? throw new ArgumentNullException(nameof(questService)); _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); _providerService = providerService ?? throw new ArgumentNullException(nameof(providerService)); }
public OnModuleEnter( INWScript script, IPlayerService player, ISkillService skill, IQuestService quest, IActivityLoggingService activityLogging, IMapPinService mapPin, IObjectVisibilityService objectVisibility, ICustomEffectService customEffect, IChatTextService chatText, IPlayerValidationService playerValidation, IDataService data, IRaceService race, IPlayerMigrationService migration) { _ = script; _player = player; _skill = skill; _quest = quest; _activityLogging = activityLogging; _mapPin = mapPin; _objectVisibility = objectVisibility; _customEffect = customEffect; _chatText = chatText; _playerValidation = playerValidation; _data = data; _race = race; _migration = migration; }
public QuestController(IQuestService questService, ISanitizerService sanitizerService, IImageService imageService, IVaucherService voucherService) { this.voucherService = voucherService; this.questService = questService; this.sanitizerService = sanitizerService; this.imageService = imageService; }
public CharacterServiceTests() { var services = new ServiceCollection(); services.AddDbContext <ApplicationDbContext>(options => options.UseInMemoryDatabase(Guid.NewGuid().ToString()).UseLazyLoadingProxies()); services.AddScoped <ICharacterService, CharacterService>(); services.AddScoped <IInventoryItemService, InventoryItemService>(); services.AddScoped <IInventoryService, InventoryService>(); services.AddScoped <IItemService, ItemService>(); services.AddScoped <ILocationService, LocationService>(); services.AddScoped <IQuestService, QuestService>(); services.AddScoped <IEnemyService, EnemyService>(); services.AddScoped <IStatsService, StatsService>(); this.provider = services.BuildServiceProvider(); this.context = provider.GetService <ApplicationDbContext>(); this.characterService = provider.GetService <ICharacterService>(); this.inventoryItemService = provider.GetService <IInventoryItemService>(); this.inventoryService = provider.GetService <IInventoryService>(); this.itemService = provider.GetService <IItemService>(); this.locationService = provider.GetService <ILocationService>(); this.questService = provider.GetService <IQuestService>(); this.enemyService = provider.GetService <IEnemyService>(); this.statsService = provider.GetService <IStatsService>(); }
public CharacterService(ApplicationDbContext context, IInventoryItemService inventoryItemService, IItemService itemService, IQuestService questService) { this.context = context; this.inventoryItemService = inventoryItemService; this.itemService = itemService; this.questService = questService; }
public void Configure(NetworkServicesConfig config) { if (clubPenguinClient != null) { clubPenguinClient.Destroy(); } clubPenguinClient = new ClubPenguinClient(monoBehaviour, config.CPAPIServicehost, config.CPAPIClientToken, config.ClientApiVersion, config.CPGameServerZone, !offlineMode && config.CPGameServerEncrypted, config.CPGameServerDebug, config.CPLagMonitoring, config.CPGameServerLatencyWindowSize, config.CPWebServiceLatencyWindowSize, config.CPMonitoringServicehost, config.CPWebsiteAPIServicehost, offlineMode); currentConfig = config; worldService = new WorldService(); worldService.Initialize(clubPenguinClient); playerStateService = new PlayerStateService(); playerStateService.Initialize(clubPenguinClient); chatService = new ChatService(); chatService.Initialize(clubPenguinClient); playerActionService = new PlayerActionService(); playerActionService.Initialize(clubPenguinClient); iglooService = new IglooService(); iglooService.Initialize(clubPenguinClient); inventoryService = new InventoryService(); inventoryService.Initialize(clubPenguinClient); breadcrumbService = new BreadcrumbService(); breadcrumbService.Initialize(clubPenguinClient); savedOutfitService = new SavedOutfitService(); savedOutfitService.Initialize(clubPenguinClient); prototypeService = new PrototypeService(); prototypeService.Initialize(clubPenguinClient); questService = new QuestService(); questService.Initialize(clubPenguinClient); consumableService = new ConsumableService(); consumableService.Initialize(clubPenguinClient); friendsService = new FriendsService(); friendsService.Initialize(clubPenguinClient); rewardService = new RewardService(); rewardService.Initialize(clubPenguinClient); taskService = new TaskNetworkService(); taskService.Initialize(clubPenguinClient); minigameService = new MinigameService(); minigameService.Initialize(clubPenguinClient); iapService = new IAPService(); iapService.Initialize(clubPenguinClient); tutorialService = new TutorialService(); tutorialService.Initialize(clubPenguinClient); moderationService = new ModerationService(); moderationService.Initialize(clubPenguinClient); disneyStoreService = new DisneyStoreService(); disneyStoreService.Initialize(clubPenguinClient); newsfeedService = new NewsfeedService(); newsfeedService.Initialize(clubPenguinClient); catalogService = new CatalogService(); catalogService.Initialize(clubPenguinClient); partyGameService = new PartyGameService(); partyGameService.Initialize(clubPenguinClient); scheduledEventService = new ScheduledEventService(); scheduledEventService.Initialize(clubPenguinClient); diagnosticsService = new DiagnosticsService(); diagnosticsService.Initialize(clubPenguinClient); captchaService = new CaptchaService(); captchaService.Initialize(clubPenguinClient); }
public UserService(ILeaderboardService leaderboard, IQuestService quest, IPersistanceStorage storage) { _leaderboard = leaderboard; _quest = quest; _storage = storage; Load(); }
public QuestRewardSelection( INWScript script, IDialogService dialog, IQuestService quest) : base(script, dialog) { _quest = quest; }
public QuestComplete( INWScript script, IQuestService quest, IDataService data) { _ = script; _quest = quest; _data = data; }
public QuestCanAccept( INWScript script, IQuestService quest, IDataService data) { _ = script; _quest = quest; _data = data; }
public QuestAdvance( INWScript script, IQuestService quest, IDataService data) { _ = script; _quest = quest; _data = data; }
public OnModuleAcquireItem( INWScript script, IKeyItemService keyItem, IQuestService quest) { _ = script; _keyItem = keyItem; _quest = quest; }
public void Load() { uow = new Mock <IUnitOfWork>(); questRepository = new Mock <IRepository <Quest> >(); uow.Setup(x => x.Quests).Returns(questRepository.Object); questService = new QuestService(uow.Object); }
public OnOpened( INWScript script, IDataService data, IQuestService quest) { _ = script; _data = data; _quest = quest; }
public QuestController( IQuestQueryService questQueryService, IQuestService questService, IMapper mapper) { _questQueryService = questQueryService; _questService = questService; _mapper = mapper; }
public QuestCollectItem( INWScript script, IQuestService quest, IDataService data) { _ = script; _quest = quest; _data = data; }
public QuizController(IQuestService questService, IQuizService quizService, ITransactionScopeProvider transactionScopeProvider, IQuestRepository questRepository, IQuizRepository quizRepository) { this.questService = questService; this.quizService = quizService; this.transactionScopeProvider = transactionScopeProvider; this.questRepository = questRepository; this.quizRepository = quizRepository; }
public Form1(IQuestService qs, IReservationService rs) { this.qs = qs; this.rs = rs; InitializeComponent(); InitializeList(qs.GetAll()); instance = this; }
public AdminController(IGroupService groupService, IUserService userService, IQuestService questService, IQuestionService questionService, IAnswerService answerService, IImageSrvice imageService) { this.userService = userService; this.groupService = groupService; this.questService = questService; this.questionService = questionService; this.answerService = answerService; this.imageService = imageService; }
public QuestRewardSelection( INWScript script, IDialogService dialog, IQuestService quest, IDataService data) : base(script, dialog) { _quest = quest; _data = data; }
public ReservationWindow(IQuestService qs, IReservationService rs, QuestDTO quest) { this.qs = qs; this.rs = rs; this.quest = quest; InitializeComponent(); this.Text = $"Reservation for quest \"{quest.Name}\""; SetTimeSections(quest.Id, DateTime.Now); }
public StudentController(IQuestService questService, IAnswerService answerService, IUserService userService, IQuestionService questionService, IResultService resultService, IImageSrvice imageService) { this.questService = questService; this.answerService = answerService; this.userService = userService; this.questionService = questionService; this.resultService = resultService; this.imageService = imageService; }
public ForceCrystal( INWScript script, IQuestService quest, IDataService data, IObjectVisibilityService ovs) { _ = script; _quest = quest; _data = data; _ovs = ovs; }
public OnDisturbed( INWScript script, IDataService data, IQuestService quest, IColorTokenService color, IDialogService dialog) { _ = script; _data = data; _quest = quest; _color = color; _dialog = dialog; }
public OnDeath( ISkillService skill, ILootService loot, IQuestService quest, ICreatureCorpseService creatureCorpse, AppCache cache) { _skill = skill; _loot = loot; _quest = quest; _creatureCorpse = creatureCorpse; _cache = cache; }
public AccountServiceTests() { var services = new ServiceCollection(); services.AddDbContext <ApplicationDbContext>(options => options.UseInMemoryDatabase(Guid.NewGuid().ToString()).UseLazyLoadingProxies()); services.AddIdentity <Player, IdentityRole>(options => { //for now options.SignIn.RequireConfirmedEmail = false; options.Password.RequiredLength = UserConstants.PasswordMinLength; options.Password.RequireNonAlphanumeric = false; options.Password.RequireLowercase = false; options.Password.RequireUppercase = false; options.Password.RequireDigit = false; options.Lockout.MaxFailedAccessAttempts = 3; //Lockout time-а нарочно е малко ;) options.Lockout.DefaultLockoutTimeSpan = TimeSpan.FromSeconds(10); }) //.AddDefaultUI() .AddDefaultTokenProviders() .AddEntityFrameworkStores <ApplicationDbContext>(); services.AddScoped <SignInManager <Player>, SignInManager <Player> >(); services.AddScoped <RoleManager <IdentityRole>, RoleManager <IdentityRole> >(); services.AddScoped <IAccountService, AccountService>(); services.AddScoped <ICharacterService, CharacterService>(); services.AddScoped <IInventoryItemService, InventoryItemService>(); services.AddScoped <IInventoryService, InventoryService>(); services.AddScoped <IItemService, ItemService>(); services.AddScoped <IQuestService, QuestService>(); services.AddScoped <IEnemyService, EnemyService>(); services.AddScoped <IStatsService, StatsService>(); this.provider = services.BuildServiceProvider(); this.context = provider.GetService <ApplicationDbContext>(); this.signInManager = provider.GetService <SignInManager <Player> >(); this.roleManager = provider.GetService <RoleManager <IdentityRole> >(); this.accountService = provider.GetService <IAccountService>(); this.characterService = provider.GetService <ICharacterService>(); this.inventoryItemService = provider.GetService <IInventoryItemService>(); this.inventoryService = provider.GetService <IInventoryService>(); this.itemService = provider.GetService <IItemService>(); this.questService = provider.GetService <IQuestService>(); this.enemyService = provider.GetService <IEnemyService>(); this.statsService = provider.GetService <IStatsService>(); }
public GameStartPacketHandler(IOptions <WorldConfiguration> worldConfiguration, IFriendHttpClient friendHttpClient, IChannelHttpClient channelHttpClient, IConnectedAccountHttpClient connectedAccountHttpClient, IBlacklistHttpClient blacklistHttpClient, IPacketHttpClient packetHttpClient, ISerializer packetSerializer, IMailHttpClient mailHttpClient, IQuestService questProvider) { _worldConfiguration = worldConfiguration; _packetSerializer = packetSerializer; _blacklistHttpClient = blacklistHttpClient; _connectedAccountHttpClient = connectedAccountHttpClient; _channelHttpClient = channelHttpClient; _friendHttpClient = friendHttpClient; _packetHttpClient = packetHttpClient; _mailHttpClient = mailHttpClient; _questProvider = questProvider; }
public OnModuleEnter(INWScript script, IPlayerService player, ISkillService skill, IQuestService quest, IActivityLoggingService activityLogging, IMapPinService mapPin, IBackgroundService background) { _ = script; _player = player; _skill = skill; _quest = quest; _activityLogging = activityLogging; _mapPin = mapPin; _background = background; }
public SearchService( INWScript script, IRandomService random, IDataService data, IQuestService quest, ISerializationService serialization, ILocalVariableService localVariable, IColorTokenService color, IDurabilityService durability) { _ = script; _random = random; _data = data; _quest = quest; _serialization = serialization; _localVariable = localVariable; _color = color; _durability = durability; }