ObjectRemoveRequestHandler.cs 428 B

12345678910111213
  1. using System;
  2. namespace ET.Server
  3. {
  4. [ActorMessageHandler(SceneType.Location)]
  5. public class ObjectRemoveRequestHandler: AMActorRpcHandler<Scene, ObjectRemoveRequest, ObjectRemoveResponse>
  6. {
  7. protected override async ETTask Run(Scene scene, ObjectRemoveRequest request, ObjectRemoveResponse response)
  8. {
  9. await scene.GetComponent<LocationComponent>().Remove(request.Key);
  10. }
  11. }
  12. }