mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-13 07:24:52 +01:00
sim room stuff
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user