| 123456789101112131415161718 |
- using System;
- using ETModel;
- namespace ETHotfix
- {
- [MessageHandler]
- public class R2G_GetLoginKeyHandler : AMActorRpcHandler<Scene, R2G_GetLoginKey, G2R_GetLoginKey>
- {
- protected override async ETTask Run(Scene scene, R2G_GetLoginKey request, G2R_GetLoginKey response, Action reply)
- {
- long key = RandomHelper.RandInt64();
- scene.GetComponent<GateSessionKeyComponent>().Add(key, request.Account);
- response.Key = key;
- reply();
- await ETTask.CompletedTask;
- }
- }
- }
|