QDManager.cs 2.6 KB

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