public void MassAddSpecialFeatures(List <Constants.SpecialFeatures> feats, Constants.Sources source)
 {
     foreach (Constants.SpecialFeatures feat in feats)
     {
         AddSpecialFeature(feat, source);
     }
 }
Exemple #2
0
        //Readonly
        public string SourceLabel(Constants.Sources source)
        {
            switch (source)
            {
            case Constants.Sources.Race: return(Race);

            case Constants.Sources.Background: return(Background);

            case Constants.Sources.Class: return(Class);

            default: return("Unknown");
            }
        }
 public void AddSpecialFeature(Constants.SpecialFeatures feat, Constants.Sources source) => component.AddSpecialFeature(feat, source);
 void ICharacter.AddSpecialFeature(Constants.SpecialFeatures feat, Constants.Sources source)
 {
     SpecialFeatures().Add(
         new SpecialFeature_Base(feat, source)
         );
 }
 public SpecialFeature_Base(Constants.SpecialFeatures name, Constants.Sources source = Constants.Sources.None)
 {
     _name   = name;
     _source = source;
 }