using System; namespace ET { [ActorMessageHandler] public class C2M_QueryExtandPriceHandler : AMActorLocationRpcHandler { 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; } } }