Files
EpinelPS/nksrv/LobbyServer/Msgs/Simroom/GetSimRoomData.cs
2024-07-19 10:53:02 -04:00

33 lines
1.0 KiB
C#

using Google.Protobuf.WellKnownTypes;
using nksrv.Utils;
namespace nksrv.LobbyServer.Msgs.Simroom
{
[PacketPath("/simroom/get")]
public class GetSimRoomData : LobbyMsgHandler
{
protected override async Task HandleAsync()
{
var req = await ReadData<ReqGetSimRoom>();
var response = new ResGetSimRoom()
{
OverclockData = new()
{
CurrentSeasonData = new()
{
SeasonStartDate = Timestamp.FromDateTimeOffset(DateTime.UtcNow),
SeasonEndDate = Timestamp.FromDateTimeOffset(DateTime.UtcNow.AddDays(7))
},
CurrentSeasonHighScore = new(),
CurrentSubSeasonHighScore = new(),
LatestOption = new()
},
NextLegacyBuffResetDate = Timestamp.FromDateTimeOffset(DateTime.UtcNow.AddDays(7))
};
// TODO
await WriteDataAsync(response);
}
}
}