Exemplo n.º 1
0
 public static SongDisplayPackage FillCustomData(SongDisplayPackage songd, string songID)
 {
     if (SongDataLoader.AllSongData.ContainsKey(songID))
     {
         SongDataLoader.SongData currentSong = SongDataLoader.AllSongData[songID];
         if (currentSong.HasCustomData())
         {
             if (currentSong.SongHasCustomDataKey("customEasyTags"))
             {
                 songd.customEasyTags = currentSong.GetCustomData <List <string> >("customEasyTags");
             }
             if (currentSong.SongHasCustomDataKey("customStandardTags"))
             {
                 songd.customStandardTags = currentSong.GetCustomData <List <string> >("customStandardTags");
             }
             if (currentSong.SongHasCustomDataKey("customAdvancedTags"))
             {
                 songd.customAdvancedTags = currentSong.GetCustomData <List <string> >("customAdvancedTags");
             }
             if (currentSong.SongHasCustomDataKey("customExpertTags"))
             {
                 songd.customExpertTags = currentSong.GetCustomData <List <string> >("customExpertTags");
             }
         }
     }
     return(songd);
 }
Exemplo n.º 2
0
    //could be used for other info in the future
    public static List <string> CreateDisplayStringAdditions(SongDataLoader.SongData currentSong, string tagtofind)
    {
        if (currentSong.HasCustomData())
        {
            //if adding 360 tags
            if (tagtofind == "customExpertTags" || tagtofind == "customEasyTags" || tagtofind == "customStandardTags" || tagtofind == "customAdvancedTags")
            {
                if (currentSong.SongHasCustomDataKey(tagtofind))
                {
                    List <string> customTags = currentSong.GetCustomData <List <string> >(tagtofind);


                    return(customTags);
                }
            }

            //TODO: could do more tags here
        }

        return(new List <string>());
    }