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