Exemple #1
0
        private static Progress[] GetAllProgressFiles(Game.Game game)
        {
            var network = game.Network;
            var results = new List <Progress>();

            foreach (var fileName in network.LocalUser.RemoteSaveStore.ListFiles(""))
            {
                if (AssetPath.GetExtension(fileName) == "txt" &&
                    AssetPath.GetFileNameWithoutExtension(fileName).StartsWith("progress_", StringComparison.InvariantCulture))
                {
                    App.Log("Found progress file: {0}", fileName);
                    results.Add(new Progress(network, fileName));
                }
            }
            return(results.ToArray());
        }