1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 21:57:25 +08:00
osu-lazer/osu.Game.Rulesets.Osu/UI/ReplayAnalysis/ClickMarkerContainer.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
747 B
C#
Raw Normal View History

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics.Pooling;
using osu.Game.Rulesets.Objects.Pooling;
namespace osu.Game.Rulesets.Osu.UI.ReplayAnalysis
{
2024-09-05 13:28:20 +08:00
public partial class ClickMarkerContainer : PooledDrawableWithLifetimeContainer<AnalysisFrameEntry, AnalysisMarker>
{
2024-09-05 13:28:20 +08:00
private readonly DrawablePool<ClickMarker> clickMarkerPool;
2024-09-04 19:17:22 +08:00
public ClickMarkerContainer()
{
2024-09-05 13:28:20 +08:00
AddInternal(clickMarkerPool = new DrawablePool<ClickMarker>(30));
}
2024-09-05 13:28:20 +08:00
protected override AnalysisMarker GetDrawable(AnalysisFrameEntry entry) => clickMarkerPool.Get(d => d.Apply(entry));
}
}