Better hit object defaults setting.

This commit is contained in:
smoogipooo
2017-03-16 16:55:08 +09:00
parent 296a3cd1e9
commit 0c47638820
8 changed files with 69 additions and 34 deletions

View File

@ -22,5 +22,11 @@ namespace osu.Game.Modes.Objects
/// The sample to be played when this HitObject is hit.
/// </summary>
public HitSampleInfo Sample { get; set; }
/// <summary>
/// Applies default values to this HitObject.
/// </summary>
/// <param name="defaults">The default values to apply.</param>
public virtual void ApplyDefaults(HitObjectDefaults defaults) { }
}
}

View File

@ -0,0 +1,25 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.Timing;
using osu.Game.Database;
namespace osu.Game.Modes.Objects
{
/// <summary>
/// A set of default Beatmap values for HitObjects to consume.
/// </summary>
public class HitObjectDefaults
{
/// <summary>
/// The Beatmap timing.
/// </summary>
public TimingInfo Timing;
/// <summary>
/// The Beatmap difficulty.
/// </summary>
public BaseDifficulty Difficulty;
}
}