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

23 lines
616 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
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)
{
var (retString,coin,voucher) =await StoreComponent.Instance.QueryExtand(unit);
if (retString!=null)
{
response.Message = retString;
reply();
return;
}
response.Coin = coin;
response.Voucher = voucher;
reply();
await ETTask.CompletedTask;
}
}
}