mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-12 23:14:34 +01:00
sim room stuff
This commit is contained in:
@@ -10,22 +10,51 @@ namespace EpinelPS.LobbyServer.Simroom
|
||||
{
|
||||
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),
|
||||
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(),
|
||||
LatestOption = new()
|
||||
|
||||
CurrentSeasonHighScore = new NetSimRoomOverclockHighScoreData
|
||||
{
|
||||
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))
|
||||
};
|
||||
// TODO
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
using EpinelPS.Utils;
|
||||
|
||||
namespace EpinelPS.LobbyServer.Simroom
|
||||
@@ -10,11 +9,12 @@ namespace EpinelPS.LobbyServer.Simroom
|
||||
{
|
||||
var req = await ReadData<ReqSelectSimRoomDifficulty>();
|
||||
|
||||
ResSelectSimRoomDifficulty response = new();
|
||||
|
||||
// TODO
|
||||
|
||||
ResSelectSimRoomDifficulty response = new ResSelectSimRoomDifficulty
|
||||
{
|
||||
Result = SimRoomResult.SimRoomResultSuccess,
|
||||
};
|
||||
|
||||
await WriteDataAsync(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user