GateSocket.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*-----------------------------------------------
  2. *本文件由代码生成器自动生成,
  3. *千万不要修改本文件的任何代码,
  4. *修改的的任何代码都会被覆盖掉!
  5. --------------------------------------------------*/
  6. using System.IO;
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. using Pomelo.DotNetClient;
  12. using pomelo.gate;
  13. using pomelo.login;
  14. namespace Pomelo.DotNetClient
  15. {
  16. public class GateSocket : PomeloClient
  17. {
  18. private GateHandler _gateHandler;
  19. private LoginHandler _loginHandler;
  20. public GateHandler gateHandler
  21. {
  22. get { return _gateHandler;}
  23. set { _gateHandler = value; }
  24. }
  25. public LoginHandler loginHandler
  26. {
  27. get { return _loginHandler;}
  28. set { _loginHandler = value; }
  29. }
  30. public GateSocket(ISerializer serializer) : base(serializer)
  31. {
  32. _gateHandler = new GateHandler(this);
  33. _loginHandler = new LoginHandler(this);
  34. }
  35. public void onServerStatePush(Action<ServerStatePush> cb)
  36. {
  37. _loginHandler.onServerStatePush(cb);
  38. }
  39. }
  40. }