QDManager.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. namespace GFGGame
  2. {
  3. public class QDManager
  4. {
  5. public static bool isInited = false;
  6. public static void Login()
  7. {
  8. ViewManager.Show<ModalStatusView>("登录中...");
  9. switch (LauncherConfig.ChannelId)
  10. {
  11. default:
  12. bool login = GameController.CheckLoginCache(true);
  13. if (!login)
  14. {
  15. ViewManager.Hide<ModalStatusView>();
  16. ViewManager.Show<LoginInputView>();
  17. }
  18. break;
  19. }
  20. }
  21. public static void OnCreateRole()
  22. {
  23. switch (LauncherConfig.ChannelId)
  24. {
  25. default:
  26. break;
  27. }
  28. }
  29. public static void OnEnterGame()
  30. {
  31. switch (LauncherConfig.ChannelId)
  32. {
  33. default:
  34. break;
  35. }
  36. }
  37. //回到登录界面,不退出账号
  38. public static void OnQuitToLoginView()
  39. {
  40. switch (LauncherConfig.ChannelId)
  41. {
  42. default:
  43. break;
  44. }
  45. }
  46. public static void Pay(int buyID, int count, string orderID, long Price)
  47. {
  48. switch (LauncherConfig.ChannelId)
  49. {
  50. default:
  51. break;
  52. }
  53. }
  54. public static void Logout()
  55. {
  56. switch (LauncherConfig.ChannelId)
  57. {
  58. default:
  59. break;
  60. }
  61. }
  62. public static void Exit()
  63. {
  64. switch (LauncherConfig.ChannelId)
  65. {
  66. case (int)ChannelID.Test:
  67. GameController.ShowExitAlert();
  68. break;
  69. default:
  70. break;
  71. }
  72. }
  73. public static bool IsTaptap
  74. {
  75. get
  76. {
  77. return LauncherConfig.ChannelId == (int)ChannelID.TapTap;
  78. }
  79. }
  80. public static bool IsHYKB
  81. {
  82. get
  83. {
  84. return LauncherConfig.ChannelId == (int)ChannelID.HYKB;
  85. }
  86. }
  87. public static bool IsBiliBili
  88. {
  89. get
  90. {
  91. return LauncherConfig.ChannelId == (int)ChannelID.BiliBili;
  92. }
  93. }
  94. public static bool IsHuaWei
  95. {
  96. get
  97. {
  98. return LauncherConfig.ChannelId == (int)ChannelID.HUAWEI;
  99. }
  100. }
  101. }
  102. }