Make Add() + Remove() virtual

This commit is contained in:
smoogipoo 2020-11-12 15:35:58 +09:00
parent 72a6b75626
commit 974390bda7
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ public virtual bool Remove(DrawableHitObject h)
/// Adds a <see cref="HitObjectLifetimeEntry"/> for a pooled <see cref="HitObject"/> to this <see cref="Playfield"/>.
/// </summary>
/// <param name="entry">The <see cref="HitObjectLifetimeEntry"/> controlling the lifetime of the <see cref="HitObject"/>.</param>
public void Add(HitObjectLifetimeEntry entry)
public virtual void Add(HitObjectLifetimeEntry entry)
{
HitObjectContainer.Add(entry);
lifetimeEntryMap[entry.HitObject] = entry;
@ -154,7 +154,7 @@ public void Add(HitObjectLifetimeEntry entry)
/// </summary>
/// <param name="entry">The <see cref="HitObjectLifetimeEntry"/> controlling the lifetime of the <see cref="HitObject"/>.</param>
/// <returns>Whether the <see cref="HitObject"/> was successfully removed.</returns>
public bool Remove(HitObjectLifetimeEntry entry)
public virtual bool Remove(HitObjectLifetimeEntry entry)
{
if (lifetimeEntryMap.Remove(entry.HitObject))
{