コード例 #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);
            }
        }
コード例 #2
0
ファイル: ScoreDatabase.cs プロジェクト: popo930219/osu-RP
        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);
            }
        }
コード例 #3
0
 public DatabaseWorkingBeatmap(BeatmapDatabase database, BeatmapInfo beatmapInfo, BeatmapSetInfo beatmapSetInfo, bool withStoryboard = false)
     : base(beatmapInfo, beatmapSetInfo, withStoryboard)
 {
     this.database = database;
 }
コード例 #4
0
ファイル: DatabaseWorkingBeatmap.cs プロジェクト: mist9/osu
 public DatabaseWorkingBeatmap(BeatmapDatabase database, BeatmapInfo beatmapInfo, bool fullyLoaded = false)
     : base(beatmapInfo, fullyLoaded)
 {
     this.database = database;
 }
コード例 #5
0
ファイル: BeatmapInfo.cs プロジェクト: PizzaLovers007/osu
        internal void ComputeDifficulty(BeatmapDatabase database)
        {
            WorkingBeatmap wb = new WorkingBeatmap(this, BeatmapSet, database);

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