sim room stuff

This commit is contained in:
Kyle873
2024-12-21 23:45:49 -05:00
parent e2f0807ab1
commit e2ca6f7ec3
2 changed files with 43 additions and 14 deletions

View File

@@ -10,22 +10,51 @@ namespace EpinelPS.LobbyServer.Simroom
{ {
var req = await ReadData<ReqGetSimRoom>(); var req = await ReadData<ReqGetSimRoom>();
var response = new ResGetSimRoom() var response = new ResGetSimRoom
{ {
OverclockData = new() OverclockData = new NetSimRoomOverclockData
{ {
CurrentSeasonData = new() CurrentSeasonData = new NetSimRoomOverclockSeasonData
{ {
SeasonStartDate = Timestamp.FromDateTimeOffset(DateTime.UtcNow), SeasonStartDate = Timestamp.FromDateTimeOffset(DateTime.UtcNow),
SeasonEndDate = Timestamp.FromDateTimeOffset(DateTime.UtcNow.AddDays(7)) SeasonEndDate = Timestamp.FromDateTimeOffset(DateTime.UtcNow.AddDays(7)),
IsSeasonOpen = true,
Season = 1,
SubSeason = 1,
SeasonWeekCount = 1
}, },
CurrentSeasonHighScore = new(),
CurrentSubSeasonHighScore = new(), CurrentSeasonHighScore = new NetSimRoomOverclockHighScoreData
LatestOption = new() {
CreatedAt = Timestamp.FromDateTimeOffset(DateTime.UtcNow),
OptionLevel = 1,
Season = 1,
SubSeason = 1,
OptionList = {}
},
CurrentSubSeasonHighScore = new NetSimRoomOverclockHighScoreData
{
CreatedAt = Timestamp.FromDateTimeOffset(DateTime.UtcNow),
OptionLevel = 1,
Season = 1,
SubSeason = 1,
OptionList = {}
},
LatestOption = new NetSimRoomOverclockOptionSettingData
{
Season = 1,
OptionList = {}
}
}, },
Status = SimRoomStatus.Ready,
CurrentDifficulty = 1,
NextRenewAt = DateTime.UtcNow.AddDays(7).Ticks,
NextLegacyBuffResetDate = Timestamp.FromDateTimeOffset(DateTime.UtcNow.AddDays(7)) NextLegacyBuffResetDate = Timestamp.FromDateTimeOffset(DateTime.UtcNow.AddDays(7))
}; };
// TODO
await WriteDataAsync(response); await WriteDataAsync(response);
} }
} }

View File

@@ -1,4 +1,3 @@
using Google.Protobuf.WellKnownTypes;
using EpinelPS.Utils; using EpinelPS.Utils;
namespace EpinelPS.LobbyServer.Simroom namespace EpinelPS.LobbyServer.Simroom
@@ -10,11 +9,12 @@ namespace EpinelPS.LobbyServer.Simroom
{ {
var req = await ReadData<ReqSelectSimRoomDifficulty>(); var req = await ReadData<ReqSelectSimRoomDifficulty>();
ResSelectSimRoomDifficulty response = new(); ResSelectSimRoomDifficulty response = new ResSelectSimRoomDifficulty
{
// TODO Result = SimRoomResult.SimRoomResultSuccess,
};
await WriteDataAsync(response); await WriteDataAsync(response);
} }
} }
} }