You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.5 KiB

  1. -- 基类
  2. local PluginBase = class("PluginBase")
  3. PluginBase.Code =
  4. {
  5. OP_LOG = 101,
  6. OP_PASTE = 102,
  7. --// 初始化状态int
  8. INIT = 1000,
  9. INIT_SUCCESS = 1001,
  10. INIT_FAIL = 1002,
  11. --// 登录状态码
  12. LOGIN = 2000,
  13. LOGIN_SUCCESS = 2001,
  14. LOGIN_CANCEL = 2002,
  15. LOGIN_FAIL = 2003,
  16. --// 登出状态码
  17. LOGOUT = 3000,
  18. LOGOUT_SUCCESS = 3001,
  19. LOGOUT_CANCEL = 3002,
  20. LOGOUT_FAIL = 3003,
  21. --// 分享游戏
  22. SHARE = 4000,
  23. SHARE_SUCCESS = 4001,
  24. SHARE_CANCEL = 4002,
  25. SHARE_FAIL = 4003,
  26. --// 支付状态码
  27. PAY = 5000,
  28. PAY_SUCCESS = 5001,
  29. PAY_CANCEL = 5002,
  30. PAY_FAIL = 5003,
  31. PAY_TIMEOUT = 5004,
  32. PAY_EXC = 5005,
  33. PAY_WAIT_CHECK = 5006,
  34. --// 录音
  35. RECORD = 7000, --// 录音模块
  36. RECORD_SUCCESS = 7001, --// 录音成功
  37. RECORD_FAIL = 7002, --// 录音失败
  38. RECORD_DOWNLOAD_SUCCESS = 7003, --// 录音下载成功
  39. RECORD_DOWNLOAD_FAIL = 7004, --// 录音下载失败
  40. --// DNS解析
  41. HTTP_DNS = 8000,
  42. HTTP_DNS_PARSE_SUCCESS = 8001,
  43. HTTP_DNS_PARSE_FAIL = 8002,
  44. }
  45. function PluginBase:ctor()
  46. end
  47. -- 启动插件
  48. function PluginBase:start()
  49. end
  50. -- 停止插件
  51. function PluginBase:stop()
  52. end
  53. return PluginBase