public static int GetInc(this AosAttribute attr) { if (!AttrFactors.ContainsKey(attr)) { AttrFactors.Add(attr, new AttributeFactors()); } return(AttrFactors[attr].Inc); }
public static double GetWeight(this AosAttribute attr) { if (!AttrFactors.ContainsKey(attr)) { AttrFactors.Add(attr, new AttributeFactors()); } return(AttrFactors[attr].Weight); }
public static void SetInc(this AosAttribute attr, int inc) { if (!AttrFactors.ContainsKey(attr)) { AttrFactors.Add( attr, new AttributeFactors { Inc = inc }); } else { AttrFactors[attr].Inc = inc; } }
public static void SetMax(this AosAttribute attr, int max) { if (!AttrFactors.ContainsKey(attr)) { AttrFactors.Add( attr, new AttributeFactors { Max = max }); } else { AttrFactors[attr].Max = max; } }
public static void SetMin(this AosAttribute attr, int min) { if (!AttrFactors.ContainsKey(attr)) { AttrFactors.Add( attr, new AttributeFactors { Min = min }); } else { AttrFactors[attr].Min = min; } }
public static void SetWeight(this AosAttribute attr, double weight) { if (!AttrFactors.ContainsKey(attr)) { AttrFactors.Add( attr, new AttributeFactors { Weight = weight }); } else { AttrFactors[attr].Weight = weight; } }