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