コード例 #1
0
 bool isValidStunTimer(string busterID)
 {
     if (StunEvents.Exists(s => s.BusterID == busterID))
     {
         int latestRound = StunEvents.Where(s => s.BusterID == busterID).OrderByDescending(s => s.Round).First().Round;
         if ((Round - latestRound) < LimBustStunTimer)
         {
             return(false);
         }
     }
     return(true);
 }
コード例 #2
0
 bool isValidStunTimer(string busterID)
 {
     if (StunEvents.Exists(s => s.BusterID == busterID))
     {
         int latestRound = StunEvents.Where(s => s.BusterID == busterID).OrderByDescending(s => s.Round).First().Round;
         if ((Round - latestRound) < LimBustStunTimer)
         {
             return(false);
         }
     }
     Console.Error.WriteLine("StunEvents Dump");
     foreach (StunEvent e in StunEvents)
     {
         Console.Error.WriteLine("" + e.Round + " " + e.BusterID + " " + e.StunnedBusterID);
     }
     return(true);
 }