コード例 #1
0
 public MirrorImageEffect(MirrorImageEffectData data, List <Validator> validators,
                          IUnitRepository unitRepository, IBehaviourRepository behaviourRepository) : base(data, validators)
 {
     this.data                = data;
     this.unitRepository      = unitRepository;
     this.behaviourRepository = behaviourRepository;
 }
コード例 #2
0
 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);
 }
コード例 #3
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;
 }
コード例 #4
0
 public ScenarioMapper(IItemRepository itemRepository, IBehaviourRepository behaviourRepository,
                       EpisodeMapper episodeMapper, CharacterManager characterManager)
 {
     this.characterManager    = characterManager;
     this.itemRepository      = itemRepository;
     this.behaviourRepository = behaviourRepository;
     this.episodeMapper       = episodeMapper;
 }
コード例 #5
0
 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>();
 }
コード例 #6
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;
 }
コード例 #7
0
        //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;
        }
コード例 #8
0
 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;
 }
コード例 #9
0
        //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;
        }
コード例 #10
0
 public RelicMapper(IBehaviourRepository behaviourRepository, IRarityRepository rarityRepository)
 {
     this.behaviourRepository = behaviourRepository;
     this.rarityRepository    = rarityRepository;
 }
コード例 #11
0
 public AuraBehaviour(AuraBehaviourData data, IBehaviourRepository behaviourRepository,
                      List <Validator> validators) : base(data, validators)
 {
     this.data = data;
     this.behaviourRepository = behaviourRepository;
 }
コード例 #12
0
 public ItemSetMapper(IBehaviourRepository behaviourRepository)
 {
     this.behaviourRepository = behaviourRepository;
 }
コード例 #13
0
 public DualWieldBehaviour(DualWieldBehaviourData data, IBehaviourRepository behaviourRepository,
                           List <Validator> validators) : base(data, validators)
 {
     this.behaviour = behaviourRepository.Find(data.BehaviourId);
 }
コード例 #14
0
 public ApplyBehaviourEffect(ApplyBehaviourEffectData data, List <Validator> validators,
                             IBehaviourRepository behaviourRepository) : base(data, validators)
 {
     this.data = data;
     this.behaviourRepository = behaviourRepository;
 }
コード例 #15
0
 public SkillSetMapper(IBehaviourRepository behaviourRepository)
 {
     this.behaviourRepository = behaviourRepository;
 }
コード例 #16
0
 public TalentMapper(IBehaviourRepository behaviourRepository,
                     ITalentCategoryRepository talentCategoryRepository)
 {
     this.behaviourRepository      = behaviourRepository;
     this.talentCategoryRepository = talentCategoryRepository;
 }
コード例 #17
0
 public SetBehaviour(SetBehaviourData data, IBehaviourRepository behaviourRepository,
                     List <Validator> validators) : base(data, validators)
 {
     this.behaviours = behaviourRepository.Find(data.Behaviours);
 }
コード例 #18
0
 public PerUnitInRangeBehaviour(AuraBehaviourData data, IBehaviourRepository behaviourRepository,
                                List <Validator> validators) : base(data, validators)
 {
     this.data      = data;
     this.behaviour = behaviourRepository.FindOrFail(data.BehaviourId);
 }
コード例 #19
0
 public FoodMapper(IBehaviourRepository behaviourRepository)
 {
     this.behaviourRepository = behaviourRepository;
 }