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