Beispiel #1
0
        public static List <string> Colours(BeatmapColoursSection section)
        {
            if (section.ComboColours.Count == 0 && section.SliderTrackOverride == default && section.SliderBorder == default)
            {
                return(new List <string>());
            }

            var list = WriteHelper.BaseListFormat("Colours");

            if (section.ComboColours != null)
            {
                for (int i = 0; i < section.ComboColours.Count; i++)
                {
                    list.Add($"Combo{i + 1} : {WriteHelper.Colour(section.ComboColours[i])}");
                }
            }

            if (section.SliderTrackOverride != default)
            {
                list.Add($"SliderTrackOverride : {WriteHelper.Colour(section.SliderTrackOverride)}");
            }

            if (section.SliderBorder != default)
            {
                list.Add($"SliderBorder : {WriteHelper.Colour(section.SliderBorder)}");
            }

            return(list);
        }
Beispiel #2
0
 public Beatmap()
 {
     GeneralSection    = new BeatmapGeneralSection();
     EditorSection     = new BeatmapEditorSection();
     MetadataSection   = new BeatmapMetadataSection();
     DifficultySection = new BeatmapDifficultySection();
     EventsSection     = new BeatmapEventsSection();
     ColoursSection    = new BeatmapColoursSection();
 }