R2G_GetLoginKeyHandler.cs 457 B

1234567891011121314151617
  1. using System;
  2. using Base;
  3. using Model;
  4. namespace Controller
  5. {
  6. [MessageHandler(AppType.Gate)]
  7. public class R2G_GetLoginKeyHandler : AMRpcEvent<R2G_GetLoginKey, G2R_GetLoginKey>
  8. {
  9. protected override void Run(Entity scene, R2G_GetLoginKey message, Action<G2R_GetLoginKey> reply)
  10. {
  11. long key = Game.Scene.GetComponent<GateSessionKeyComponent>().Get();
  12. G2R_GetLoginKey g2RGetLoginKey = new G2R_GetLoginKey(key);
  13. reply(g2RGetLoginKey);
  14. }
  15. }
  16. }