Exemplo n.º 1
0
        private BeatmapParserResult CreateResult(LineBufferedReader reader, int mode = 0)
        {
            var beatmap        = Decoder.GetDecoder <Beatmap>(reader).Decode(reader);
            var rulesetFactory = new RulesetFactory(beatmap, mode);
            var calculator     = new Calculator(rulesetFactory);
            var scoreBuilder   = new ScoreBuilderFactory().GetScoreBuilder(calculator);

            return(new BeatmapParserResult()
            {
                Ruleset = rulesetFactory.Ruleset,
                WorkingBeatmap = rulesetFactory.WorkingBeatmap,
                Calculator = calculator,
                ScoreBuilder = scoreBuilder,
            });
        }
Exemplo n.º 2
0
 public Calculator(RulesetFactory rulesetFactory)
 {
     _rulesetFactory = rulesetFactory;
 }