Beispiel #1
0
 public UserSettingInt(
     Func <string> nameF,
     Func <string> descriptionF,
     UserSettingGroup group,
     Func <TSettings, int> loadF,
     Action <TSettings, int> applyF,
     Func <int, ValidationResult> validateF = null) : base(nameF, descriptionF, group, loadF, applyF, validateF)
 {
 }
 public UserSettingDouble(
     Func <string> nameF,
     Func <string> descriptionF,
     UserSettingGroup group,
     Func <TSettings, double> loadF,
     Action <TSettings, double> applyF,
     Func <double, ValidationResult> validateF = null) : base(nameF, descriptionF, group, loadF, applyF, validateF)
 {
 }
Beispiel #3
0
 /// <param name="tupleF">Tuples of (enum value, name, description), in that order.</param>
 public UserSettingEnum(
     Func <string> nameF,
     Func <string> descriptionF,
     UserSettingGroup group,
     Func <TSettings, string> loadF,
     Action <TSettings, string> applyF,
     Func <IList <Tuple <int, string, string> > > tupleF = null) : base(nameF, descriptionF, group, loadF, applyF, UserSettingEnumValidations.ValidateContains(tupleF, ValidationResult.Level.Error))
 {
     this.tupleF = tupleF;
 }
Beispiel #4
0
 public UserSetting(Func <string> nameF, Func <string> descriptionF = null, UserSettingGroup group = null)
 {
     NameF        = nameF;
     DescriptionF = descriptionF;
     Group        = group;
 }