CTT/Server/Hotfix/Game/Handler/GM/C2M_OpenGMUIHandler.cs

21 lines
573 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using System;
namespace ET
{
[ActorMessageHandler]
public class C2M_OpenGMUIHandler : AMActorLocationRpcHandler<Unit, C2M_OpenGMUI, M2C_OpenGMUI>
{
protected override async ETTask Run(Unit unit, C2M_OpenGMUI request, M2C_OpenGMUI respones, Action reply)
{
if (!AppConfig.inst.whiteIds.Contains(unit.Id))
{
respones.Message = "对不起,您没有权限!";
reply();
return;
}
reply();
await ETTask.CompletedTask;
}
}
}