refactor!: removed HitObject::end_time from public api (#25)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
- Added the method `AnyPP::hitresult_priority`
|
||||
|
||||
- __Breaking adjustments:__
|
||||
- Removed the method `HitObject::end_time` from the public api.
|
||||
- Overhauled gradual calculation. All relevant types are now gated behind the `gradual` feature which must be enabled.
|
||||
- `*GradualDifficultyAttributes` has been renamed to `*GradualDifficulty` and `*GradualPerformanceAttributes`
|
||||
has been renamed to `*GradualPerformance`.
|
||||
|
||||
@@ -16,8 +16,7 @@ pub struct HitObject {
|
||||
|
||||
impl HitObject {
|
||||
/// The end time of the object.
|
||||
#[inline]
|
||||
pub fn end_time(&self) -> f64 {
|
||||
pub(crate) fn end_time(&self) -> f64 {
|
||||
match &self.kind {
|
||||
HitObjectKind::Circle => self.start_time,
|
||||
// incorrect, only called in mania which has no sliders though
|
||||
|
||||
Reference in New Issue
Block a user