strictly necessary handlers

This commit is contained in:
rfi
2024-02-20 23:47:02 +07:00
parent 3dc95a1044
commit 11263bd61e
12 changed files with 217 additions and 6 deletions

View File

@@ -8,9 +8,7 @@ namespace BLHX.Server.Game.Handlers
[PacketHandler(Command.Cs11001)]
static void ServerTimeHandler(Connection connection, Packet packet)
{
connection.NotifyPlayerData();
connection.NotifyStatisticsInit();
connection.NotifyShipData();
connection.InitClientData();
connection.Send(new Sc11002()
{
Timestamp = (uint)DateTimeOffset.Now.ToUnixTimeSeconds(),
@@ -19,6 +17,18 @@ namespace BLHX.Server.Game.Handlers
});
}
[PacketHandler(Command.Cs11603)]
static void FetchSecondaryPasswordHandler(Connection connection, Packet packet)
{
connection.Send(new Sc11604());
}
[PacketHandler(Command.Cs11017)]
static void StageDropListHandler(Connection connection, Packet packet)
{
connection.Send(new Sc11018());
}
[PacketHandler(Command.Cs11401)]
static void ChangeChatRoomHandler(Connection connection, Packet packet)
{
@@ -51,7 +61,10 @@ namespace BLHX.Server.Game.Handlers
GmFlag = 1,
Rank = 1,
GuideIndex = 1,
ChatRoomId = 1,
RegisterTime = (uint)new DateTimeOffset(connection.player.CreatedAt).ToUnixTimeSeconds(),
ShipCount = (uint)connection.player.Ships.Count,
CommanderBagMax = 40,
Display = connection.player.DisplayInfo,
Appreciation = new()
});