2019-01-24 16:43:03 +08:00
|
|
|
|
// 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.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2021-01-26 15:39:35 +08:00
|
|
|
|
using MessagePack;
|
2022-01-31 17:32:17 +08:00
|
|
|
|
using osu.Game.Online.Spectator;
|
2021-01-26 15:39:35 +08:00
|
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
|
namespace osu.Game.Rulesets.Replays
|
2017-03-31 11:43:42 +08:00
|
|
|
|
{
|
2021-01-26 15:39:35 +08:00
|
|
|
|
[MessagePackObject]
|
2017-03-31 11:43:42 +08:00
|
|
|
|
public class ReplayFrame
|
|
|
|
|
{
|
2022-01-31 17:32:17 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The time at which this <see cref="ReplayFrame"/> takes place.
|
|
|
|
|
/// </summary>
|
2021-01-26 15:39:35 +08:00
|
|
|
|
[Key(0)]
|
2017-03-31 11:43:42 +08:00
|
|
|
|
public double Time;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-01-31 17:32:17 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A <see cref="FrameHeader"/> containing the state of a play after this <see cref="ReplayFrame"/> takes place.
|
|
|
|
|
/// May be omitted where exact per-frame accuracy is not required.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[IgnoreMember]
|
|
|
|
|
public FrameHeader? Header;
|
|
|
|
|
|
2018-02-28 15:34:47 +08:00
|
|
|
|
public ReplayFrame()
|
2017-03-31 11:43:42 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-02-28 15:34:47 +08:00
|
|
|
|
public ReplayFrame(double time)
|
2017-03-31 11:43:42 +08:00
|
|
|
|
{
|
|
|
|
|
Time = time;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-11-29 13:20:15 +08:00
|
|
|
|
}
|