//设置前一周的记录 public static async void SetFRankData(this RankDataComponent component) { fRankDataList.Clear(); fGameRankList.Clear(); fRankDataList.AddRange(rankDataList); fGameRankList.AddRange(gameRankList); Log.Info("==============================================================rankDataList\r\n" + JsonHelper.ToJson(rankDataList) + "\r\n========================================================="); Log.Info("==============================================================gameRankList\r\n" + JsonHelper.ToJson(gameRankList) + "\r\n========================================================="); //结算后数据清零 DBProxyComponent proxyComponent = Game.Scene.GetComponent <DBProxyComponent>(); await proxyComponent.DeleteAll <Log_Rank>(); await proxyComponent.DeleteAll <WeekRank>(); rankDataList.Clear(); gameRankList.Clear(); }
public static void Awake(this RankDataComponent component) { InitGlobalTimer(); InitWealthRankInfo(); InitGameRankInfo(); }
public static List <GameRank> GetFGameRankData(this RankDataComponent component) { return(fGameRankList); }
public static List <WealthRank> GetFWealthRankData(this RankDataComponent component) { return(fRankDataList); }
public static void SetGameRankData(this RankDataComponent component, List <GameRank> gmRankList) { gameRankList = gmRankList; }
public static void SetWealthRankData(this RankDataComponent component, List <WealthRank> rankList) { rankDataList = rankList; }