25 lines
828 B
C#
Executable File
25 lines
828 B
C#
Executable File
using System;
|
|
|
|
namespace ET
|
|
{
|
|
[ActorMessageHandler]
|
|
public class C2M_GetMainUISettingHandler : AMActorLocationRpcHandler<Unit, C2M_GetMainUISetting, M2C_GetMainUISetting>
|
|
{
|
|
protected override async ETTask Run(Unit unit, C2M_GetMainUISetting request, M2C_GetMainUISetting response, Action reply)
|
|
{
|
|
UserSetting setting = unit.GetComponent<UserSetting>();
|
|
if (setting == null)
|
|
{
|
|
Log.Error("setting == null");
|
|
reply();
|
|
return;
|
|
}
|
|
response.IsAutoSkill = setting.IsAutoSkill;
|
|
response.IsDisplayOthers = setting.IsDisplayOthers;
|
|
MainUIHelper.GetMainUISlotInfo(setting,response.MainUISlotList);
|
|
|
|
reply();
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
} |