CTT/Server/Hotfix/Game/Handler/UI/Store/C2M_QueryExtandPriceHandler.cs

23 lines
629 B
C#
Executable File

using System;
namespace ET
{
[ActorMessageHandler]
public class C2M_QueryExtandPriceHandler : AMActorLocationRpcHandler<Unit, C2M_QueryExtandPrice, M2C_QueryExtandPrice>
{
protected override async ETTask Run(Unit unit, C2M_QueryExtandPrice request, M2C_QueryExtandPrice response, Action reply)
{
(string retString, int coin, int voucher) =await StoreComponent.Instance.QueryExtand(unit);
if (retString!=null)
{
response.Message = retString;
reply();
return;
}
response.Coin = coin;
response.Voucher = voucher;
reply();
await ETTask.CompletedTask;
}
}
}