Пример #1
0
        internal static SongSection[] Parse(Sng2014HSL.SectionSection sectionSection)
        {
            var songSections = new SongSection[sectionSection.Count];

            for (int i = 0; i < sectionSection.Count; i++)
            {
                var songSection = new SongSection();
                songSection.Name      = sectionSection.Sections[i].Name.ToNullTerminatedAscii();
                songSection.Number    = sectionSection.Sections[i].Number;
                songSection.StartTime = sectionSection.Sections[i].StartTime;
                songSections[i]       = songSection;
            }
            return(songSections);
        }
Пример #2
0
        internal static SongSection[] Parse(List <DLCPackage.Manifest.Section> manifestSectionList)
        {
            var songSections = new SongSection[manifestSectionList.Count];

            for (int i = 0; i < manifestSectionList.Count; i++)
            {
                var songSection = new SongSection();
                songSection.Name      = manifestSectionList[i].Name;
                songSection.Number    = manifestSectionList[i].Number;
                songSection.StartTime = manifestSectionList[i].StartTime;
                songSections[i]       = songSection;
            }
            return(songSections);
        }