using System; using Model; namespace Hotfix { [MessageHandler(AppType.Location)] public class ObjectGetRequestHandler : AMRpcHandler { protected override async void Run(Session session, ObjectGetRequest message, Action reply) { ObjectGetResponse response = new ObjectGetResponse(); try { string location = await Game.Scene.GetComponent().GetAsync(message.Key); response.Location = location; reply(response); } catch (Exception e) { ReplyError(response, e, reply); } } } }