mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
13 lines
475 B
C#
13 lines
475 B
C#
using System;
|
|
|
|
namespace ET.Server
|
|
{
|
|
[ActorMessageHandler(SceneType.Location)]
|
|
public class ObjectLockRequestHandler: ActorMessageHandler<Scene, ObjectLockRequest, ObjectLockResponse>
|
|
{
|
|
protected override async ETTask Run(Scene scene, ObjectLockRequest request, ObjectLockResponse response)
|
|
{
|
|
await scene.GetComponent<LocationManagerComoponent>().Get(request.Type).Lock(request.Key, request.ActorId, request.Time);
|
|
}
|
|
}
|
|
} |