public override async Task Load()
        {
            await base.Load();

            if (_playDataPath == null)
            {
                return;
            }
            IFolder rootFolder = FileSystem.Current.LocalStorage;

            var folder = await rootFolder.CreateFolderAsync("PlayData", CreationCollisionOption.OpenIfExists);

            var file = await folder.GetFileAsync(_playDataPath);


            string json = await file.ReadAllTextAsync();

            json = Encode.Deflate.Decode(json);

            _playData = Newtonsoft.Json.JsonConvert.DeserializeObject <PlayData>(json);
        }
Exemple #2
0
 public RankingAssetsLoader(PlayData playData = null)
     : base(new RankingAssets())
 {
     _playData = playData;
 }