Beispiel #1
0
 public MerchandiseController(IMerchandiseRepository merchandiseRepository, ICategoryRepository categoryRepository, IEffectRepository effectRepository, IUriService uriService)
 {
     _categoryRepository    = categoryRepository;
     _merchandiseRepository = merchandiseRepository;
     _effectRepository      = effectRepository;
     _uriService            = uriService;
 }
Beispiel #2
0
 public SearchRandomPoints(SearchRandomPointsData data, List <Validator> validators, IEffectRepository effectRepository)
     : base(data, validators)
 {
     this.data             = data;
     this.validators       = validators;
     this.effectRepository = effectRepository;
 }
Beispiel #3
0
 public KnockbackEffect(KnockbackEffectData data, List <Validator> validators,
                        IEffectRepository effectRepository, BoardNavigator boardNavigator) : base(data, validators)
 {
     this.data             = data;
     this.effectRepository = effectRepository;
     this.boardNavigator   = boardNavigator;
 }
Beispiel #4
0
 public ItemMapper(
     ISkillRepository skillRepository,
     IItemSetRepository itemSetRepository,
     IItemTypeRepository itemTypeRepository,
     IRarityRepository rarityRepository,
     IEffectRepository effectRepository,
     ICurrencyRepository currencyRepository,
     IBehaviourRepository behaviourRepository,
     IItemModifierRepository itemModifierRepository,
     ISkinRepository skinRepository,
     AttributeModifierFactory attributeModifierFactory,
     PropertyModifierFactory propertyModifierFactory)
 {
     this.skillRepository          = skillRepository;
     this.itemSetRepository        = itemSetRepository;
     this.itemTypeRepository       = itemTypeRepository;
     this.rarityRepository         = rarityRepository;
     this.effectRepository         = effectRepository;
     this.currencyRepository       = currencyRepository;
     this.behaviourRepository      = behaviourRepository;
     this.itemModifierRepository   = itemModifierRepository;
     this.skinRepository           = skinRepository;
     this.attributeModifierFactory = attributeModifierFactory;
     this.propertyModifierFactory  = propertyModifierFactory;
 }
Beispiel #5
0
 public SearchDummiesEffect(SearchDummiesEffectData data, List <Validator> validators,
                            IEffectRepository effectRepository) : base(data, new List <Validator>())
 {
     this.data             = data;
     this.validators       = validators;
     this.effectRepository = effectRepository;
 }
Beispiel #6
0
 public IfElseEffect(IfElseEffectData data, List <Validator> validators,
                     IEffectRepository effectRepository) : base(data, new List <Validator>())
 {
     this.data             = data;
     this.validators       = validators;
     this.effectRepository = effectRepository;
 }
Beispiel #7
0
 public SearchPointsEffect(SearchAreaEffectData data, List <Validator> validators,
                           IEffectRepository effectRepository) : base(data, validators)
 {
     this.data             = data;
     this.validators       = validators;
     this.effectRepository = effectRepository;
     this.effect           = effectRepository.Find(data.EffectId);
 }
Beispiel #8
0
 public SearchAreaEffect(SearchAreaEffectData data, List <Validator> validators,
                         BoardNavigator boardNavigator, IEffectRepository effectRepository) : base(data, new List <Validator>())
 {
     this.data             = data;
     this.validators       = validators;
     this.boardNavigator   = boardNavigator;
     this.effectRepository = effectRepository;
 }
Beispiel #9
0
 public UserService(ISlackWebApi slack, IStatsRepository statsRepository, IEventDispatcher eventDispatcher, IEffectRepository effectRepository, IInventoryRepository inventoryRepository)
 {
     _slack               = slack;
     _statsRepository     = statsRepository;
     _eventDispatcher     = eventDispatcher;
     _effectRepository    = effectRepository;
     _inventoryRepository = inventoryRepository;
 }
Beispiel #10
0
 public LaunchAOEMissileEffect(LaunchAOEMissileEffectData data, List <Validator> validators,
                               IMissileRepository missileRepository, IEffectRepository effectRepository) : base(data, new List <Validator>())
 {
     this.data              = data;
     this.validators        = validators;
     this.missileRepository = missileRepository;
     this.effectRepository  = effectRepository;
 }
Beispiel #11
0
 public ChainEffect(ChainEffectData data, List <Validator> validators,
                    BoardNavigator boardNavigator, IEffectRepository effectRepository) : base(data, new List <Validator>())
 {
     this.hits             = new List <GameObject>();
     this.data             = data;
     this.validators       = validators;
     this.boardNavigator   = boardNavigator;
     this.effectRepository = effectRepository;
 }
