Curated NotifyLogin data, cleaned up handlers and rearranged code
This commit is contained in:
parent
fbf0a6d3ba
commit
fb5d11055e
|
@ -6,6 +6,10 @@
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<None Remove="Handlers\SignInModule.cs~RF3f1e071.TMP" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="MessagePack" Version="2.4.59" />
|
<PackageReference Include="MessagePack" Version="2.4.59" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,41 @@
|
||||||
|
using AscNet.Common.MsgPack;
|
||||||
|
|
||||||
|
namespace AscNet.GameServer.Handlers
|
||||||
|
{
|
||||||
|
internal class ChatModule
|
||||||
|
{
|
||||||
|
[RequestPacketHandler("EnterWorldChatRequest")]
|
||||||
|
public static void EnterWorldChatRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
EnterWorldChatResponse enterWorldChatResponse = new()
|
||||||
|
{
|
||||||
|
Code = 0,
|
||||||
|
ChannelId = 0
|
||||||
|
};
|
||||||
|
session.SendResponse(enterWorldChatResponse, packet.Id);
|
||||||
|
}
|
||||||
|
|
||||||
|
[RequestPacketHandler("GetWorldChannelInfoRequest")]
|
||||||
|
public static void GetWorldChannelInfoRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
GetWorldChannelInfoResponse getWorldChannelInfoResponse = new();
|
||||||
|
getWorldChannelInfoResponse.ChannelInfos.Append(new()
|
||||||
|
{
|
||||||
|
ChannelId = 0,
|
||||||
|
PlayerNum = 0
|
||||||
|
});
|
||||||
|
session.SendResponse(getWorldChannelInfoResponse, packet.Id);
|
||||||
|
}
|
||||||
|
|
||||||
|
[RequestPacketHandler("OfflineMessageRequest")]
|
||||||
|
public static void OfflineMessageRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
OfflineMessageResponse offlineMessageResponse = new()
|
||||||
|
{
|
||||||
|
Code = 0,
|
||||||
|
Messages = Array.Empty<dynamic>()
|
||||||
|
};
|
||||||
|
session.SendResponse(offlineMessageResponse, packet.Id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
using AscNet.Common.MsgPack;
|
||||||
|
|
||||||
|
namespace AscNet.GameServer.Handlers
|
||||||
|
{
|
||||||
|
internal class GuideModule
|
||||||
|
{
|
||||||
|
[RequestPacketHandler("GuideOpenRequest")]
|
||||||
|
public static void GuideOpenRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
session.SendResponse(new GuideOpenResponse(), packet.Id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* TODO: Need this to skip tutorials
|
||||||
|
[RequestPacketHandler("GuideGroupFinishRequest")]
|
||||||
|
public static void GuideGroupFinishRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
using AscNet.Common.MsgPack;
|
||||||
|
|
||||||
|
namespace AscNet.GameServer.Handlers
|
||||||
|
{
|
||||||
|
internal class HeartbeatModule
|
||||||
|
{
|
||||||
|
[RequestPacketHandler("HeartbeatRequest")]
|
||||||
|
public static void HeartbeatRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
HeartbeatResponse heartbeatResponse = new()
|
||||||
|
{
|
||||||
|
UtcServerTime = DateTimeOffset.UtcNow.ToUnixTimeSeconds()
|
||||||
|
};
|
||||||
|
session.SendResponse(heartbeatResponse, packet.Id);
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: Pong?
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
using AscNet.Common.MsgPack;
|
||||||
|
|
||||||
|
namespace AscNet.GameServer.Handlers
|
||||||
|
{
|
||||||
|
internal class PayModule
|
||||||
|
{
|
||||||
|
[RequestPacketHandler("GetPurchaseListRequest")]
|
||||||
|
public static void GetPurchaseListRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
GetPurchaseListResponse getPurchaseListResponse = new();
|
||||||
|
session.SendResponse(getPurchaseListResponse, packet.Id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
using AscNet.Common.MsgPack;
|
||||||
|
|
||||||
|
namespace AscNet.GameServer.Handlers
|
||||||
|
{
|
||||||
|
internal class PlayerModule
|
||||||
|
{
|
||||||
|
[RequestPacketHandler("ChangePlayerMarkRequest")]
|
||||||
|
public static void ChangePlayerMarkRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
session.SendResponse(new ChangePlayerMarkResponse(), packet.Id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
using AscNet.Common.MsgPack;
|
||||||
|
|
||||||
|
namespace AscNet.GameServer.Handlers
|
||||||
|
{
|
||||||
|
internal class SignInModule
|
||||||
|
{
|
||||||
|
[RequestPacketHandler("SignInRequest")]
|
||||||
|
public static void SignInRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
SignInResponse signInResponse = new();
|
||||||
|
session.SendResponse(signInResponse, packet.Id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
using AscNet.Common.MsgPack;
|
||||||
|
|
||||||
|
namespace AscNet.GameServer.Handlers
|
||||||
|
{
|
||||||
|
internal class TaskModule
|
||||||
|
{
|
||||||
|
[RequestPacketHandler("DoClientTaskEventRequest")]
|
||||||
|
public static void DoClientTaskEventRequestHandler(Session session, Packet.Request packet)
|
||||||
|
{
|
||||||
|
DoClientTaskEventResponse doClientTaskEventResponse = new()
|
||||||
|
{
|
||||||
|
Code = 0
|
||||||
|
};
|
||||||
|
session.SendResponse(doClientTaskEventResponse, packet.Id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue