1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 05:22:54 +08:00

Cache Playfield for the sake of tests

I'm open to an alternative. Name it.
This commit is contained in:
Dean Herbert 2023-07-05 18:41:32 +09:00
parent 8f6b06fe40
commit 8f61f5e4c6
2 changed files with 3 additions and 2 deletions

View File

@ -25,9 +25,9 @@ namespace osu.Game.Rulesets.Taiko.UI
private TaikoAction? lastAction;
[BackgroundDependencyLoader]
private void load(DrawableRuleset drawableRuleset)
private void load(Playfield playfield)
{
var hitObjectContainer = drawableRuleset.Playfield.HitObjectContainer;
var hitObjectContainer = playfield.HitObjectContainer;
InternalChildren = new Drawable[]
{
leftCentreTrigger = CreateTriggerSource(hitObjectContainer, SampleBalance.Left),

View File

@ -28,6 +28,7 @@ namespace osu.Game.Rulesets.UI
{
[Cached(typeof(IPooledHitObjectProvider))]
[Cached(typeof(IPooledSampleProvider))]
[Cached]
public abstract partial class Playfield : CompositeDrawable, IPooledHitObjectProvider, IPooledSampleProvider
{
/// <summary>