Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the
        /// <see cref="SilverNeedle.Mechanics.CharacterGenerator.CharacterGenerator"/> class.
        /// </summary>
        /// <param name="abilities">Ability score generator to use.</param>
        /// <param name="langs">Language selector to use.</param>
        /// <param name="races">Race selector to use.</param>
        /// <param name="names">Name selector to use.</param>
        public CharacterGenerator(
            IAbilityScoreGenerator abilities,
            LanguageSelector langs,
            RaceSelector races,
            INameCharacter names)
        {
            this.abilityGenerator = abilities;
            this.languageSelector = langs;
            this.raceSelector     = races;
            this.nameGenerator    = names;

            this.armorGateway    = new ArmorYamlGateway();
            this.weaponGateway   = new WeaponYamlGateway();
            this.skillGateway    = new SkillYamlGateway();
            this.classGateway    = new ClassYamlGateway();
            this.maturityGateway = new RaceMaturityYamlGateway();
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="SilverNeedle.Mechanics.CharacterGenerator.EquipMeleeAndRangedWeapon"/> class.
 /// </summary>
 /// <param name="weapons">Weapons available for purchase</param>
 public EquipMeleeAndRangedWeapon(IWeaponGateway weapons)
 {
     this.weaponGateway = weapons;
 }