CTT/Server/Hotfix/Game/Handler/Pet/C2M_GetPetQuickEndPriceHand...

20 lines
561 B
C#
Raw Normal View History

2021-04-16 00:06:30 +08:00
using System;
using System.Collections.Generic;
namespace ET
{
[ActorMessageHandler]
public class C2M_GetPetQuickEndPriceHandler : AMActorLocationRpcHandler<Unit, C2M_GetPetQuickEndPrice, M2C_GetPetQuickEndPrice>
{
protected override async ETTask Run(Unit unit, C2M_GetPetQuickEndPrice request, M2C_GetPetQuickEndPrice response, Action reply)
{
Pet pet = unit.GetComponent<Pet>();
response.voucher = pet.GetQuickEndPrice();
reply();
await ETTask.CompletedTask;
}
}
}