mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 14:29:36 +08:00
309eb4edd7
Also removes the other rulesets' HitObjectComposers for now.
32 lines
859 B
C#
32 lines
859 B
C#
// 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.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
namespace osu.Game.Rulesets.Edit
|
|
{
|
|
public abstract class HitObjectComposer : CompositeDrawable
|
|
{
|
|
private readonly Ruleset ruleset;
|
|
|
|
public HitObjectComposer(Ruleset ruleset)
|
|
{
|
|
this.ruleset = ruleset;
|
|
|
|
RelativeSizeAxes = Axes.Both;
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuGameBase osuGame)
|
|
{
|
|
try
|
|
{
|
|
InternalChild = ruleset.CreateRulesetContainerWith(osuGame.Beatmap.Value, true);
|
|
}
|
|
catch { }
|
|
}
|
|
}
|
|
}
|