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