You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
482 B

using System;
namespace ET
{
[ActorMessageHandler]
public class ObjectGetRequestHandler: AMActorRpcHandler<Scene, ObjectGetRequest, ObjectGetResponse>
{
protected override async ETTask Run(Scene scene, ObjectGetRequest request, ObjectGetResponse response, Action reply)
{
long instanceId = await scene.GetComponent<LocationComponent>().Get(request.Key);
response.InstanceId = instanceId;
reply();
}
}
}