private static void ClearTimeOverGameFuBen(DateTime now) { List <int> PkLogsRemoveList = new List <int>(); foreach (int gameID in EscapeBattle_K.ThisLoopPkLogs.Keys.ToList <int>()) { EscapeBattlePkLogData log; if (EscapeBattle_K.ThisLoopPkLogs.TryGetValue(gameID, out log)) { if (log.EndTime < now || log.State >= 7) { List <int> scoreList = new List <int>(); foreach (int zhanDuiID in log.ZhanDuiIDs) { scoreList.Add(zhanDuiID); scoreList.Add(int.MinValue); } try { EscapeBattle_K.GameResult(gameID, scoreList); } catch (Exception ex) { LogManager.WriteException(ex.ToString()); PkLogsRemoveList.Add(log.GameID); } } } } foreach (int gameid in PkLogsRemoveList) { EscapeBattlePkLogData log; if (EscapeBattle_K.ThisLoopPkLogs.TryGetValue(gameid, out log)) { EscapeBattle_K.ThisLoopPkLogs.Remove(gameid); ClientAgentManager.Instance().RemoveKfFuben(EscapeBattle_K.GameType, log.ToServerID, (long)log.GameID); } } }
public static int _M3(int gameId, List <int> zhanDuiScoreList) { return(EscapeBattle_K.GameResult(gameId, zhanDuiScoreList)); }