mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-14 07:55:01 +01:00
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using Google.Protobuf.WellKnownTypes;
|
|
using nksrv.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
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
|
|
WriteData(response);
|
|
}
|
|
}
|
|
}
|