Esempio n. 1
0
 public Beatmap()
 {
     GeneralSection    = new BeatmapGeneralSection();
     EditorSection     = new BeatmapEditorSection();
     MetadataSection   = new BeatmapMetadataSection();
     DifficultySection = new BeatmapDifficultySection();
     EventsSection     = new BeatmapEventsSection();
     ColoursSection    = new BeatmapColoursSection();
 }
Esempio n. 2
0
        public static List <string> GeneralSection(BeatmapGeneralSection section)
        {
            var list = WriteHelper.BaseListFormat("General");

            list.AddRange(new List <string>
            {
                "AudioFilename: " + section.AudioFilename,
                "AudioLeadIn: " + section.AudioLeadIn,
                "PreviewTime: " + section.PreviewTime,
                "Countdown: " + section.Countdown.ToInt32(),
                "SampleSet: " + section.SampleSet,
                "StackLeniency: " + section.StackLeniency.Format(),
                "Mode: " + (int)section.Mode,
                "LetterboxInBreaks: " + section.LetterboxInBreaks.ToInt32()
            });

            if (section.StoryFireInFront)
            {
                list.Add("StoryFireInFront: " + section.StoryFireInFront.ToInt32());
            }
            if (section.UseSkinSprites)
            {
                list.Add("UseSkinSprites: " + section.UseSkinSprites.ToInt32());
            }
            if (section.EpilepsyWarning)
            {
                list.Add("EpilepsyWarning: " + section.EpilepsyWarning.ToInt32());
            }
            if (section.Mode == Enums.Ruleset.Mania)
            {
                list.Add("SpecialStyle: " + section.SpecialStyle.ToInt32());
            }

            list.Add("WidescreenStoryboard: " + section.WidescreenStoryboard.ToInt32());

            return(list);
        }