MailDeleteRequest stub to prevent mail deletion softlock

And a bunch of TODOs.
This commit is contained in:
Kyle Belanger 2024-04-13 02:30:53 -04:00
parent 2d9abd00f5
commit 3bda362626
12 changed files with 39 additions and 5 deletions

View File

@ -133,13 +133,14 @@ namespace AscNet.GameServer.Handlers
}, packet.Id); }, packet.Id);
} }
/* TODO /* TODO Reconnection state resumption?
[RequestPacketHandler("ReconnectAck")] [RequestPacketHandler("ReconnectAck")]
public static void ReconnectAckHandler(Session session, Packet.Request packet) public static void ReconnectAckHandler(Session session, Packet.Request packet)
{ {
} }
*/ */
// TODO: Promo code
[RequestPacketHandler("UseCdKeyRequest")] [RequestPacketHandler("UseCdKeyRequest")]
public static void UseCdKeyRequestHandler(Session session, Packet.Request packet) public static void UseCdKeyRequestHandler(Session session, Packet.Request packet)
{ {

View File

@ -31,12 +31,14 @@ namespace AscNet.GameServer.Handlers
internal class BossModule internal class BossModule
{ {
// TODO: Pain Cage entry
[RequestPacketHandler("BossSingleRankInfoRequest")] [RequestPacketHandler("BossSingleRankInfoRequest")]
public static void BossSingleRankInfoRequestHandler(Session session, Packet.Request packet) public static void BossSingleRankInfoRequestHandler(Session session, Packet.Request packet)
{ {
session.SendResponse(new BossSingleRankInfoResponse() { Code = 1 }, packet.Id); session.SendResponse(new BossSingleRankInfoResponse() { Code = 1 }, packet.Id);
} }
// TODO: Co-op entry
[RequestPacketHandler("GetActivityBossDataRequest")] [RequestPacketHandler("GetActivityBossDataRequest")]
public static void GetActivityBossDataRequestHandler(Session session, Packet.Request packet) public static void GetActivityBossDataRequestHandler(Session session, Packet.Request packet)
{ {

View File

@ -35,12 +35,14 @@ namespace AscNet.GameServer.Handlers
internal class CoopModule internal class CoopModule
{ {
// TODO: Co-op room creation
[RequestPacketHandler("CreateRoomRequest")] [RequestPacketHandler("CreateRoomRequest")]
public static void CreateRoomRequestHandler(Session session, Packet.Request packet) public static void CreateRoomRequestHandler(Session session, Packet.Request packet)
{ {
session.SendResponse(new CreateRoomResponse() { Code = 1 }, packet.Id); session.SendResponse(new CreateRoomResponse() { Code = 1 }, packet.Id);
} }
// TODO: Co-op room matchmaking
[RequestPacketHandler("MatchRoomRequest")] [RequestPacketHandler("MatchRoomRequest")]
public static void MatchRoomRequestHandler(Session session, Packet.Request packet) public static void MatchRoomRequestHandler(Session session, Packet.Request packet)
{ {

View File

@ -31,12 +31,14 @@ namespace AscNet.GameServer.Handlers
internal class DormModule internal class DormModule
{ {
// TODO: Dorm entry
[RequestPacketHandler("DormEnterRequest")] [RequestPacketHandler("DormEnterRequest")]
public static void DormEnterRequestHandler(Session session, Packet.Request packet) public static void DormEnterRequestHandler(Session session, Packet.Request packet)
{ {
session.SendResponse(new DormEnterResponse(), packet.Id); session.SendResponse(new DormEnterResponse(), packet.Id);
} }
// TODO: Dorm list (called from Details section within account info menu)
[RequestPacketHandler("DormitoryListRequest")] [RequestPacketHandler("DormitoryListRequest")]
public static void DormitoryListRequestHandler(Session session, Packet.Request packet) public static void DormitoryListRequestHandler(Session session, Packet.Request packet)
{ {

View File

@ -346,6 +346,7 @@ namespace AscNet.GameServer.Handlers
session.SendResponse(new EquipResonanceResponse() { ResonanceData = resonance }, packet.Id); session.SendResponse(new EquipResonanceResponse() { ResonanceData = resonance }, packet.Id);
} }
// TODO: Equipment scrapping
[RequestPacketHandler("EquipDecomposeRequest")] [RequestPacketHandler("EquipDecomposeRequest")]
public static void EquipDecomposeRequestHandler(Session session, Packet.Request packet) public static void EquipDecomposeRequestHandler(Session session, Packet.Request packet)
{ {

View File

@ -22,6 +22,7 @@ namespace AscNet.GameServer.Handlers
internal class GuildModule internal class GuildModule
{ {
// TODO: Guild listing
[RequestPacketHandler("GuildListRecommendRequest")] [RequestPacketHandler("GuildListRecommendRequest")]
public static void GuildListRecommendRequestHandler(Session session, Packet.Request packet) public static void GuildListRecommendRequestHandler(Session session, Packet.Request packet)
{ {

View File

@ -40,6 +40,7 @@ namespace AscNet.GameServer.Handlers
}, packet.Id); }, packet.Id);
} }
// TODO: Consumable item usage
[RequestPacketHandler("ItemUseRequest")] [RequestPacketHandler("ItemUseRequest")]
public static void ItemUseRequestHandler(Session session, Packet.Request packet) public static void ItemUseRequestHandler(Session session, Packet.Request packet)
{ {

View File

@ -4,6 +4,12 @@ namespace AscNet.GameServer.Handlers
{ {
#region MsgPackScheme #region MsgPackScheme
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. #pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
[MessagePackObject(true)]
public class MailReadRequest
{
public string Id;
}
[MessagePackObject(true)] [MessagePackObject(true)]
public class MailReadResponse public class MailReadResponse
{ {
@ -11,19 +17,32 @@ namespace AscNet.GameServer.Handlers
} }
[MessagePackObject(true)] [MessagePackObject(true)]
public class MailReadRequest public class MailDeleteRequest
{ {
public string Id; }
[MessagePackObject(true)]
public class MailDeleteResponse
{
public int Code;
} }
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. #pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
#endregion #endregion
internal class MailModule internal class MailModule
{ {
// TODO: Read mail
[RequestPacketHandler("MailReadRequest")] [RequestPacketHandler("MailReadRequest")]
public static void MailReadRequestHandler(Session session, Packet.Request packet) public static void MailReadRequestHandler(Session session, Packet.Request packet)
{ {
session.SendResponse(new MailReadResponse(), packet.Id); session.SendResponse(new MailReadResponse(), packet.Id);
} }
// TODO: Delete mail
[RequestPacketHandler("MailDeleteRequest")]
public static void MailDeleteRequestHandler(Session session, Packet.Request packet)
{
session.SendResponse(new MailDeleteResponse(), packet.Id);
}
} }
} }

View File

@ -22,6 +22,7 @@ namespace AscNet.GameServer.Handlers
internal class PartnerModule internal class PartnerModule
{ {
// TODO: CUB combining
[RequestPacketHandler("PartnerComposeRequest")] [RequestPacketHandler("PartnerComposeRequest")]
public static void PartnerComposeRequestHandler(Session session, Packet.Request packet) public static void PartnerComposeRequestHandler(Session session, Packet.Request packet)
{ {

View File

@ -261,12 +261,14 @@ namespace AscNet.GameServer.Handlers
session.SendResponse(new SetDisplayCharIdFirstResponse() { DisplayCharIdList = session.player.PlayerData.DisplayCharIdList }, packet.Id); session.SendResponse(new SetDisplayCharIdFirstResponse() { DisplayCharIdList = session.player.PlayerData.DisplayCharIdList }, packet.Id);
} }
// TODO: "Display Preview" button in Details section of account info menu
[RequestPacketHandler("QueryPlayerDetailRequest")] [RequestPacketHandler("QueryPlayerDetailRequest")]
public static void QueryPlayerDetailRequestHandler(Session session, Packet.Request packet) public static void QueryPlayerDetailRequestHandler(Session session, Packet.Request packet)
{ {
session.SendResponse(new QueryPlayerDetailResponse() { Code = 1 }, packet.Id); session.SendResponse(new QueryPlayerDetailResponse() { Code = 1 }, packet.Id);
} }
// TODO: "Save" button in Details section of account info menu
[RequestPacketHandler("SetAppearanceRequest")] [RequestPacketHandler("SetAppearanceRequest")]
public static void SetAppearanceRequestHandler(Session session, Packet.Request packet) public static void SetAppearanceRequestHandler(Session session, Packet.Request packet)
{ {

View File

@ -45,6 +45,7 @@ namespace AscNet.GameServer.Handlers
session.SendResponse(rsp, packet.Id); session.SendResponse(rsp, packet.Id);
} }
// TODO: Dorm shop
[RequestPacketHandler("GetShopBaseInfoRequest")] [RequestPacketHandler("GetShopBaseInfoRequest")]
public static void GetShopBaseInfoRequestHandler(Session session, Packet.Request packet) public static void GetShopBaseInfoRequestHandler(Session session, Packet.Request packet)
{ {

View File

@ -28,6 +28,7 @@ namespace AscNet.GameServer.Handlers
session.SendResponse(new DoClientTaskEventResponse(), packet.Id); session.SendResponse(new DoClientTaskEventResponse(), packet.Id);
} }
// TODO: Reward acquisition from course reward line in Tasks menu
[RequestPacketHandler("GetCourseRewardRequest")] [RequestPacketHandler("GetCourseRewardRequest")]
public static void GetCourseRewardRequestHandler(Session session, Packet.Request packet) public static void GetCourseRewardRequestHandler(Session session, Packet.Request packet)
{ {