mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:17:51 +08:00
Cache Playfield
for the sake of tests
I'm open to an alternative. Name it.
This commit is contained in:
parent
8f6b06fe40
commit
8f61f5e4c6
@ -25,9 +25,9 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
private TaikoAction? lastAction;
|
private TaikoAction? lastAction;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(DrawableRuleset drawableRuleset)
|
private void load(Playfield playfield)
|
||||||
{
|
{
|
||||||
var hitObjectContainer = drawableRuleset.Playfield.HitObjectContainer;
|
var hitObjectContainer = playfield.HitObjectContainer;
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
leftCentreTrigger = CreateTriggerSource(hitObjectContainer, SampleBalance.Left),
|
leftCentreTrigger = CreateTriggerSource(hitObjectContainer, SampleBalance.Left),
|
||||||
|
@ -28,6 +28,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
{
|
{
|
||||||
[Cached(typeof(IPooledHitObjectProvider))]
|
[Cached(typeof(IPooledHitObjectProvider))]
|
||||||
[Cached(typeof(IPooledSampleProvider))]
|
[Cached(typeof(IPooledSampleProvider))]
|
||||||
|
[Cached]
|
||||||
public abstract partial class Playfield : CompositeDrawable, IPooledHitObjectProvider, IPooledSampleProvider
|
public abstract partial class Playfield : CompositeDrawable, IPooledHitObjectProvider, IPooledSampleProvider
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user