From 873ff344874d16bcf7494450ba0a7b13e5b9022c Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Thu, 18 May 2017 17:43:59 +0900 Subject: [PATCH] This function can't be used for all pattern generations. So let's not use it. --- .../Beatmaps/Patterns/PatternGenerator.cs | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/osu.Game.Rulesets.Mania/Beatmaps/Patterns/PatternGenerator.cs b/osu.Game.Rulesets.Mania/Beatmaps/Patterns/PatternGenerator.cs index 6ccd39c6ac..558d64080b 100644 --- a/osu.Game.Rulesets.Mania/Beatmaps/Patterns/PatternGenerator.cs +++ b/osu.Game.Rulesets.Mania/Beatmaps/Patterns/PatternGenerator.cs @@ -47,43 +47,5 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns /// /// The containing the hit objects. public abstract Pattern Generate(); - - /// - /// Constructs and adds a note to a pattern. - /// - /// The pattern to add to. - /// The original hit object (used for samples). - /// The column to add the note to. - /// The start time of the note. - /// The end time of the note (set to for a non-hold note). - /// The number of children alongside this note (these will not be generated, but are used for volume calculations). - protected void AddToPattern(Pattern pattern, HitObject originalObject, int column, double startTime, double endTime, int siblings = 1) - { - ManiaHitObject newObject; - - if (startTime == endTime) - { - newObject = new Note - { - StartTime = startTime, - Samples = originalObject.Samples, - Column = column - }; - } - else - { - newObject = new HoldNote - { - StartTime = startTime, - Samples = originalObject.Samples, - Column = column, - Duration = endTime - startTime - }; - } - - // Todo: Consider siblings and write sample volumes (probably at ManiaHitObject level) - - pattern.Add(newObject); - } } }