コード例 #1
0
ファイル: RankingClear.cs プロジェクト: dannisliang/scutlogic
 public static RankingClear Instance()
 {
     if (null == instance)
     {
         instance = new RankingClear();
         instance.init();
     }
     return(instance);
 }
コード例 #2
0
ファイル: RankingClear.cs プロジェクト: guccang/scutlogic
 public static RankingClear Instance()
 {
     if (null == instance)
     {
         instance = new RankingClear();
         instance.init();
     }
     return instance;
 }
コード例 #3
0
        protected override void OnStartAffer()
        {
            new ShareCacheStruct <UserRanking>();
            new ShareCacheStruct <HistoryUserRanking>();
            new ShareCacheStruct <ExchangeCode>();
            new ShareCacheStruct <UserRankingTotal>();

            NewGameConfig.Singleton().CreateDBTable();
            happyMapInit();
            List <GameRanking.Pack.ConfigData> LST_d = new List <GameRanking.Pack.ConfigData>();

            NewGameConfig.Singleton().getActivityDate(LST_d, "1.08");

            GameConfigMgr.Instance().Start();

            RankingFactorNew.Singleton().add <UserRanking>(typeof(RankingScore).ToString(), new RankingScore());
            RankingFactorNew.Singleton().add <UserRankingTotal>(typeof(RankingTotal).ToString(), new RankingTotal());
            bool openDebug = GameConfigMgr.Instance().getInt("timer_open_debug", 0) == 1;

            if (openDebug)
            {
                string str = GameConfigMgr.Instance().getString("timer_user_ranking", "10000,20000");
                RankingFactorNew.Singleton().Start <UserRanking>(typeof(RankingScore).ToString(), sortMethod.sortType.Interval, str);
                RankingFactorNew.Singleton().Start <UserRankingTotal>(typeof(RankingTotal).ToString(), sortMethod.sortType.Interval, str);
            }
            else
            {
                string strTiming = GameConfigMgr.Instance().getString("timer_user_ranking_timming", "00:00");
                RankingFactorNew.Singleton().Start <UserRanking>(typeof(RankingScore).ToString(), sortMethod.sortType.Timing, strTiming);
                RankingFactorNew.Singleton().Start <UserRankingTotal>(typeof(RankingTotal).ToString(), sortMethod.sortType.Timing, strTiming);
                ConsoleLog.showNotifyInfo("timer_user_ranking_timming begin:" + strTiming);
            }

            RankingClear.Instance().Start();
            RealItemCntUpdate.Instance().Start();
        }
コード例 #4
0
ファイル: RankingClear.cs プロジェクト: dannisliang/scutlogic
 private static void DoEveryWeekExecute(PlanConfig planconfig)
 {
     RankingClear.Instance().doIt();
 }