Example #1
0
        public static SongPhrase[] Parse(Sng2014HSL.PhraseSection sngPhraseSection)
        {
            var phrases = new SongPhrase[sngPhraseSection.Count];

            for (int i = 0; i < sngPhraseSection.Count; i++)
            {
                phrases[i] = new SongPhrase
                {
                    Disparity     = sngPhraseSection.Phrases[i].Disparity,
                    Ignore        = sngPhraseSection.Phrases[i].Ignore,
                    MaxDifficulty = sngPhraseSection.Phrases[i].MaxDifficulty,
                    Name          = sngPhraseSection.Phrases[i].Name.ToNullTerminatedAscii(),
                    Solo          = sngPhraseSection.Phrases[i].Solo
                };
            }
            return(phrases);
        }
Example #2
0
        internal static SongPhrase[] Parse(List <DLCPackage.Manifest.Phrase> phraseList)
        {
            var phrases = new SongPhrase[phraseList.Count];

            for (int i = 0; i < phraseList.Count; i++)
            {
                phrases[i] = new SongPhrase
                {
                    //Disparity = 0;
                    //Ignore = 0;
                    MaxDifficulty = phraseList[i].MaxDifficulty,
                    Name          = phraseList[i].Name,
                    Solo          = (byte)(phraseList[i].Name.ToLower().Contains("solo") ? 1 : 0)
                };
            }
            return(phrases);
        }