diff --git a/osu.Game/Rulesets/Objects/Pooling/PooledDrawableWithLifetimeContainer.cs b/osu.Game/Rulesets/Objects/Pooling/PooledDrawableWithLifetimeContainer.cs
index 1b0176cae5..1ebdf48ae8 100644
--- a/osu.Game/Rulesets/Objects/Pooling/PooledDrawableWithLifetimeContainer.cs
+++ b/osu.Game/Rulesets/Objects/Pooling/PooledDrawableWithLifetimeContainer.cs
@@ -35,7 +35,7 @@ namespace osu.Game.Rulesets.Objects.Pooling
///
/// The enumeration order is undefined.
///
- public IEnumerable<(TEntry Entry, TDrawable Drawable)> AliveEntries => aliveDrawableMap.Select(x => (x.Key, x.Value));
+ public IEnumerable<(TEntry Entry, TDrawable Drawable)> AliveEntries => AliveDrawableMap.Select(x => (x.Key, x.Value));
///
/// Whether to remove an entry when clock goes backward and crossed its .
@@ -53,7 +53,7 @@ namespace osu.Game.Rulesets.Objects.Pooling
///
internal double FutureLifetimeExtension { get; set; }
- private readonly Dictionary aliveDrawableMap = new Dictionary();
+ public readonly Dictionary AliveDrawableMap = new Dictionary();
private readonly HashSet allEntries = new HashSet();
private readonly LifetimeEntryManager lifetimeManager = new LifetimeEntryManager();
@@ -101,10 +101,10 @@ namespace osu.Game.Rulesets.Objects.Pooling
private void entryBecameAlive(LifetimeEntry lifetimeEntry)
{
var entry = (TEntry)lifetimeEntry;
- Debug.Assert(!aliveDrawableMap.ContainsKey(entry));
+ Debug.Assert(!AliveDrawableMap.ContainsKey(entry));
TDrawable drawable = GetDrawable(entry);
- aliveDrawableMap[entry] = drawable;
+ AliveDrawableMap[entry] = drawable;
AddDrawable(entry, drawable);
}
@@ -119,10 +119,10 @@ namespace osu.Game.Rulesets.Objects.Pooling
private void entryBecameDead(LifetimeEntry lifetimeEntry)
{
var entry = (TEntry)lifetimeEntry;
- Debug.Assert(aliveDrawableMap.ContainsKey(entry));
+ Debug.Assert(AliveDrawableMap.ContainsKey(entry));
- TDrawable drawable = aliveDrawableMap[entry];
- aliveDrawableMap.Remove(entry);
+ TDrawable drawable = AliveDrawableMap[entry];
+ AliveDrawableMap.Remove(entry);
RemoveDrawable(entry, drawable);
}
@@ -148,7 +148,7 @@ namespace osu.Game.Rulesets.Objects.Pooling
foreach (var entry in Entries.ToArray())
Remove(entry);
- Debug.Assert(aliveDrawableMap.Count == 0);
+ Debug.Assert(AliveDrawableMap.Count == 0);
}
protected override bool CheckChildrenLife()