zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Game/Handler/UI/Bag/C2M_ResolveStarSoulHandler.cs

20 lines
631 B
C#
Raw Normal View History

2021-05-15 14:29:48 +08:00
using System;
namespace ET
{
[ActorMessageHandler]
public class C2M_ResolveStarSoulHandler : AMActorLocationRpcHandler<Unit, C2M_ResolveStarSoul, M2C_ResolveStarSoul>
{
protected override async ETTask Run(Unit unit, C2M_ResolveStarSoul request, M2C_ResolveStarSoul response, Action reply)
{
var bag = unit.GetComponent<StarSoulBag>();
string retStr = bag.Resolve(request.ids,response.itenList);
if (retStr !=null)
{
response.Message = retStr;
}
reply();
await ETTask.CompletedTask;
}
}
}