Пример #1
0
        public CopyStats CopyData()
        {
            var copyStats = new LocalLeaderboardsCopyStats();
            int statCount = LeaderboardsData.Count;

            for (int i = 0; i < statCount; i++)
            {
                var clones = LeaderboardsData[i].Copy();
                foreach (var s in clones)
                {
                    if (!LeaderboardsData.Contains(s))
                    {
                        copyStats.CopiedLeaderboards++;
                        LeaderboardsData.Add(s);
                    }
                    else
                    {
#if DEBUG
                        Console.WriteLine($"Already contains leaderboard: {s}");
#endif
                    }
                }
            }
            return(copyStats);
        }
Пример #2
0
 public void ClearLeaderboards()
 {
     LeaderboardsData.ClearLeaderboards();
 }
Пример #3
0
 public List <Team> GetLeaderboards()
 {
     return(LeaderboardsData.GetLeaderboards());
 }