mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Calculating from TimeOffset is bad because it loses precision. The result time won't change anymore even If `HitObject.GetEndTime()` changes later.
22 lines
636 B
C#
22 lines
636 B
C#
// 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 osu.Game.Rulesets.Objects;
|
|
|
|
namespace osu.Game.Rulesets.Judgements
|
|
{
|
|
internal class JudgementResultEntry
|
|
{
|
|
public double Time => Result.TimeAbsolute;
|
|
|
|
public readonly HitObjectLifetimeEntry HitObjectEntry;
|
|
|
|
public readonly JudgementResult Result;
|
|
|
|
public JudgementResultEntry(HitObjectLifetimeEntry hitObjectEntry, JudgementResult result)
|
|
{
|
|
HitObjectEntry = hitObjectEntry;
|
|
Result = result;
|
|
}
|
|
}
|
|
} |