Exemplo n.º 1
0
 public static SongData.Song LoadSongPath(string wholepath)
 {
     var fileContent = File.ReadAllText(wholepath);
     var songJson = JObject.Parse(fileContent);
     var song = new SongData.Song();
     song.JsonLoad(songJson);
     return song;
 }
Exemplo n.º 2
0
 public static SongData.Song LoadSong(String filename)
 {
     string path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);
     var fileContent = File.ReadAllText(path +"/DanceDanceAssassination/Steps/"+filename);
     var songJson = JObject.Parse(fileContent);
     var song = new SongData.Song();
     song.JsonLoad(songJson);
     return song;
 }