mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Remove obsoleted IHasEndTime
This commit is contained in:
@ -6,26 +6,16 @@ namespace osu.Game.Rulesets.Objects.Types
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// A HitObject that ends at a different time than its start time.
|
/// A HitObject that ends at a different time than its start time.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
#pragma warning disable 618
|
public interface IHasDuration
|
||||||
public interface IHasDuration : IHasEndTime
|
|
||||||
#pragma warning restore 618
|
|
||||||
{
|
{
|
||||||
double IHasEndTime.EndTime
|
|
||||||
{
|
|
||||||
get => EndTime;
|
|
||||||
set => Duration = (Duration - EndTime) + value;
|
|
||||||
}
|
|
||||||
|
|
||||||
double IHasEndTime.Duration => Duration;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The time at which the HitObject ends.
|
/// The time at which the HitObject ends.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
new double EndTime { get; }
|
double EndTime { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The duration of the HitObject.
|
/// The duration of the HitObject.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
new double Duration { get; set; }
|
double Duration { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
// 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 System;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Objects.Types
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// A HitObject that ends at a different time than its start time.
|
|
||||||
/// </summary>
|
|
||||||
[Obsolete("Use IHasDuration instead.")] // can be removed 20201126
|
|
||||||
public interface IHasEndTime
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// The time at which the HitObject ends.
|
|
||||||
/// </summary>
|
|
||||||
[JsonIgnore]
|
|
||||||
double EndTime { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The duration of the HitObject.
|
|
||||||
/// </summary>
|
|
||||||
double Duration { get; }
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user