21 lines
573 B
C#
21 lines
573 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|