CTT/Server/Hotfix/Game/Handler/Cache/M2U_GetComponentHandler.cs

16 lines
521 B
C#
Raw Normal View History

2021-06-29 11:28:15 +08:00
using System;
using System.Collections.Generic;
namespace ET
{
[ActorMessageHandler]
public class M2U_GetComponentHandler : AMActorRpcHandler<Scene, M2U_GetComponent, U2M_GetComponent>
{
protected override async ETTask Run(Scene scene, M2U_GetComponent request, U2M_GetComponent response, Action reply)
{
var str =await scene.GetComponent<PlayerInfoComponent>().GetInfo(request.UserId, request.type);
response.component = str;
reply();
}
}
}