forked from PGR/ascnet
Stubs for equipment scrapping and CUB combining to prevent softlocks
This commit is contained in:
parent
a36eeeef63
commit
2d9abd00f5
|
@ -96,6 +96,18 @@ namespace AscNet.GameServer.Handlers
|
||||||
public int Level;
|
public int Level;
|
||||||
public int Exp;
|
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.
|
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -333,5 +345,11 @@ namespace AscNet.GameServer.Handlers
|
||||||
|
|
||||||
session.SendResponse(new EquipResonanceResponse() { ResonanceData = resonance }, packet.Id);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue