示例#1
0
 public static DamageData Scale(DamageData value, Single factor)
 {
     Scale(ref value, factor, out value);
     return(value);
 }
示例#2
0
 public static void Scale(ref DamageData value, Single factor, out DamageData result)
 {
     result = new DamageData(value.Type, (Int32)(value.Minimum * factor + 0.5f), (Int32)(value.Maximum * factor + 0.5f));
 }
示例#3
0
 public static DamageData Add(DamageData left, DamageData right)
 {
     Add(ref left, ref right, out left);
     return(left);
 }