mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
15 lines
531 B
C#
15 lines
531 B
C#
using System;
|
|
|
|
namespace ET.Server
|
|
{
|
|
[ActorMessageHandler(SceneType.Location)]
|
|
public class ObjectUnLockRequestHandler: ActorMessageHandler<Scene, ObjectUnLockRequest, ObjectUnLockResponse>
|
|
{
|
|
protected override async ETTask Run(Scene scene, ObjectUnLockRequest request, ObjectUnLockResponse response)
|
|
{
|
|
scene.GetComponent<LocationManagerComoponent>().Get(request.Type).UnLock(request.Key, request.OldActorId, request.NewActorId);
|
|
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
} |