Send time remaining in countdowns instead

This commit is contained in:
Dan Balasescu
2022-03-23 15:19:43 +09:00
parent d4ad4ac9db
commit f7c0047206
3 changed files with 26 additions and 7 deletions

View File

@ -5,6 +5,7 @@
using System;
using MessagePack;
using osu.Game.Online.Multiplayer.Countdown;
namespace osu.Game.Online.Multiplayer
{
@ -16,9 +17,12 @@ namespace osu.Game.Online.Multiplayer
public abstract class MultiplayerCountdown
{
/// <summary>
/// The time at which the countdown will end.
/// The amount of time remaining in the countdown.
/// </summary>
/// <remarks>
/// This is only sent once from the server upon initial retrieval of the <see cref="MultiplayerRoom"/> or via a <see cref="CountdownChangedEvent"/>.
/// </remarks>
[Key(0)]
public DateTimeOffset EndTime { get; set; }
public TimeSpan TimeRemaining { get; set; }
}
}