public ScoreDatabase(Storage storage, IIpcHost importHost = null, BeatmapDatabase beatmaps = null) { this.storage = storage; this.beatmaps = beatmaps; if (importHost != null) { ipc = new ScoreIPCChannel(importHost, this); } }
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); } }
public DatabaseWorkingBeatmap(BeatmapDatabase database, BeatmapInfo beatmapInfo, BeatmapSetInfo beatmapSetInfo, bool withStoryboard = false) : base(beatmapInfo, beatmapSetInfo, withStoryboard) { this.database = database; }
public DatabaseWorkingBeatmap(BeatmapDatabase database, BeatmapInfo beatmapInfo, bool fullyLoaded = false) : base(beatmapInfo, fullyLoaded) { this.database = database; }
internal void ComputeDifficulty(BeatmapDatabase database) { WorkingBeatmap wb = new WorkingBeatmap(this, BeatmapSet, database); StarDifficulty = (float)Ruleset.GetRuleset(Mode).CreateDifficultyCalculator(wb.Beatmap).GetDifficulty(); }
public DatabaseWorkingBeatmap(BeatmapDatabase database, BeatmapInfo beatmapInfo) : base(beatmapInfo) { this.database = database; }