mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08:00
21 lines
747 B
C#
21 lines
747 B
C#
// 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
|
|
{
|
|
public partial class ClickMarkerContainer : PooledDrawableWithLifetimeContainer<AnalysisFrameEntry, AnalysisMarker>
|
|
{
|
|
private readonly DrawablePool<ClickMarker> clickMarkerPool;
|
|
|
|
public ClickMarkerContainer()
|
|
{
|
|
AddInternal(clickMarkerPool = new DrawablePool<ClickMarker>(30));
|
|
}
|
|
|
|
protected override AnalysisMarker GetDrawable(AnalysisFrameEntry entry) => clickMarkerPool.Get(d => d.Apply(entry));
|
|
}
|
|
}
|