QDManager.cs 2.8 KB

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