Beispiel #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);
 }
Beispiel #2
0
    private static fillData fillAdditions(string songID, fillData d)
    {
        SongDataLoader.SongData currentSong = SongDataLoader.AllSongData[songID];
        d.easyAdditions     = CreateDisplayStringAdditions(currentSong, "customEasyTags");
        d.advancedAdditions = CreateDisplayStringAdditions(currentSong, "customAdvancedTags");
        d.standardAdditions = CreateDisplayStringAdditions(currentSong, "customStandardTags");
        d.expertAdditions   = CreateDisplayStringAdditions(currentSong, "customExpertTags");

        return(d);
    }
Beispiel #3
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>());
    }