private static void MS_PkLoopEnd_Update(DateTime now) { ZhanDuiZhengBaMatchConfig matchConfig = ZhanDuiZhengBa_K._Config.MatchConfigList.Find((ZhanDuiZhengBaMatchConfig _m) => _m.ID == ZhanDuiZhengBa_K.SyncData.RealActID); if (now.TimeOfDay.Ticks >= matchConfig.DayBeginTick + 10000000L * (long)(matchConfig.WaitSeconds + matchConfig.FightSeconds + matchConfig.ClearSeconds)) { foreach (ZhanDuiZhengBaPkLogData kvp in ZhanDuiZhengBa_K.ThisLoopPkLogs.Values.ToList <ZhanDuiZhengBaPkLogData>()) { ZhanDuiZhengBa_K.ZhengBaPkResult((int)kvp.GameID, kvp.BetterZhanDuiID); } ZhanDuiZhengBa_K.ThisLoopPkLogs.Clear(); foreach (ZhanDuiZhengBa_K.JoinRolePkData role in ZhanDuiZhengBa_K.TodayJoinRoleDatas) { if (role.CurrGameID > 0 || role.ToServerID > 0) { ClientAgentManager.Instance().RemoveKfFuben(ZhanDuiZhengBa_K.GameType, role.ToServerID, (long)role.CurrGameID); } role.ToServerID = 0; role.CurrGameID = 0; } ZhanDuiZhengBa_K.StateMachine.SetCurrState(3, now); } }
public static int _M19(int zhanDuiID, out int gameId, out int kuaFuServerID, out string[] ips, out int[] ports) { return(ZhanDuiZhengBa_K.ZhengBaRequestEnter(zhanDuiID, out gameId, out kuaFuServerID, out ips, out ports)); }
public static List <ZhanDuiZhengBaNtfPkResultData> _M18(int gameId, int winner1) { return(ZhanDuiZhengBa_K.ZhengBaPkResult(gameId, winner1)); }
public static int _M17(AutoCSer.Net.TcpInternalServer.ServerSocketSender _sender_, int zhanDuiID, int gameId, int srcServerID, out ZhanDuiZhengBaFuBenData copyData) { return(ZhanDuiZhengBa_K.ZhengBaKuaFuLogin(_sender_, zhanDuiID, gameId, srcServerID, out copyData)); }
public static ZhanDuiZhengBaSyncData _M16(ZhanDuiZhengBaSyncData lastSyncData) { return(ZhanDuiZhengBa_K.SyncZhengBaData(lastSyncData)); }
private static void MS_TodayPkEnd_Enter(DateTime now) { ZhanDuiZhengBa_K.FixSyncData(now); }