public void FetchSavedGames(Action <UM_SavedGamesMetadataResult> callback) { var client = AN_Games.GetSnapshotsClient(); client.Load((result) => { UM_SavedGamesMetadataResult loadResult; if (result.IsSucceeded) { loadResult = new UM_SavedGamesMetadataResult(); foreach (var meta in result.Snapshots) { var an_meta = new UM_AndroidSavedGameMetadata(meta); loadResult.AddMetadata(an_meta); } } else { loadResult = new UM_SavedGamesMetadataResult(result.Error); } callback.Invoke(loadResult); }); }
public void Delete(UM_iSavedGameMetadata game, Action <SA_Result> callback) { UM_AndroidSavedGameMetadata an_meta = (UM_AndroidSavedGameMetadata)game; var client = AN_Games.GetSnapshotsClient(); client.Delete(an_meta.NativeMeta, (result) => { callback.Invoke(result); }); }