using System; using ETModel; namespace ETHotfix { [MessageHandler(AppType.Gate)] public class R2G_GetLoginKeyHandler : AMRpcHandler { protected override async ETTask Run(Session session, R2G_GetLoginKey request, G2R_GetLoginKey response, Action reply) { long key = RandomHelper.RandInt64(); Game.Scene.GetComponent().Add(key, request.Account); response.Key = key; reply(); await ETTask.CompletedTask; } } }