1234567891011121314151617 |
- using System;
- namespace ET.Server
- {
- [ActorMessageHandler(SceneType.Location)]
- public class ObjectAddRequestHandler: AMActorRpcHandler<Scene, ObjectAddRequest, ObjectAddResponse>
- {
- protected override async ETTask Run(Scene scene, ObjectAddRequest request, ObjectAddResponse response, Action reply)
- {
- await scene.GetComponent<LocationComponent>().Add(request.Key, request.InstanceId);
- reply();
- await ETTask.CompletedTask;
- }
- }
- }
|