mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-15 13:44:35 +01:00
sussy 2.9 changes, and finally shard unlock implementation
This commit is contained in:
35
AscNet.GameServer/Handlers/ItemModule.cs
Normal file
35
AscNet.GameServer/Handlers/ItemModule.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using MessagePack;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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 GetAndroidOrIosMoneyCardResponse
|
||||
{
|
||||
public int Code;
|
||||
public int MoneyCard;
|
||||
public int Count;
|
||||
}
|
||||
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||
#endregion
|
||||
|
||||
internal class ItemModule
|
||||
{
|
||||
[RequestPacketHandler("GetAndroidOrIosMoneyCardRequest")]
|
||||
public static void GetAndroidOrIosMoneyCardRequestHandler(Session session, Packet.Request packet)
|
||||
{
|
||||
session.SendResponse(new GetAndroidOrIosMoneyCardResponse()
|
||||
{
|
||||
Code = 0,
|
||||
Count = 0,
|
||||
MoneyCard = 0
|
||||
}, packet.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user