private static void InitRanking() { int timeOut = 3000; RankingFactory.Add(new SinglePvpRanking()); RankingFactory.Start(timeOut); }
public static void InitRanking() { int timeOut = 3000; RankingFactory.Add(new SinglePvpRanking()); RankingFactory.Add(new PlayerMightRanking()); RankingFactory.Start(timeOut); }
/// <summary> /// 排行榜加载 /// </summary> private static void InitRanking() { int timeOut = ConfigUtils.GetSetting("Ranking.timeout", "3600").ToInt(); RankingFactory.Add(new BeansRanking()); RankingFactory.Add(new WinRanking()); RankingFactory.Start(timeOut); }
private static void InitRanking() { int timeOut = ConfigUtils.GetSetting("Ranking.timeout", "3600").ToInt(); //RankingFactory.Add(new CombatNumRanking()); //RankingFactory.Add(new GameCoinRanking()); //RankingFactory.Add(new ObtainRanking()); RankingFactory.Add(new UserLvRanking()); RankingFactory.Add(new CombatRanking()); RankingFactory.Add(new ShengJiTaRanking()); //圣吉塔排行 //int intervalTimes = ConfigEnvSet.GetInt("Rank.SJT") / 3600; //RankingFactory.Add(new ShengJiTaRanking(intervalTimes)); RankingFactory.Start(timeOut); }
private static void InitRanking() { int timeOut = ConfigUtils.GetSetting("Ranking.timeout", "60").ToInt(); RankingFactory.Add(new CombatRanking()); RankingFactory.Add(new LevelRanking()); RankingFactory.Add(new FightValueRanking()); RankingFactory.Add(new ComboRanking()); RankingFactory.Add(new GuildRanking()); RankingFactory.Start(timeOut); // 设置通天塔排行不刷新 Ranking <UserRank> combatRanking = RankingFactory.Get <UserRank>(CombatRanking.RankingKey); combatRanking.SetIntervalTimes(int.MaxValue); // 设置公会排行不刷新 Ranking <GuildRank> guildRanking = RankingFactory.Get <GuildRank>(GuildRanking.RankingKey); guildRanking.SetIntervalTimes(int.MaxValue); }
protected override void OnStartAffer() { TimeListener.Append(PlanConfig.EveryMinutePlan(MsgDispatcher.Dispatcher, "Dispatcher", "00:00", "23:59", 1)); TimeListener.Append(PlanConfig.EveryMinutePlan(DoEveryDayRefreshDataTask, "EveryDayRefreshDataTask", "00:00", "23:59", 600)); //TimeListener.Append(PlanConfig.EveryDayPlan(DoEveryDayRefreshDataTask, "EveryDayRefreshDataTask", "03:10")); ServerSet.LoadServerConfig(); RankingFactory.Add(new LevelRanking()); //RankingFactory.Add(new GuildRanking()); RankingFactory.Start(60); // 设置竞技场排行不刷新 Ranking <UserRank> levelRanking = RankingFactory.Get <UserRank>(LevelRanking.RankingKey); levelRanking.SetIntervalTimes(int.MaxValue); //// 设置公会排行不刷新 //Ranking<GuildRank> guildRanking = RankingFactory.Get<GuildRank>(GuildRanking.RankingKey); //guildRanking.SetIntervalTimes(int.MaxValue); LevelRankingAllServerSet.LoadServerRanking(); }