zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Module/ActorLocation/ObjectRemoveRequestHandler.cs

15 lines
437 B
C#
Executable File

using System;
namespace ET
{
[ActorMessageHandler]
public class ObjectRemoveRequestHandler: AMActorRpcHandler<Scene, ObjectRemoveRequest, ObjectRemoveResponse>
{
protected override async ETTask Run(Scene scene, ObjectRemoveRequest request, ObjectRemoveResponse response, Action reply)
{
await scene.GetComponent<LocationComponent>().Remove(request.Key);
reply();
}
}
}