public ItemsGenerator(IItemGeneratorConfiguration configuration, IImagesStorage imagesStorage, IAncientSpellsProvider spellsProvider) { var bonusesGenerator = new BonusesGenerator(configuration.BonusesConfiguration); weaponGenerators = new Dictionary <WeaponType, IWeaponGenerator> { { WeaponType.Sword, new WeaponGenerator("Sword", WorldImageNameSword, configuration.WeaponsConfiguration.SwordsConfiguration, configuration.WeaponsConfiguration, bonusesGenerator, imagesStorage) }, { WeaponType.Dagger, new WeaponGenerator("Dagger", WorldImageNameDagger, configuration.WeaponsConfiguration.DaggersConfiguration, configuration.WeaponsConfiguration, bonusesGenerator, imagesStorage) }, { WeaponType.Mace, new WeaponGenerator("Mace", WorldImageNameMace, configuration.WeaponsConfiguration.MacesConfiguration, configuration.WeaponsConfiguration, bonusesGenerator, imagesStorage) }, { WeaponType.Axe, new WeaponGenerator("Axe", WorldImageNameAxe, configuration.WeaponsConfiguration.AxesConfiguration, configuration.WeaponsConfiguration, bonusesGenerator, imagesStorage) }, { WeaponType.Staff, new WeaponGenerator("Staff", WorldImageNameStaff, configuration.WeaponsConfiguration.StaffsConfiguration, configuration.WeaponsConfiguration, bonusesGenerator, imagesStorage) } }; armorGenerator = new ArmorGenerator(configuration.ArmorConfiguration, bonusesGenerator, imagesStorage); shieldGenerator = new ShieldGenerator(configuration.ShieldsConfiguration, bonusesGenerator, imagesStorage); spellBookGenerator = new SpellBookGenerator(configuration.SpellBooksConfiguration, bonusesGenerator, imagesStorage); usableItemsGenerator = new UsableItemsGenerator(imagesStorage, spellsProvider); resourceItemsGenerator = new ResourceItemsGenerator(); foodItemsGenerator = new FoodItemsGenerator(imagesStorage); }
public WeaponGenerator( string baseName, string worldImageName, IWeaponConfiguration configuration, IWeaponsConfiguration configurations, BonusesGenerator bonusesGenerator, IImagesStorage imagesStorage) { this.configurations = configurations; this.imagesStorage = imagesStorage; this.bonusesGenerator = bonusesGenerator; this.baseName = baseName; this.worldImageName = worldImageName; this.configuration = configuration; }
public ArmorGenerator(IArmorConfiguration configuration, BonusesGenerator bonusesGenerator, IImagesStorage imagesStorage) { this.configuration = configuration; this.imagesStorage = imagesStorage; this.bonusesGenerator = bonusesGenerator; }
public SpellBookGenerator(ISpellBooksConfiguration configuration, BonusesGenerator bonusesGenerator, IImagesStorage imagesStorage) { this.configuration = configuration; this.bonusesGenerator = bonusesGenerator; this.imagesStorage = imagesStorage; }
public ShieldGenerator(IShieldsConfiguration configuration, BonusesGenerator bonusesGenerator, IImagesStorage imagesStorage) { this.configuration = configuration; this.imagesStorage = imagesStorage; this.bonusesGenerator = bonusesGenerator; }