zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Game/Handler/UI/Quest/C2M_StartAnswerQuestHandler.cs

22 lines
629 B
C#

using System;
namespace ET
{
[ActorMessageHandler]
public class C2M_StartAnswerQuestHandler : AMActorLocationRpcHandler<Unit, C2M_StartAnswerQuest, M2C_StartAnswerQuest>
{
protected override async ETTask Run(Unit unit, C2M_StartAnswerQuest request, M2C_StartAnswerQuest response, Action reply)
{
int ret = QuestComponent.instance.StartAnswer(unit);
if (ret == 0)
{
response.Message = "无答题卡";
reply();
return;
}
response.ConfigId = ret;
reply();
await ETTask.CompletedTask;
}
}
}