public FloatPrefs(FloatPrefsTO source) : base(source.name) { this.values = new List <FloatCondition>(); foreach (var item in source.values) { this.values.Add(new FloatCondition(item)); } }
public FloatPrefsTO GetTO() { var result = new FloatPrefsTO(); result.name = this.name; result.values = new List<FloatConditionTO>(); foreach (var item in this.values) result.values.Add(item.GetTO()); return result; }