1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-24 05:42:55 +08:00
osu-lazer/osu.Game/Rulesets/Replays/ReplayFrame.cs

37 lines
930 B
C#
Raw Normal View History

// 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
#nullable enable
using MessagePack;
using osu.Game.Online.Spectator;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Rulesets.Replays
{
[MessagePackObject]
2018-04-13 17:19:50 +08:00
public class ReplayFrame
{
/// <summary>
/// The time at which this <see cref="ReplayFrame"/> takes place.
/// </summary>
[Key(0)]
2018-04-13 17:19:50 +08:00
public double Time;
/// <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-04-13 17:19:50 +08:00
public ReplayFrame()
{
}
public ReplayFrame(double time)
{
Time = time;
}
}
}