Example #1
0
        public ScoreDatabase(Storage storage, IIpcHost importHost = null, BeatmapDatabase beatmaps = null)
        {
            this.storage  = storage;
            this.beatmaps = beatmaps;

            if (importHost != null)
            {
                ipc = new ScoreIPCChannel(importHost, this);
            }
        }
Example #2
0
        public ScoreDatabase(Storage storage, SQLiteConnection connection, IIpcHost importHost = null, BeatmapDatabase beatmaps = null, RulesetDatabase rulesets = null) : base(storage, connection)
        {
            this.storage  = storage;
            this.beatmaps = beatmaps;
            this.rulesets = rulesets;

            if (importHost != null)
            {
                ipc = new ScoreIPCChannel(importHost, this);
            }
        }
Example #3
0
 public DatabaseWorkingBeatmap(BeatmapDatabase database, BeatmapInfo beatmapInfo, BeatmapSetInfo beatmapSetInfo, bool withStoryboard = false)
     : base(beatmapInfo, beatmapSetInfo, withStoryboard)
 {
     this.database = database;
 }
Example #4
0
 public DatabaseWorkingBeatmap(BeatmapDatabase database, BeatmapInfo beatmapInfo, bool fullyLoaded = false)
     : base(beatmapInfo, fullyLoaded)
 {
     this.database = database;
 }
Example #5
0
        internal void ComputeDifficulty(BeatmapDatabase database)
        {
            WorkingBeatmap wb = new WorkingBeatmap(this, BeatmapSet, database);

            StarDifficulty = (float)Ruleset.GetRuleset(Mode).CreateDifficultyCalculator(wb.Beatmap).GetDifficulty();
        }
Example #6
0
 public DatabaseWorkingBeatmap(BeatmapDatabase database, BeatmapInfo beatmapInfo)
     : base(beatmapInfo)
 {
     this.database = database;
 }