20 lines
637 B
C#
20 lines
637 B
C#
using System;
|
|
|
|
namespace ET
|
|
{
|
|
[ActorMessageHandler]
|
|
public class C2M_ResolveAllStarSoulHandler : AMActorLocationRpcHandler<Unit, C2M_ResolveAllStarSoul, M2C_ResolveAllStarSoul>
|
|
{
|
|
protected override async ETTask Run(Unit unit, C2M_ResolveAllStarSoul request, M2C_ResolveAllStarSoul response, Action reply)
|
|
{
|
|
var bag = unit.GetComponent<StarSoulBag>();
|
|
string retStr = bag.ResolveAll(response.itenList);
|
|
if (retStr !=null)
|
|
{
|
|
response.Message = retStr;
|
|
}
|
|
reply();
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
} |