static public Abilities GetAbilities(IStrength strength, IDexterity dexterity, IConstitution constitution, IIntelligence intelligence, IWisdom wisdom, ICharisma charisma)
 {
     return(new Abilities()
     {
         Strength = strength,
         Dexterity = dexterity,
         Constitution = constitution,
         Intelligence = intelligence,
         Wisdom = wisdom,
         Charisma = charisma
     });
 }
Exemple #2
0
 public Abilities(
     IStrength strength,
     IDexterity dexterity,
     IConstitution constitution,
     IIntelligence intelligence,
     IWisdom wisdom,
     ICharisma charisma)
 {
     Strength     = strength ?? throw new ArgumentNullException(nameof(strength));
     Dexterity    = dexterity ?? throw new ArgumentNullException(nameof(dexterity));
     Constitution = constitution ?? throw new ArgumentNullException(nameof(constitution));
     Intelligence = intelligence ?? throw new ArgumentNullException(nameof(intelligence));
     Wisdom       = wisdom ?? throw new ArgumentNullException(nameof(wisdom));
     Charisma     = charisma ?? throw new ArgumentNullException(nameof(charisma));
 }