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.
 
 
 
 
 
 

17 lines
480 B

using System;
namespace ET
{
[ActorMessageHandler]
public class ObjectAddRequestHandler: AMActorRpcHandler<Scene, ObjectAddRequest, ObjectAddResponse>
{
protected override async ETTask Run(Scene scene, ObjectAddRequest request, ObjectAddResponse response, Action reply)
{
await scene.GetComponent<LocationComponent>().Add(request.Key, request.InstanceId);
reply();
await ETTask.CompletedTask;
}
}
}