using System; using ETModel; namespace ETHotfix { [MessageHandler(AppType.Location)] public class ObjectLockRequestHandler : AMRpcHandler { protected override void Run(Session session, ObjectLockRequest message, Action reply) { ObjectLockResponse response = new ObjectLockResponse(); try { Game.Scene.GetComponent().Lock(message.Key, message.InstanceId, message.Time).Coroutine(); reply(response); } catch (Exception e) { ReplyError(response, e, reply); } } } }