public CharacterFactory(IModel model) { _model = model; _spellFactory = _model.SpellFactory; _names = new List <string>(File.ReadAllLines("content/etc/Names.txt")); BossList = new List <string>(); _specialChars = new Dictionary <string, ICharacter>(); _passives = new Dictionary <string, List <IAffliction> >(); }
public MonsterFactory(IWeaponFactory weaponFactory, ISpellFactory spellFactory, IItemFactory itemFactory, IMonsterDataRepository monsterDataRepository, IActionSelector actionSelector, IStatsGenerator statsGenerator, IDice dice) { this.weaponFactory = weaponFactory; this.spellFactory = spellFactory; this.itemFactory = itemFactory; _actionSelector = actionSelector; _statsGenerator = statsGenerator; _dice = dice; monsterArchetypes = monsterDataRepository.GetAllMonsterArchetypes().ToList(); monsterModifiers = monsterDataRepository.GetAllMonsterModifiers().ToList(); }