ObjectUnLockRequestHandler.cs 542 B

1234567891011121314151617
  1. using System;
  2. namespace ET.Server
  3. {
  4. [ActorMessageHandler(SceneType.Location)]
  5. public class ObjectUnLockRequestHandler: AMActorRpcHandler<Scene, ObjectUnLockRequest, ObjectUnLockResponse>
  6. {
  7. protected override async ETTask Run(Scene scene, ObjectUnLockRequest request, ObjectUnLockResponse response, Action reply)
  8. {
  9. scene.GetComponent<LocationComponent>().UnLock(request.Key, request.OldInstanceId, request.InstanceId);
  10. reply();
  11. await ETTask.CompletedTask;
  12. }
  13. }
  14. }