Beispiel #12
0
        public CageBehaviour(CageBehaviourData data,
                             BoardNavigator boardNavigator, IEffectRepository effectRepository,
                             List <Validator> validators) : base(data, validators)
        {
            this.boardNavigator = boardNavigator;

            LeaveRadiusEffect = effectRepository.Find(data.LeaveRadiusEffectId);
            Radius            = data.Radius;
        }
Beispiel #13
0
 public MortuaryGrace(IEffectRepository effectRepository)
 {
     _effectRepository = effectRepository;
     Id          = EffectId;
     Name        = "Mortuary Grace";
     Description = "You died recently. You cannot be attacked. Attacking will break this effect.";
     Rank        = Rank.Common;
     Icon        = ":skull:";
 }
Beispiel #14
0
 public ActionFactory(IEffectRepository effectRepository, IUserService userService, IStatsRepository statsRepository, IInventoryRepository inventoryRepository, ISlackWebApi slack, IRandomService randomService, IItemRepository itemRepository)
 {
     _effectRepository    = effectRepository;
     _userService         = userService;
     _statsRepository     = statsRepository;
     _inventoryRepository = inventoryRepository;
     _slack          = slack;
     _randomService  = randomService;
     _itemRepository = itemRepository;
 }
Beispiel #15
0
 public Cigarette(IInventoryRepository inventoryRepository, IEffectRepository effectRepository) : base(inventoryRepository)
 {
     _effectRepository = effectRepository;
     Id          = ItemId;
     Name        = "Cigarette";
     Description = "A cigarette that probably belonged to Vapane. Gives *Nicotine High* for 5 minutes";
     Rarity      = Rarity.Uncommon;
     Icon        = ":smoking:";
     Price       = 10;
 }
Beispiel #16
0
 public ItemFactory(ISlackWebApi slack, IStatsRepository statsRepository, IInventoryRepository inventoryRepository, IUserService userService, IEventDispatcher eventDispatcher, IEffectRepository effectRepository, IRandomService randomService)
 {
     _slack               = slack;
     _statsRepository     = statsRepository;
     _inventoryRepository = inventoryRepository;
     _userService         = userService;
     _eventDispatcher     = eventDispatcher;
     _effectRepository    = effectRepository;
     _randomService       = randomService;
 }
Beispiel #17
0
 public LuckyClover(IInventoryRepository inventoryRepository, IEffectRepository effectRepository) : base(inventoryRepository)
 {
     _effectRepository = effectRepository;
     Id          = ItemId;
     Name        = "Lucky Clover";
     Description = "A rare four-leafed clover. Legends says if you eat it, you will steal its luck. For a limited time.";
     Rarity      = Rarity.Rare;
     Icon        = ":clover:";
     Price       = 300;
 }
Beispiel #18
0
 public ArcaneIntellect(IStatsRepository statsRepository, IEffectRepository effectRepository, ISlackWebApi slack, IUserService userService) : base(statsRepository, effectRepository, slack, userService)
 {
     Id         = SkillId;
     Name       = "ArcaneIntellect";
     EnergyCost = 35;
     Cooldown   = 15;
     BuffId     = Effects.Buffs.ArcaneIntellect.EffectId;
     BuffName   = "Arcane Intellect";
     Duration   = 120;
 }
Beispiel #19
0
 public Flurry(IStatsRepository statsRepository, IEffectRepository effectRepository, ISlackWebApi slack, IUserService userService) : base(statsRepository, effectRepository, slack, userService)
 {
     Id         = SkillId;
     Name       = "Flurry";
     EnergyCost = 25;
     Cooldown   = 60;
     BuffId     = Effects.Buffs.Flurry.EffectId;
     BuffName   = "Flurry";
     Duration   = 1;
 }
Beispiel #20
0
 public HolyWater(IInventoryRepository inventoryRepository, IEffectRepository effectRepository) : base(inventoryRepository)
 {
     _effectRepository = effectRepository;
     Id          = ItemId;
     Name        = "Holy Water";
     Description = "Water used to purify your sins. Removes all active effects on you.";
     Rarity      = Rarity.Unique;
     Icon        = ":holy_water:";
     Price       = 100;
 }
Beispiel #21
0
 public VapeMachine(IInventoryRepository inventoryRepository, IEffectRepository effectRepository) : base(inventoryRepository)
 {
     _effectRepository = effectRepository;
     Id          = ItemId;
     Name        = "Vape Machine";
     Description = "Some kind of hobo breathing mechanism. Gives +40 Health";
     Rarity      = Rarity.Uncommon;
     Icon        = ":smoking:";
     Price       = 40;
 }
