public static double GetThinnestArmor <T>(T armoredObject, bool spaced) where T : TankObject, IArmoredObject, IInternalArmoredObject { var values = IArmoredObjectImpl.GetArmorValues(armoredObject, spaced); if (values.Length == 0) { return(double.MaxValue); } else { return(values.Min()); } }
public double[] GetArmorValues(bool spaced) { return(IArmoredObjectImpl.GetArmorValues(this, spaced)); }