public MirrorImageEffect(MirrorImageEffectData data, List <Validator> validators, IUnitRepository unitRepository, IBehaviourRepository behaviourRepository) : base(data, validators) { this.data = data; this.unitRepository = unitRepository; this.behaviourRepository = behaviourRepository; }
public ItemBasedBehaviour(ItemBasedBehaviourData data, IItemCategoryRepository itemCategoryRepository, IBehaviourRepository behaviourRepository, List <Validator> validators) : base(data, validators) { this.behaviour = behaviourRepository.FindOrFail(data.BehaviourId); this.requiredCategory = itemCategoryRepository.FindOrFail(data.ItemCategoryId); }
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; }
public ScenarioMapper(IItemRepository itemRepository, IBehaviourRepository behaviourRepository, EpisodeMapper episodeMapper, CharacterManager characterManager) { this.characterManager = characterManager; this.itemRepository = itemRepository; this.behaviourRepository = behaviourRepository; this.episodeMapper = episodeMapper; }
public CommandBoardViewController(ICommandBoardView view, CharacterManager characterManager, IScenarioDataRepository scenarioDataRepository, IBehaviourRepository behaviourRepository, IItemRepository itemRepository, IUnitDataRepository unitDataRepository) : base(view) { this.scenarioDataRepository = scenarioDataRepository; this.behaviourRepository = behaviourRepository; this.itemRepository = itemRepository; this.unitDataRepository = unitDataRepository; this.characterManager = characterManager; this.spellbook = this.characterManager.Character.Entity.GetComponent <SpellbookComponent>(); }
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; }
//Can't do this in constructor for some reason private void Init() { if (target == null) throw new ArgumentException(nameof(target), "Target is null for some reason."); reflectionStrat = new FasterflectReflectionStrategy(); collectionRepo = new BehaviourCollectionModelRepository(target as GladMonoBehaviour, reflectionStrat); controller = new GladMonoBehaviourDataController(); IEnumerable<IDataStoreModel> models = collectionRepo.BuildModels(); List<IEditorDrawable> tempViewList = new List<IEditorDrawable>(models.Count() * 2); foreach (var dm in models) tempViewList.Add(controller.RegisterModel(dm)); views = tempViewList; }
public UnitMapper( IAttributeRepository attributeRepository, IPropertyRepository propertyRepository, IBehaviourTreeRepository behaviourTreeRepository, IBehaviourRepository behaviourRepository, ISkillRepository skillRepository, IArchetypeDataRepository archetypeDataRepository, ILootDataRepository lootDataRepository, IItemRepository itemRepository, IPathfinder pathfinder) { this.attributeRepository = attributeRepository; this.propertyRepository = propertyRepository; this.behaviourTreeRepository = behaviourTreeRepository; this.behaviourRepository = behaviourRepository; this.skillRepository = skillRepository; this.archetypeDataRepository = archetypeDataRepository; this.lootDataRepository = lootDataRepository; this.itemRepository = itemRepository; this.pathfinder = pathfinder; }
//Can't do this in constructor for some reason private void Init() { if (target == null) { throw new ArgumentException(nameof(target), "Target is null for some reason."); } reflectionStrat = new FasterflectReflectionStrategy(); collectionRepo = new BehaviourCollectionModelRepository(target as GladMonoBehaviour, reflectionStrat); controller = new GladMonoBehaviourDataController(); IEnumerable <IDataStoreModel> models = collectionRepo.BuildModels(); List <IEditorDrawable> tempViewList = new List <IEditorDrawable>(models.Count() * 2); foreach (var dm in models) { tempViewList.Add(controller.RegisterModel(dm)); } views = tempViewList; }
public RelicMapper(IBehaviourRepository behaviourRepository, IRarityRepository rarityRepository) { this.behaviourRepository = behaviourRepository; this.rarityRepository = rarityRepository; }
public AuraBehaviour(AuraBehaviourData data, IBehaviourRepository behaviourRepository, List <Validator> validators) : base(data, validators) { this.data = data; this.behaviourRepository = behaviourRepository; }
public ItemSetMapper(IBehaviourRepository behaviourRepository) { this.behaviourRepository = behaviourRepository; }
public DualWieldBehaviour(DualWieldBehaviourData data, IBehaviourRepository behaviourRepository, List <Validator> validators) : base(data, validators) { this.behaviour = behaviourRepository.Find(data.BehaviourId); }
public ApplyBehaviourEffect(ApplyBehaviourEffectData data, List <Validator> validators, IBehaviourRepository behaviourRepository) : base(data, validators) { this.data = data; this.behaviourRepository = behaviourRepository; }
public SkillSetMapper(IBehaviourRepository behaviourRepository) { this.behaviourRepository = behaviourRepository; }
public TalentMapper(IBehaviourRepository behaviourRepository, ITalentCategoryRepository talentCategoryRepository) { this.behaviourRepository = behaviourRepository; this.talentCategoryRepository = talentCategoryRepository; }
public SetBehaviour(SetBehaviourData data, IBehaviourRepository behaviourRepository, List <Validator> validators) : base(data, validators) { this.behaviours = behaviourRepository.Find(data.Behaviours); }
public PerUnitInRangeBehaviour(AuraBehaviourData data, IBehaviourRepository behaviourRepository, List <Validator> validators) : base(data, validators) { this.data = data; this.behaviour = behaviourRepository.FindOrFail(data.BehaviourId); }
public FoodMapper(IBehaviourRepository behaviourRepository) { this.behaviourRepository = behaviourRepository; }