22 lines
629 B
C#
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;
|
|
}
|
|
}
|
|
} |