コード例 #1
0
 public Pillaging(ICreditsRepository creditsRepository, ISlackWebApi slack)
 {
     _creditsRepository = creditsRepository;
     _slack             = slack;
     Id   = EffectId;
     Name = "Thievery";
 }
コード例 #2
0
 public ShopService(IInventoryRepository inventoryRepository, IItemRepository itemRepository, IGovernmentService governmentService, ICreditsRepository creditsRepository)
 {
     _inventoryRepository = inventoryRepository;
     _itemRepository      = itemRepository;
     _governmentService   = governmentService;
     _creditsRepository   = creditsRepository;
 }
コード例 #3
0
ファイル: CreditsQuery.cs プロジェクト: formist/LinkMe
 public CreditsQuery(ICreditsRepository repository)
 {
     _repository    = repository;
     _credits       = _repository.GetCredits();
     _creditsById   = _credits.ToDictionary(c => c.Id);
     _creditsByName = _credits.ToDictionary(c => c.Name);
     _creditsByType = _credits.ToDictionary(c => c.GetType());
 }
コード例 #4
0
 public CreditsCommands(IUserRepository userRepository, ISlackWebApi messageSender, IUserService userService, IShopMenuService shopMenuService, ICreditsRepository creditsRepository)
 {
     _userRepository    = userRepository;
     _slack             = messageSender;
     _userService       = userService;
     _shopMenuService   = shopMenuService;
     _creditsRepository = creditsRepository;
 }
コード例 #5
0
 public LotteryService(ISlackWebApi slack, IUserRepository userRepository, IRandomService randomService, ICreditsRepository creditsRepository, IUserService userService, IInventoryRepository inventoryRepository)
 {
     _slack               = slack;
     _userRepository      = userRepository;
     _randomService       = randomService;
     _creditsRepository   = creditsRepository;
     _userService         = userService;
     _inventoryRepository = inventoryRepository;
 }
コード例 #6
0
 public CoffeeService(ISlackWebApi slackWebApi, ICoffeeRepository coffeeRepository, IBackgroundJobClient backgroundJobClient, IInventoryRepository inventoryRepository, IUserService userService, IStatsRepository statsRepository, ICreditsRepository creditsRepository)
 {
     _slack               = slackWebApi;
     _coffeeRepository    = coffeeRepository;
     _backgroundJobClient = backgroundJobClient;
     _inventoryRepository = inventoryRepository;
     _userService         = userService;
     _statsRepository     = statsRepository;
     _creditsRepository   = creditsRepository;
 }
コード例 #7
0
 public SlursCommands(ISlurRepository slursRepository, IUserRepository userRepository, ISlackWebApi messageSender, IAuthorizationService adminValidator, IEventDispatcher eventDispatcher, IUserService userService, ICreditsRepository creditsRepository)
 {
     _slurRepository    = slursRepository;
     _userRepository    = userRepository;
     _slack             = messageSender;
     _adminValidator    = adminValidator;
     _eventDispatcher   = eventDispatcher;
     _userService       = userService;
     _creditsRepository = creditsRepository;
 }
コード例 #8
0
ファイル: CasinoCommands.cs プロジェクト: WilliamGF/Doug
 public CasinoCommands(IUserRepository userRepository, ISlackWebApi messageSender, IChannelRepository channelRepository, IBackgroundJobClient backgroundJobClient, IEventDispatcher eventDispatcher, IStatsRepository statsRepository, IRandomService randomService, IUserService userService, ICreditsRepository creditsRepository)
 {
     _userRepository      = userRepository;
     _slack               = messageSender;
     _channelRepository   = channelRepository;
     _backgroundJobClient = backgroundJobClient;
     _eventDispatcher     = eventDispatcher;
     _statsRepository     = statsRepository;
     _randomService       = randomService;
     _userService         = userService;
     _creditsRepository   = creditsRepository;
 }
コード例 #9
0
 public ItemFactory(ISlackWebApi slack, IStatsRepository statsRepository, IInventoryRepository inventoryRepository, IUserService userService, IEventDispatcher eventDispatcher, IEffectRepository effectRepository, IRandomService randomService, IChannelRepository channelRepository, ICreditsRepository creditsRepository)
 {
     _slack               = slack;
     _statsRepository     = statsRepository;
     _inventoryRepository = inventoryRepository;
     _userService         = userService;
     _eventDispatcher     = eventDispatcher;
     _effectRepository    = effectRepository;
     _randomService       = randomService;
     _channelRepository   = channelRepository;
     _creditsRepository   = creditsRepository;
 }
コード例 #10
0
 public SkillFactory(IUserService userService, IStatsRepository statsRepository, ISlackWebApi slack, ICombatService combatService, IEventDispatcher eventDispatcher, IChannelRepository channelRepository, IRandomService randomService, ICreditsRepository creditsRepository, IEffectRepository effectRepository)
 {
     _userService       = userService;
     _statsRepository   = statsRepository;
     _slack             = slack;
     _combatService     = combatService;
     _eventDispatcher   = eventDispatcher;
     _channelRepository = channelRepository;
     _randomService     = randomService;
     _creditsRepository = creditsRepository;
     _effectRepository  = effectRepository;
 }
コード例 #11
0
ファイル: Steal.cs プロジェクト: WilliamGF/Doug
        public Steal(IStatsRepository statsRepository, ISlackWebApi slack, IUserService userService, IChannelRepository channelRepository, IEventDispatcher eventDispatcher, IRandomService randomService, ICreditsRepository creditsRepository) : base(statsRepository)
        {
            EnergyCost = 1;
            Cooldown   = 30;

            _statsRepository   = statsRepository;
            _slack             = slack;
            _userService       = userService;
            _channelRepository = channelRepository;
            _eventDispatcher   = eventDispatcher;
            _randomService     = randomService;
            _creditsRepository = creditsRepository;
        }
コード例 #12
0
        public StealBook(IStatsRepository statsRepository, ISlackWebApi slack, IUserService userService,
                         IChannelRepository channelRepository, IEventDispatcher eventDispatcher,
                         IRandomService randomService, ICreditsRepository creditsRepository)
        {
            Id                 = ItemId;
            Name               = "Steal";
            Description        = "Steal rupees from the target. Cost 5 energy to cast.";
            Rarity             = Rarity.Common;
            Icon               = ":skillbook:";
            Price              = 1200;
            LevelRequirement   = 10;
            AgilityRequirement = 15;

            Skill = new Steal(statsRepository, slack, userService, channelRepository, eventDispatcher, randomService, creditsRepository);
        }
コード例 #13
0
 public AllocationsQuery(ICreditsRepository repository, ICreditsQuery creditsQuery)
 {
     _repository   = repository;
     _creditsQuery = creditsQuery;
 }
コード例 #14
0
ファイル: AllocationsCommand.cs プロジェクト: formist/LinkMe
 public AllocationsCommand(ICreditsRepository repository)
 {
     _repository = repository;
 }
コード例 #15
0
 public ExercisedCreditsQuery(ICreditsRepository repository, ICreditsQuery creditsQuery)
 {
     _repository   = repository;
     _creditsQuery = creditsQuery;
 }
コード例 #16
0
 public ExercisedCreditsCommand(ICreditsRepository repository)
 {
     _repository = repository;
 }