コード例 #1
0
 public WariersDatson(INWScript script,
                      IDialogService dialog,
                      IQuestService quest)
     : base(script, dialog)
 {
     _quest = quest;
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public QuestController(IQuestService questService, ISanitizerService sanitizerService, IImageService imageService, IVaucherService voucherService)
 {
     this.voucherService   = voucherService;
     this.questService     = questService;
     this.sanitizerService = sanitizerService;
     this.imageService     = imageService;
 }
コード例 #5
0
        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>();
        }
コード例 #6
0
 public CharacterService(ApplicationDbContext context, IInventoryItemService inventoryItemService, IItemService itemService, IQuestService questService)
 {
     this.context = context;
     this.inventoryItemService = inventoryItemService;
     this.itemService          = itemService;
     this.questService         = questService;
 }
コード例 #7
0
 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);
 }
コード例 #8
0
ファイル: UserService.cs プロジェクト: rasyidf/KFlearning
        public UserService(ILeaderboardService leaderboard, IQuestService quest, IPersistanceStorage storage)
        {
            _leaderboard = leaderboard;
            _quest       = quest;
            _storage     = storage;

            Load();
        }
コード例 #9
0
 public QuestRewardSelection(
     INWScript script,
     IDialogService dialog,
     IQuestService quest)
     : base(script, dialog)
 {
     _quest = quest;
 }
コード例 #10
0
ファイル: QuestComplete.cs プロジェクト: xephnin/SWLOR_NWN
 public QuestComplete(
     INWScript script,
     IQuestService quest,
     IDataService data)
 {
     _      = script;
     _quest = quest;
     _data  = data;
 }
コード例 #11
0
 public QuestCanAccept(
     INWScript script,
     IQuestService quest,
     IDataService data)
 {
     _      = script;
     _quest = quest;
     _data  = data;
 }
コード例 #12
0
 public QuestAdvance(
     INWScript script,
     IQuestService quest,
     IDataService data)
 {
     _      = script;
     _quest = quest;
     _data  = data;
 }
コード例 #13
0
 public OnModuleAcquireItem(
     INWScript script,
     IKeyItemService keyItem,
     IQuestService quest)
 {
     _        = script;
     _keyItem = keyItem;
     _quest   = quest;
 }
コード例 #14
0
        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);
        }
コード例 #15
0
 public OnOpened(
     INWScript script,
     IDataService data,
     IQuestService quest)
 {
     _      = script;
     _data  = data;
     _quest = quest;
 }
コード例 #16
0
 public QuestController(
     IQuestQueryService questQueryService,
     IQuestService questService,
     IMapper mapper)
 {
     _questQueryService = questQueryService;
     _questService      = questService;
     _mapper            = mapper;
 }
コード例 #17
0
ファイル: QuestCollectItem.cs プロジェクト: xephnin/SWLOR_NWN
 public QuestCollectItem(
     INWScript script,
     IQuestService quest,
     IDataService data)
 {
     _      = script;
     _quest = quest;
     _data  = data;
 }
コード例 #18
0
 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;
 }
コード例 #19
0
        public Form1(IQuestService qs, IReservationService rs)
        {
            this.qs = qs;
            this.rs = rs;

            InitializeComponent();
            InitializeList(qs.GetAll());
            instance = this;
        }
コード例 #20
0
 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;
 }
コード例 #21
0
 public QuestRewardSelection(
     INWScript script,
     IDialogService dialog,
     IQuestService quest,
     IDataService data)
     : base(script, dialog)
 {
     _quest = quest;
     _data  = data;
 }
コード例 #22
0
        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);
        }
コード例 #23
0
 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;
 }
コード例 #24
0
 public ForceCrystal(
     INWScript script,
     IQuestService quest,
     IDataService data,
     IObjectVisibilityService ovs)
 {
     _      = script;
     _quest = quest;
     _data  = data;
     _ovs   = ovs;
 }
コード例 #25
0
 public OnDisturbed(
     INWScript script,
     IDataService data,
     IQuestService quest,
     IColorTokenService color,
     IDialogService dialog)
 {
     _       = script;
     _data   = data;
     _quest  = quest;
     _color  = color;
     _dialog = dialog;
 }
コード例 #26
0
ファイル: OnDeath.cs プロジェクト: xephnin/SWLOR_NWN
 public OnDeath(
     ISkillService skill,
     ILootService loot,
     IQuestService quest,
     ICreatureCorpseService creatureCorpse,
     AppCache cache)
 {
     _skill          = skill;
     _loot           = loot;
     _quest          = quest;
     _creatureCorpse = creatureCorpse;
     _cache          = cache;
 }
コード例 #27
0
        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>();
        }
コード例 #28
0
 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;
 }
コード例 #29
0
 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;
 }
コード例 #30
0
 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;
 }