forked from PGR/ascnet
1
0
Fork 0

Stubs for equipment scrapping and CUB combining to prevent softlocks

This commit is contained in:
Kyle Belanger 2024-04-13 02:02:40 -04:00
parent a36eeeef63
commit 2d9abd00f5
2 changed files with 50 additions and 1 deletions

View File

@ -96,6 +96,18 @@ namespace AscNet.GameServer.Handlers
public int Level;
public int Exp;
}
[MessagePackObject(true)]
public class EquipDecomposeRequest
{
public List<int> EquipIds;
}
[MessagePackObject(true)]
public class EquipDecomposeResponse
{
public int Code;
}
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
#endregion
@ -333,5 +345,11 @@ namespace AscNet.GameServer.Handlers
session.SendResponse(new EquipResonanceResponse() { ResonanceData = resonance }, packet.Id);
}
[RequestPacketHandler("EquipDecomposeRequest")]
public static void EquipDecomposeRequestHandler(Session session, Packet.Request packet)
{
session.SendResponse(new EquipDecomposeResponse() { Code = 1 }, packet.Id);
}
}
}
}

View File

@ -0,0 +1,31 @@
using MessagePack;
namespace AscNet.GameServer.Handlers
{
#region MsgPackScheme
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
[MessagePackObject(true)]
public class PartnerComposeRequest
{
public List<int> TemplateIds;
public bool IsOneKey;
}
[MessagePackObject(true)]
public class PartnerComposeResponse
{
public int Code;
}
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
#endregion
internal class PartnerModule
{
[RequestPacketHandler("PartnerComposeRequest")]
public static void PartnerComposeRequestHandler(Session session, Packet.Request packet)
{
session.SendResponse(new PartnerComposeResponse() { Code = 1 }, packet.Id);
}
}
}