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