15 lines
437 B
C#
Executable File
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();
|
|
}
|
|
}
|
|
} |