Beispiel #22
0
 public BigMac(IInventoryRepository inventoryRepository, IEffectRepository effectRepository) : base(inventoryRepository)
 {
     _effectRepository = effectRepository;
     Id          = ItemId;
     Name        = "Big Mac";
     Description = "On va tu au Mc Donald? Gives *Troll's Blessing* for 5 minutes";
     Rarity      = Rarity.Uncommon;
     Icon        = ":bigmac:";
     Price       = 100;
 }
Beispiel #23
0
 public Berserk(IStatsRepository statsRepository, IEffectRepository effectRepository, ISlackWebApi slack, IUserService userService) : base(statsRepository, effectRepository, slack, userService)
 {
     Id         = SkillId;
     Name       = "Berserk";
     EnergyCost = 25;
     Cooldown   = 30;
     BuffId     = Effects.Buffs.Berserk.EffectId;
     BuffName   = "Berserk!";
     Duration   = 2;
 }
Beispiel #24
0
 public PicklePickle(IInventoryRepository inventoryRepository, IEffectRepository effectRepository, IStatsRepository statsRepository) : base(inventoryRepository)
 {
     _effectRepository = effectRepository;
     _statsRepository  = statsRepository;
     Id          = ItemId;
     Name        = "Pickle's pickle";
     Description = "Dill with it. Gives +100 HP and +15 Def for 15 minutes";
     Rarity      = Rarity.Uncommon;
     Icon        = ":pickle:";
     Price       = 100;
 }
Beispiel #25
0
 public EssentialOilService(IEssentialOilRepository essentialOilRepository,
                            IEssentialOilEffectRepository essentialOilEffectRepository,
                            IEssentialOilMoleculeRepository essentialOilMoleculeRepository, IEffectRepository effectRepository,
                            IMoleculeRepository moleculeRepository)
     : base(essentialOilRepository)
 {
     _essentialOilRepository         = essentialOilRepository;
     _essentialOilEffectRepository   = essentialOilEffectRepository;
     _essentialOilMoleculeRepository = essentialOilMoleculeRepository;
     _effectRepository   = effectRepository;
     _moleculeRepository = moleculeRepository;
 }
Beispiel #26
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;
 }
Beispiel #27
0
 public SkillMapper(IEffectRepository effectRepository, IBehaviourRepository behaviourRepository,
                    IItemCategoryRepository itemCategoryRepository, ICurrencyRepository currencyRepository,
                    ISkillCategoryRepository skillCategoryRepository, IRarityRepository rarityRepository,
                    ISkillSetRepository skillSetRepository)
 {
     this.effectRepository        = effectRepository;
     this.behaviourRepository     = behaviourRepository;
     this.itemCategoryRepository  = itemCategoryRepository;
     this.currencyRepository      = currencyRepository;
     this.skillCategoryRepository = skillCategoryRepository;
     this.rarityRepository        = rarityRepository;
     this.skillSetRepository      = skillSetRepository;
 }
Beispiel #28
0
        public void SetUp()
        {
            var unitOfWorkFactory = Substitute.For <IUnitOfWorkFactory>();

            _unitOfWork = Substitute.For <IUnitOfWork>();
            unitOfWorkFactory.CreateUnitOfWork().Returns(_unitOfWork);
            _effectRepository = Substitute.For <IEffectRepository>();
            _unitOfWork.Effects.Returns(_effectRepository);
            _effectSubCategoryRepository = Substitute.For <IEffectSubCategoryRepository>();
            _unitOfWork.EffectSubCategories.Returns(_effectSubCategoryRepository);
            _effectTypeRepository = Substitute.For <IEffectTypeRepository>();
            _unitOfWork.EffectTypes.Returns(_effectTypeRepository);
            _authorizationUtil = Substitute.For <IAuthorizationUtil>();
            _effectService     = new EffectService(unitOfWorkFactory, _authorizationUtil);
        }
Beispiel #29
0
 public EffectFactory(ISlackWebApi slack, IUserService userService, IEffectRepository effectRepository)
 {
     _slack            = slack;
     _userService      = userService;
     _effectRepository = effectRepository;
 }
Beispiel #30
0
 public RepeatEffect(RepeatEffectData data, List <Validator> validators,
                     IEffectRepository effectRepository) : base(data, validators)
 {
     this.data             = data;
     this.effectRepository = effectRepository;
 }