1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Rename LifetimeEntry<T> to LifetimeEntryBase<T>

This commit is contained in:
Rowe Wilson Frederisk Holme 2024-05-13 10:54:47 +08:00
parent efc8cfd470
commit 5789c3e246
6 changed files with 12 additions and 12 deletions

View File

@ -7,7 +7,7 @@ using osuTK;
namespace osu.Game.Rulesets.Catch.UI
{
public class CatcherTrailEntry : LifetimeEntry<CatcherTrailEntry>
public class CatcherTrailEntry : LifetimeEntryBase<CatcherTrailEntry>
{
public readonly CatcherAnimationState CatcherState;

View File

@ -9,7 +9,7 @@ using osuTK.Graphics;
namespace osu.Game.Rulesets.Catch.UI
{
public class HitExplosionEntry : LifetimeEntry<HitExplosionEntry>
public class HitExplosionEntry : LifetimeEntryBase<HitExplosionEntry>
{
/// <summary>
/// The judgement result that triggered this explosion.

View File

@ -12,7 +12,7 @@ using osuTK;
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
{
public class FollowPointLifetimeEntry : LifetimeEntry<FollowPointLifetimeEntry>
public class FollowPointLifetimeEntry : LifetimeEntryBase<FollowPointLifetimeEntry>
{
public event Action? Invalidated;
public readonly OsuHitObject Start;

View File

@ -12,9 +12,9 @@ using osu.Game.Rulesets.Objects.Drawables;
namespace osu.Game.Rulesets.Objects
{
/// <summary>
/// A <see cref="LifetimeEntry{T}"/> that stores the lifetime for a <see cref="HitObject"/>.
/// A <see cref="LifetimeEntryBase{T}"/> that stores the lifetime for a <see cref="HitObject"/>.
/// </summary>
public class HitObjectLifetimeEntry : LifetimeEntry<HitObjectLifetimeEntry>
public class HitObjectLifetimeEntry : LifetimeEntryBase<HitObjectLifetimeEntry>
{
/// <summary>
/// The <see cref="HitObject"/>.
@ -123,12 +123,12 @@ namespace osu.Game.Rulesets.Objects
/// </summary>
/// <remarks>
/// This is only used as an optimisation to delay the initial application of the <see cref="HitObject"/> to a <see cref="DrawableHitObject"/>.
/// A more accurate <see cref="LifetimeEntry{T}.LifetimeStart"/> should be set on the hit object application, for further optimisation.
/// A more accurate <see cref="LifetimeEntryBase{T}.LifetimeStart"/> should be set on the hit object application, for further optimisation.
/// </remarks>
protected virtual double InitialLifetimeOffset => 10000;
/// <summary>
/// Set <see cref="LifetimeEntry{T}.LifetimeStart"/> using <see cref="InitialLifetimeOffset"/>.
/// Set <see cref="LifetimeEntryBase{T}.LifetimeStart"/> using <see cref="InitialLifetimeOffset"/>.
/// </summary>
internal void SetInitialLifetime() => LifetimeStart = HitObject.StartTime - InitialLifetimeOffset;

View File

@ -13,8 +13,8 @@ namespace osu.Game.Rulesets.Objects.Pooling
/// <summary>
/// A <see cref="PoolableDrawable"/> that is controlled by <see cref="Entry"/> to implement drawable pooling and replay rewinding.
/// </summary>
/// <typeparam name="TEntry">The <see cref="LifetimeEntry{T}"/> type storing state and controlling this drawable.</typeparam>
public abstract partial class PoolableDrawableWithLifetime<TEntry> : PoolableDrawable where TEntry : LifetimeEntry<TEntry>
/// <typeparam name="TEntry">The <see cref="LifetimeEntryBase{T}"/> type storing state and controlling this drawable.</typeparam>
public abstract partial class PoolableDrawableWithLifetime<TEntry> : PoolableDrawable where TEntry : LifetimeEntryBase<TEntry>
{
private TEntry? entry;

View File

@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Objects.Pooling
/// <typeparam name="TEntry">The type of entries managed by this container.</typeparam>
/// <typeparam name="TDrawable">The type of drawables corresponding to the entries.</typeparam>
public abstract partial class PooledDrawableWithLifetimeContainer<TEntry, TDrawable> : CompositeDrawable
where TEntry : LifetimeEntry<TEntry>
where TEntry : LifetimeEntryBase<TEntry>
where TDrawable : Drawable
{
/// <summary>
@ -41,8 +41,8 @@ namespace osu.Game.Rulesets.Objects.Pooling
public readonly SlimReadOnlyDictionaryWrapper<TEntry, TDrawable> AliveEntries;
/// <summary>
/// Whether to remove an entry when clock goes backward and crossed its <see cref="LifetimeEntry{T}.LifetimeStart"/>.
/// Used when entries are dynamically added at its <see cref="LifetimeEntry{T}.LifetimeStart"/> to prevent duplicated entries.
/// Whether to remove an entry when clock goes backward and crossed its <see cref="LifetimeEntryBase{T}.LifetimeStart"/>.
/// Used when entries are dynamically added at its <see cref="LifetimeEntryBase{T}.LifetimeStart"/> to prevent duplicated entries.
/// </summary>
protected virtual bool RemoveRewoundEntry => false;