private static double GetPPD(TimeSpan frameTime, Protein protein, bool calculateUnitTimeByFrameTime)
 {
     if (calculateUnitTimeByFrameTime)
     {
         var unitTime = TimeSpan.FromSeconds(frameTime.TotalSeconds * protein.Frames);
         return(protein.GetBonusPPD(frameTime, unitTime));
     }
     return(protein.GetPPD(frameTime));
 }
示例#2
0
 protected static double GetPPD(Protein protein, TimeSpan frameTime, bool calculateBonus)
 {
     if (calculateBonus)
     {
         var unitTime = TimeSpan.FromSeconds(frameTime.TotalSeconds * protein.Frames);
         return(protein.GetBonusPPD(frameTime, unitTime));
     }
     return(protein.GetPPD(frameTime));
 }