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