22 lines
644 B
C#
Executable File
22 lines
644 B
C#
Executable File
using System;
|
|
|
|
namespace ET
|
|
{
|
|
[ActorMessageHandler]
|
|
public class C2M_DismountGemHandler : AMActorLocationRpcHandler<Unit, C2M_DismountGem, M2C_DismountGem>
|
|
{
|
|
protected override async ETTask Run(Unit unit, C2M_DismountGem request, M2C_DismountGem response, Action reply)
|
|
{
|
|
|
|
string retStr = await ItemComponent.Instance.DismountGem(unit, request.bagIndex,request.gemIndex);
|
|
if (retStr !=null)
|
|
{
|
|
response.Message = retStr;
|
|
reply();
|
|
return;
|
|
}
|
|
reply();
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
} |