using System; using System.Collections.Generic; using Cal.DataTable; namespace ET { [ActorMessageHandler] public class C2M_GetPetActionRewordHandler : AMActorLocationRpcHandler { protected override async ETTask Run(Unit unit, C2M_GetPetActionReword request, M2C_GetPetActionReword response, Action reply) { Pet pet = unit.GetComponent(); string ret = pet.GetActionReword(); if (ret != null) { response.Message = ret; reply(); return; } reply(); await ETTask.CompletedTask; } } }