private static bool ProcessBiaoCheOverTime(SocketListener sl, TCPOutPacketPool pool, long nowTicks, BiaoCheItem biaoCheItem) { bool result; if (nowTicks - biaoCheItem.StartTime < (long)Global.MaxYaBiaoTicks) { result = false; } else { BiaoCheManager.ProcessDelBiaoChe(sl, pool, biaoCheItem.BiaoCheID); result = true; } return(result); }
private static bool ProcessBiaoCheDead(SocketListener sl, TCPOutPacketPool pool, long nowTicks, BiaoCheItem biaoCheItem) { bool result; if (biaoCheItem.CurrentLifeV > 0) { result = false; } else { long subTicks = nowTicks - biaoCheItem.BiaoCheDeadTicks; if (subTicks < 2000L) { result = false; } else { BiaoCheManager.ProcessDelBiaoChe(sl, pool, biaoCheItem.BiaoCheID); result = true; } } return(result); }